:root {
    --primary: #36414e;
    --primary-dark: #1f2936;
    --primary-glow: rgba(54, 65, 78, 0.3);
    --accent: #36414e;
    --bg-dark: #1f2936;
    --bg-darker: #101826;
    --bg-card: rgba(31, 41, 54, 0.03);
    --bg-card-hover: rgba(31, 41, 54, 0.08);
    --white: #FFFFFF;
    --gray-100: rgba(255, 255, 255, 0.95);
    --gray-200: rgba(255, 255, 255, 0.8);
    --gray-300: rgba(255, 255, 255, 0.6);
    --gray-400: rgba(255, 255, 255, 0.4);
    --gray-800: #1f2936;
    --border: rgba(54, 65, 78, 0.15);
    --border-hover: rgba(54, 65, 78, 0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: #ffffff;
    margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--primary); }
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.section-subtitle { font-size: 18px; color: var(--gray-300); max-width: 600px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; font-family: 'Outfit', sans-serif;
    font-size: 15px; font-weight: 600; text-decoration: none;
    border-radius: 8px; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: var(--bg-dark); box-shadow: 0 0 30px var(--primary-glow); }
.btn-primary:hover { background: #d43232; box-shadow: 0 0 40px var(--primary-glow); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); background: rgba(54, 65, 78, 0.1); }
.btn svg { vertical-align: middle; margin-right: 8px; }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.bg-grid { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; opacity: 0.4; }
.bg-grid::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(54, 65, 78, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(54, 65, 78, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}
.bg-glow { position: fixed; width: 800px; height: 800px; border-radius: 50%; filter: blur(150px); pointer-events: none; z-index: 0; }
.bg-glow-1 { top: -400px; right: -200px; background: radial-gradient(circle, rgba(54, 65, 78, 0.15) 0%, transparent 70%); }
.bg-glow-2 { bottom: -400px; left: -200px; background: radial-gradient(circle, rgba(54, 65, 78, 0.1) 0%, transparent 70%); }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

/* when scrolled */
.nav.scrolled{
  background: linear-gradient(
    135deg,
    rgba(28, 31, 38, 0.92) 0%,
    rgba(22, 25, 31, 0.92) 35%,
    rgba(14, 16, 20, 0.92) 100%
  );

  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 10px 18px;
  color: var(--gray-200);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);

  /* was: rgba(54, 65, 78, 0.1); */
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
}
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-dark); z-index: 999; padding: 100px 24px 40px; flex-direction: column; gap: 20px; }
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--white); text-decoration: none; font-size: 24px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--border); }

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(54, 65, 78, 0.1); border: 1px solid var(--border); border-radius: 50px; font-size: 13px; font-weight: 500; color: var(--primary); margin-bottom: 24px; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--primary) 0%, #1f2936 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-description { font-size: 18px; color: var(--gray-300); margin-bottom: 36px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-card { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(54, 65, 78, 0.05) 100%); border: 1px solid var(--border); border-radius: 16px; padding: 32px; position: relative; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-card-dots { display: flex; gap: 8px; }
.hero-card-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.hero-card-dots span:first-child { background: #ff5f57; }
.hero-card-dots span:nth-child(2) { background: #febc2e; }
.hero-card-dots span:nth-child(3) { background: var(--primary); }
.hero-card-title { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--gray-400); }
.hero-card-content { font-family: 'JetBrains Mono', monospace; font-size: 14px; line-height: 2; }
.hero-card-content .comment { color: var(--gray-400); }
.hero-card-content .keyword { color: #FF79C6; }
.hero-card-content .function { color: #36414e; }
.hero-card-content .string { color: #F1FA8C; }
.hero-card-content .variable { color: #8BE9FD; }
.hero-card-content .success { color: #36414e; font-weight: 600; }
.floating-badge { position: absolute; background: var(--bg-darker); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.floating-badge-1 { top: -20px; right: -20px; animation: float 4s ease-in-out infinite; }
.floating-badge-2 { bottom: 40px; left: -40px; animation: float 4s ease-in-out infinite 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floating-badge svg { width: 24px; height: 24px; color: var(--primary); }

.stats-bar { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-item { text-align: center; }
.stat-value { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--gray-300); font-weight: 500; }

.products { position: relative; z-index: 1; }
.products-header { text-align: center; margin-bottom: 60px; }
.products-header .section-label { justify-content: center; }
.products-header .section-label::before { display: none; }
.products-header .section-subtitle { margin: 0 auto; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; transition: all 0.4s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); opacity: 0; transition: opacity 0.4s ease; }
.product-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-4px); }
.product-card:hover::before { opacity: 1; }
.product-icon { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(54, 65, 78, 0.2) 0%, rgba(54, 65, 78, 0.05) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.product-icon svg { width: 28px; height: 28px; color: var(--primary); }
.product-badge { position: absolute; top: 24px; right: 24px; padding: 6px 12px; background: rgba(54, 65, 78, 0.15); border-radius: 50px; font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.product-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.product-description { font-size: 15px; color: var(--gray-300); margin-bottom: 20px; line-height: 1.7; flex-grow: 1; }
.product-pricing { background: rgba(54, 65, 78, 0.08); border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.product-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.product-price .currency { font-size: 18px; font-weight: 600; color: var(--primary); }
.product-price .amount { font-size: 36px; font-weight: 800; color: var(--white); line-height: 1; }
.product-price .period { font-size: 14px; color: var(--gray-400); }
.product-price-note { font-size: 12px; color: var(--gray-400); }
.product-features { list-style: none; margin-bottom: 24px; }
.product-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-200); padding: 8px 0; border-bottom: 1px solid var(--border); }
.product-features li:last-child { border-bottom: none; }
.product-features svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.product-actions { display: flex; gap: 12px; margin-top: auto; }
.product-actions .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }

.features { position: relative; z-index: 1; background: var(--bg-dark); }
.features-header { margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; display: flex; gap: 20px; transition: all 0.3s ease; }
.feature-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.feature-icon { width: 48px; height: 48px; background: rgba(54, 65, 78, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 24px; height: 24px; color: var(--primary); }
.feature-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-content p { font-size: 14px; color: var(--gray-300); line-height: 1.7; }

.cta { position: relative; z-index: 1; }
.cta-box { background: linear-gradient(135deg, rgba(54, 65, 78, 0.1) 0%, rgba(54, 65, 78, 0.02) 100%); border: 1px solid var(--border); border-radius: 24px; padding: 80px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 400px; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.cta-box h2 { font-size: clamp(32px, 4vw, 42px); font-weight: 700; margin-bottom: 16px; }
.cta-box p { font-size: 18px; color: var(--gray-300); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: var(--gray-300); max-width: 300px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--gray-300); transition: all 0.3s ease; }
.footer-social a:hover { border-color: var(--primary); color: var(--primary); background: rgba(54, 65, 78, 0.1); }
.footer-social svg { width: 18px; height: 18px; }
.footer-column h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--gray-200); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: var(--gray-400); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-column a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--gray-400); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--gray-400); text-decoration: none; transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--primary); }

.product-hero { padding-top: 140px; padding-bottom: 80px; position: relative; z-index: 1; }
.product-hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.product-hero-text .section-label { margin-bottom: 16px; }
.product-hero-text h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.product-hero-text .hero-description { margin-bottom: 32px; }
.product-logo { max-width: 400px; height: auto; margin-bottom: 20px; }
.product-hero-pricing { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 32px; }
.product-hero-pricing .product-price { margin-bottom: 8px; }
.product-hero-pricing .product-price .amount { font-size: 48px; }
.product-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.product-hero-visual { position: relative; }
.screenshot-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.screenshot-main img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.placeholder-text { color: var(--gray-400); font-size: 14px; text-align: center; padding: 40px; }
.placeholder-text svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; display: block; margin-left: auto; margin-right: auto; }

/* Screenshots */
.screenshots { position: relative; z-index: 1; }
.screenshots-header { text-align: center; margin-bottom: 60px; }
.screenshots-header .section-label { justify-content: center; }
.screenshots-header .section-label::before { display: none; }
.screenshots-header .section-subtitle { margin: 0 auto; }
.screenshots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.screenshot-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.screenshot-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.screenshot-card .placeholder-content { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.screenshot-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.screenshot-card-info { padding: 16px; border-top: 1px solid var(--border); }
.screenshot-card-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.screenshot-card-info p { font-size: 12px; color: var(--gray-400); }

/* Product Features Grid */
.product-features-section { position: relative; z-index: 1; }
.product-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: all 0.3s ease; }
.product-feature-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.product-feature-card .feature-icon { margin-bottom: 16px; }
.product-feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.product-feature-card p { font-size: 14px; color: var(--gray-300); line-height: 1.6; }

/* FAQ */
.faq { position: relative; z-index: 1; }
.faq-header { text-align: center; margin-bottom: 60px; }
.faq-header .section-label { justify-content: center; }
.faq-header .section-label::before { display: none; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.faq-question { width: 100%; padding: 24px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; color: var(--white); font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; transition: background 0.3s ease; }
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question svg { width: 20px; height: 20px; color: var(--primary); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 24px 24px; font-size: 15px; color: var(--gray-300); line-height: 1.7; }

/* Coming Soon Page */
.coming-soon-hero { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; position: relative; z-index: 1; }
.coming-soon-content { max-width: 600px; }
.coming-soon-icon { width: 120px; height: 120px; background: linear-gradient(135deg, rgba(54, 65, 78, 0.2) 0%, rgba(54, 65, 78, 0.05) 100%); border-radius: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 32px; }
.coming-soon-icon svg { width: 56px; height: 56px; color: var(--primary); }
.coming-soon-content h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; }
.coming-soon-content p { font-size: 18px; color: var(--gray-300); margin-bottom: 40px; }
.coming-soon-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; text-align: left; }
.coming-soon-feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 12px; }
.coming-soon-feature svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.coming-soon-feature span { font-size: 14px; color: var(--gray-200); }

/* Products Listing Page */
.products-listing { padding-top: 180px; padding-bottom: 40px; position: relative; z-index: 1; }
.products-listing-header { text-align: center; margin-bottom: 60px; }
.products-listing-header .section-label { justify-content: center; }
.products-listing-header .section-label::before { display: none; }
.products-listing-header h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; }
.products-listing-header p { font-size: 18px; color: var(--gray-300); max-width: 600px; margin: 0 auto; }

/* Discord Icon Fix */
.icon-discord { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content, .product-hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-description, .product-hero-text .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons, .product-hero-buttons { justify-content: center; }
    .hero-visual, .product-hero-visual { max-width: 500px; margin: 0 auto; }
    .product-logo { margin-left: auto; margin-right: auto; }
    .floating-badge-2 { left: 0; }
    .products-grid, .product-features-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .coming-soon-features { grid-template-columns: 1fr; }
    .addon-card { grid-template-columns: 1fr !important; text-align: center; }
    .addon-card ul { justify-content: center; }
    .addon-card .addon-info > div:last-child { justify-content: center; }
    .addon-image { order: -1; max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-value { font-size: 32px; }
    .products-grid, .features-grid, .testimonials-grid, .product-features-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-box { padding: 60px 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .product-hero-pricing .product-price .amount { font-size: 36px; }
}
@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .hero { padding-top: 80px; }
    .floating-badge { display: none; }
    .product-actions, .product-hero-buttons { flex-direction: column; }
    .product-hero { padding-top: 100px; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .gallery-filters { gap: 6px; }
    .gallery-filter { padding: 8px 14px; font-size: 12px; }
}

/* Gallery Styles */
.gallery-filters { margin-top: 40px; }
.gallery-filter {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gray-300);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.gallery-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.gallery-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(54, 65, 78, 0.15);
}
.gallery-item.hidden {
    display: none;
}

.gallery-item-inner {
    position: relative;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 22, 16, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-item-overlay svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.gallery-item-info {
    padding: 16px;
}
.gallery-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}
.gallery-item-info p {
    font-size: 12px;
    color: var(--gray-400);
    margin: 0;
}

.gallery-item.placeholder-item .placeholder-image svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 22, 16, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}
.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}
.lightbox-close:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}
.lightbox-nav:hover {
    background: var(--primary);
    color: var(--bg-dark);
}
.lightbox-nav svg {
    width: 24px;
    height: 24px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 24px; }
}

.nav-avatar {
    width: 40px;        /* small, navbar-friendly size */
    height: 40px;
    border-radius: 50%; /* makes it circular */
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e1e1e;
    min-width: 120px;
    right: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.dropdown-content a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #333;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Modern Profile Dropdown */
.user-menu {
    position: relative;
}

.user-menu .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-menu .user-avatar:hover {
    transform: scale(1.05);
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: #1a1a1a; /* Dark modern bg */
    border-radius: 12px;
    min-width: 150px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    overflow: hidden;
    font-family: 'Poppins', sans-serif; /* Modern font */
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 100;
}

.user-menu.active .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-menu .dropdown a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.user-menu .dropdown a:hover {
    background: #36414e; /* Highlight color */
    color: #000;
}

.user-menu .dropdown a:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.user-menu .dropdown a:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ===== Profile Dashboard Layout ===== */
.profile-page{
    position: relative;
    z-index: 1;
    padding-top: 140px; /* under fixed nav */
    padding-bottom: 80px;
    min-height: 100vh;
}

.profile-stack{
    display: grid;
    gap: 22px;
}

/* Panels (cards) */
.panel{
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.panel.panel-details{
    overflow: auto;
}

.panel-profile{
    padding: 26px 26px 14px;
}

.panel-profile-top{
    display: flex;
    gap: 18px;
    align-items: center;
}

.panel-avatar{
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.10);
}

.panel-profile-meta{
    flex: 1;
    min-width: 0;
}

.panel-name-row{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-name{
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
}

.panel-badge{
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
}

.panel-subrow{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

.panel-dot{ opacity: 0.6; }

.panel-mono{
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.panel-muted{ color: rgba(255,255,255,0.55); }

/* Tabs */
.panel-tabs{
    margin-top: 18px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.panel-tab{
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    padding: 10px 2px;
    position: relative;
}

.panel-tab.active{
    color: var(--white);
}

.panel-tab.active::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
}

/* Details panel */
.panel-details .panel-header{
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.panel-details .panel-header h2{
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.panel-grid{
    padding: 10px 26px 22px;
}

.detail-row{
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.detail-row:last-child{ border-bottom: none; }

.detail-label{
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.detail-value{
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.detail-value.muted{ color: rgba(255,255,255,0.55); }
.detail-value.mono{ font-family: 'JetBrains Mono', monospace; font-weight: 500; }

@media (max-width: 768px){
    .detail-row{
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .panel-profile-top{
        align-items: flex-start;
    }
}

/* ---- Profile tabs: ONLY show active panel ---- */
.tab-panel { display: none !important; }
.tab-panel.active { display: block !important; }

/* ===== Bottom Panel Dark Dashboard Style (ONLY) ===== */
.panel-dark {
  background: rgba(20, 22, 28, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.panel-header-dark {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.panel-header-dark h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: rgba(255,255,255,0.95);
}

.panel-subtext {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.panel-body-dark {
  padding: 18px 26px 22px;
}

/* Make tab content spacing match dashboard */
.panel-details .tab-panel > *:first-child {
  margin-top: 0 !important;
}

/* Search input style (when you add it later) */
.panel-search {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-search input {
  width: 240px;
  max-width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  font-size: 13px;
  font-weight: 500;
}

.panel-search input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Modern "table" look rows */
.panel-details .detail-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.panel-details .detail-row:last-child {
  border-bottom: none;
}

.panel-details .detail-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.panel-details .detail-value {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.panel-details .detail-value.muted {
  color: rgba(255,255,255,0.55);
}

.panel-details .detail-value.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* Responsive like the example */
@media (max-width: 768px) {
  .panel-details .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ===== Player Record UI (only inside record tab) ===== */

.record-section { display: none; }
.record-section.active { display: block; }

.record-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.record-search input{
  width:260px;
  max-width:100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  font-size: 13px;
  font-weight: 500;
}

.record-search input::placeholder{
  color: rgba(255,255,255,0.35);
}

.record-filters{
  display:flex;
  align-items:center;
  gap:18px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 600;
}

.record-filter{
  background: transparent;
  border: 0;
  padding: 8px 0;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  outline: none; /* <-- change this */
  font: inherit;
  position: relative;
}

.record-filter:hover{
  color: rgba(255,255,255,0.75);
}

.record-filter.active{
  color: rgba(255,255,255,0.95);
}

.record-filter.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:100%;
  height:2px;
  background: var(--primary);
  border-radius: 999px;
  opacity: 0.9;
}

/* Empty state */
.record-empty{
  padding: 10px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 10px;
}

.record-empty-title{
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.record-empty-sub{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 768px){
  .record-topbar{
    flex-direction: column;
    align-items: flex-start;
  }
  .record-filters{
    gap: 14px;
    flex-wrap: wrap;
  }
  .record-search input{
    width: 100%;
  }
}

.panel-details .tab-panel { display: none !important; }
.panel-details .tab-panel.active { display: block !important; }

/* ===== Avatar dropdown (card style like screenshot) ===== */
.user-menu { position: relative; }

.user-trigger{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.user-avatar-wrap{
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
}

.user-avatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform .18s ease, border-color .18s ease;
}

.user-trigger:hover .user-avatar{
  transform: scale(1.04);
  border-color: var(--border-hover);
}

.user-status-dot{
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #29cd96;              /* active green */
  border: 2px solid var(--bg-dark);
}

/* dropdown card */
.user-dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 280px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  overflow: hidden;
  display: none;
  z-index: 2000;

  transform: translateY(-6px);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
}

.user-menu.active .user-dropdown{
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* header */
.user-dropdown-head{
  display: flex;
  gap: 12px;
  padding: 14px 14px 12px;
  align-items: center;
}

.user-dropdown-avatar{
  width: 44px;
  height: 44px;
  border-radius: 14px; /* rounded square like screenshot */
  object-fit: cover;
  border: 1px solid var(--border);
}

.user-dropdown-meta{
  min-width: 0;
}

.user-dropdown-name{
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  line-height: 1.2;
}

.user-dropdown-sub{
  margin-top: 2px;
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* separators */
.user-dropdown-sep{
  height: 1px;
  background: var(--border);
}

/* items */
.user-dropdown-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--gray-200);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background .14s ease, color .14s ease;
}

.user-dropdown-item:hover{
  background: var(--bg-card-hover);
  color: var(--white);
}

.user-dropdown-item.danger{
  color: var(--gray-300);
}

.assigned-badge {
  display: inline-block;
  background: #3b82f6;
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discord-id {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* Signature Editor Styles */
.sig-select {
  width: 120px !important;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-dark);
  color: var(--white);
  font-size: 12px;
}

.sig-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Override default select option backgrounds */
select option {
  background: var(--bg-dark) !important;
  color: var(--white) !important;
}

select option:hover,
select option:focus {
  background: var(--bg-darker) !important;
}

/* --- Player Record table: compact single-row layout --- */
.record-table{
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 10px;
  min-width: 1000px; /* Increased to prevent compression on more screens */
}

.record-table-head,
.record-row{
  display: grid;
  grid-template-columns: 80px 1fr 160px 210px; /* ID | Reason | Staff | Occurred At */
  gap: 16px;
  align-items: center;
}

.record-table-head{
  padding: 12px 0;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 700;
}

.record-row{
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.record-col{
  min-width: 0;
}

/* Keep date/time on one line */
.record-col.date{
  white-space: nowrap;
  text-align: left;
  color: rgba(255,255,255,0.70);
  font-weight: 600;
}

/* Keep staff tighter */
.record-col.staff{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reason can wrap nicely but not explode spacing */
.record-col.reason{
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: keep desktop layout for ticket list */
@media (max-width: 768px){
  /* Keep table head visible */
  .record-table-head{ display: table-header-group; }
  
  /* Keep grid layout instead of stacking */
  .record-row{
    grid-template-columns: 80px 1fr 160px 210px; /* Keep desktop columns */
    gap: 16px; /* Keep desktop gap */
  }
  
  /* Keep all columns visible and properly sized */
  .record-col{
    min-width: 0;
  }
  
  /* Ensure text doesn't get compressed */
  .record-row{
    font-size: 13px; /* Keep desktop font size */
    padding: 14px 0; /* Keep desktop padding */
  }
  
  /* Add horizontal scrolling for ticket tables to prevent compression */
  .record-table{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(54,65,78,0.5) rgba(255,255,255,0.1);
  }
  
  .record-table::-webkit-scrollbar {
    height: 8px;
  }
  
  .record-table::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
  }
  
  .record-table::-webkit-scrollbar-thumb {
    background: rgba(54,65,78,0.5);
    border-radius: 4px;
  }
  
  .record-table::-webkit-scrollbar-thumb:hover {
    background: rgba(54,65,78,0.7);
  }
}

/* BANS has an extra column (Expires) */
.record-section[data-section="bans"] .record-table-head,
.record-section[data-section="bans"] .record-row{
  grid-template-columns: 80px 1fr 160px 210px 210px; /* ID | Reason | Staff | Occurred At | Expires */
}

/* APPLICATIONS */
.record-section[data-section="pending"] .record-table-head,
.record-section[data-section="pending"] .record-row,
.record-section[data-section="accepted"] .record-table-head,
.record-section[data-section="accepted"] .record-row,
.record-section[data-section="denied"] .record-table-head,
.record-section[data-section="denied"] .record-row{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
}

.record-section[data-section="pending"] .record-table,
.record-section[data-section="accepted"] .record-table,
.record-section[data-section="denied"] .record-table{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(54,65,78,0.5) rgba(255,255,255,0.1);
}

.record-section[data-section="pending"] .record-table::-webkit-scrollbar,
.record-section[data-section="accepted"] .record-table::-webkit-scrollbar,
.record-section[data-section="denied"] .record-table::-webkit-scrollbar {
    height: 8px;
}
.record-section[data-section="pending"] .record-table::-webkit-scrollbar-track,
.record-section[data-section="accepted"] .record-table::-webkit-scrollbar-track,
.record-section[data-section="denied"] .record-table::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.record-section[data-section="pending"] .record-table::-webkit-scrollbar-thumb,
.record-section[data-section="accepted"] .record-table::-webkit-scrollbar-thumb,
.record-section[data-section="denied"] .record-table::-webkit-scrollbar-thumb {
    background: rgba(54,65,78,0.5);
    border-radius: 4px;
}
.record-section[data-section="pending"] .record-table::-webkit-scrollbar-thumb:hover,
.record-section[data-section="accepted"] .record-table::-webkit-scrollbar-thumb:hover,
.record-section[data-section="denied"] .record-table::-webkit-scrollbar-thumb:hover {
    background: rgba(54,65,78,0.7);
}

.record-section[data-section="pending"] .record-col,
.record-section[data-section="accepted"] .record-col,
.record-section[data-section="denied"] .record-col {
    flex: 1;
    padding: 4px 12px;
    white-space: normal;
    word-break: break-word;
    min-width: 120px;
}

.record-section[data-section="pending"] .record-col.number,
.record-section[data-section="accepted"] .record-col.number,
.record-section[data-section="denied"] .record-col.number {
    min-width: 60px;
    text-align: center;
}

.record-section[data-section="pending"] .record-col.status,
.record-section[data-section="accepted"] .record-col.status,
.record-section[data-section="denied"] .record-col.status {
    min-width: 120px;
}

.record-section[data-section="pending"] .record-col.date,
.record-section[data-section="accepted"] .record-col.date,
.record-section[data-section="denied"] .record-col.date {
    min-width: 120px;
}

.record-section[data-section="pending"] .record-col.name,
.record-section[data-section="accepted"] .record-col.name,
.record-section[data-section="denied"] .record-col.name {
    min-width: 120px;
}

.record-section[data-section="pending"] .record-col.category,
.record-section[data-section="accepted"] .record-col.category,
.record-section[data-section="denied"] .record-col.category {
    min-width: 120px;
}

.record-section[data-section="pending"] .record-col.info,
.record-section[data-section="accepted"] .record-col.info,
.record-section[data-section="denied"] .record-col.info {
    min-width: 100px;
}

/* Responsive adjustments for applications */
@media (max-width: 768px) {
    .record-section[data-section="pending"] .record-table-head,
    .record-section[data-section="pending"] .record-row,
    .record-section[data-section="accepted"] .record-table-head,
    .record-section[data-section="accepted"] .record-row,
    .record-section[data-section="denied"] .record-table-head,
    .record-section[data-section="denied"] .record-row {
        gap: 12px;
    }
    .record-section[data-section="pending"] .record-col,
    .record-section[data-section="accepted"] .record-col,
    .record-section[data-section="denied"] .record-col {
        min-width: 120px;
    }
    .record-section[data-section="pending"] .record-col.number,
    .record-section[data-section="accepted"] .record-col.number,
    .record-section[data-section="denied"] .record-col.number {
        min-width: 50px;
    }
}

.table-scroll {
  overflow-x: auto;
}

.record-col.name{
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.record-col.category{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-col.status{
  white-space: nowrap;
  text-align: center;
  color: rgba(255,255,255,0.70);
  font-weight: 600;
}

/* STATUS PAGE / SECTION FIX */
.status-section{
  /* fixes the navbar overlap */
  padding: 140px 0 80px;
}

/* more specific so it beats other rules */
.status-section .status-grid{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* two cards side-by-side on desktop, stack on small screens */
.status-section .status-card{
  flex: 1 1 520px;   /* grow, shrink, minimum width */
  width: auto;
  max-width: 100%;
}

/* optional: keep card height consistent */
.status-section .status-card .hero-card-content{
  min-height: 190px;
}

/* ===== Admin Header ===== */
.admin-header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-header-inner {
    padding: 4px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header-left {
    display: flex;
    align-items: center;
}

.admin-header-left .logo img {
    height: 40px;
}

.admin-header-left .admin-title {
    font-size: 18px;
    margin-left: 10px;
}

.admin-header-center {
    flex: 1;
    text-align: center;
}

.admin-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-right .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.admin-user-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.admin-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

.admin-separator {
    height: 1px;
    background: var(--border);
    margin: 0;
}

/* Admin Nav */
.admin-nav {
    background: var(--bg-darker);
}

.admin-nav .container {
    padding: 10px 24px;
}

.admin-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    justify-content: center;
}

.admin-nav .nav-links a {
    padding: 10px 18px;
    color: var(--gray-200);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.admin-nav .nav-links a:hover {
    color: var(--white);
    background: rgba(54, 65, 78, 0.1);
}

/* Admin Vertical Line */
.admin-vertical-line {
    position: fixed;
    left: 14%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    z-index: 0;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 14%;
    height: 100vh;
    background: var(--bg-darker);
    border-right: 1px solid var(--border);
    padding: 80px 12px 20px;
    z-index: 999;
    overflow-y: auto;
}

.admin-container {
    margin-left: 14%;
}

.admin-sidebar-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--gray-200);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.admin-sidebar-close:hover {
    background: var(--bg-card-hover);
}

.admin-sidebar-category {
    font-size: 12px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 10px;
}

.admin-sidebar-section {
    margin-bottom: 20px;
}

.admin-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-sidebar-btn {
    background: none;
    border: none;
    color: var(--gray-200);
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-sidebar-btn svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.admin-sidebar-btn:hover {
    background: var(--bg-card-hover);
    color: var(--white);
}

.admin-sidebar-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Admin Mobile Toggle */
.admin-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-200);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.admin-mobile-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--white);
}

/* Admin Mobile Logo */
.admin-mobile-logo {
    display: none;
    position: fixed;
    top: 5px;
    left: 10px;
    z-index: 1000;
}

/* Responsive for Admin */
@media (max-width: 768px) {
    .admin-header {
        display: none;
    }

    .admin-mobile-logo {
        display: block;
    }

    .admin-mobile-toggle {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1000;
    }

    .admin-vertical-line {
        display: none;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-sidebar.open {
        display: block !important;
        width: 100% !important;
        left: 0 !important;
        height: 100vh !important;
        top: 0 !important;
        padding-top: 50px !important;
    }

    .admin-sidebar.open .admin-sidebar-close {
        display: block;
    }

    .admin-sidebar-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    .container {
        margin-left: 0;
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 60px; /* Space for mobile elements */
    }

    .admin-container {
        margin-left: 0;
    }
}

/* Branding Settings Styles */
.branding-settings {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 20px;
}

.branding-settings h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.branding-settings input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-darker);
    color: var(--white);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.branding-settings .btn {
    margin-top: 10px;
}

.branding-settings p {
    margin-bottom: 10px;
    color: var(--gray-200);
}

.branding-field {
    margin-bottom: 20px;
}

.branding-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--white);
    font-weight: 500;
}

.branding-field input,
.branding-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-darker);
    color: var(--white);
    box-sizing: border-box;
}

.branding-field input[type="file"] {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.branding-field input[type="file"]:hover {
    border-color: var(--primary);
}

.branding-field textarea {
    resize: vertical;
    min-height: 80px;
}

.logo-preview {
    margin-bottom: 10px;
}

.logo-preview img {
    max-width: 200px;
    max-height: 100px;
    border-radius: 5px;
    border: 1px solid var(--border);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.logo-field .btn {
    margin-top: 0;
}

/* Responsive Branding Settings */
@media (max-width: 768px) {
    .container {
        margin-left: 0;
        padding: 20px;
    }

    h1 {
        position: static !important;
        text-align: center;
        margin-bottom: 20px;
        font-size: 28px;
    }

    p[style*="position: fixed"] {
        position: static !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .branding-settings {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        top: auto !important;
        left: auto !important;
        margin: 0 auto;
    }

    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .color-pickers .color-picker-group .color-preview {
        width: 50px;
        height: 35px;
    }

    .color-pickers .color-picker-group input[type="text"] {
        flex: 1;
    }

    .branding-settings {
        padding: 24px;
    }

    .branding-field input,
    .branding-field textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .logo-preview {
        width: 60px;
        height: 60px;
    }

    .color-pickers {
        gap: 12px;
    }

    .color-picker-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .color-picker-group .color-preview {
        align-self: flex-start;
    }

    .color-picker-group input[type="text"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .branding-settings {
        padding: 16px;
    }

    .logo-field {
        padding: 16px;
    }

    .branding-field {
        margin-bottom: 20px;
    }

    .branding-field label {
        font-size: 13px;
    }

    .branding-field input,
    .branding-field textarea {
        padding: 8px 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Admin Panel Styles */
.admin-section-category h2 {
    color: var(--white);
    margin-bottom: 10px;
}
.admin-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.admin-overview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    min-width: 250px;
    background: var(--gray-800);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s;
}
.admin-overview-btn:hover {
    background: var(--gray-700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
.admin-btn-overview {
    background: var(--bg-darker) !important;
}
.admin-btn-management {
    background: var(--bg-darker) !important;
}
.admin-btn-system {
    background: var(--bg-darker) !important;
}

/* Responsive design for admin buttons */
@media (max-width: 1024px) {
    .admin-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-buttons-grid {
        grid-template-columns: 1fr;
    }
    .admin-overview-btn {
        min-width: unset;
        padding: 15px;
    }
}

/* Admin Dashboard Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}
.admin-stat-card {
    background: var(--bg-darker);
    color: var(--white);
    padding: 10px 20px 10px 80px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    transition: background 0.3s;
    position: relative;
}
.admin-stat-card:hover {
    background: var(--gray-700);
}
.stat-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}
.stat-icon svg {
    width: 24px;
    height: 24px;
}
.admin-stat-card:nth-child(1) .stat-icon svg {
    color: #00d2ff;
}
.admin-stat-card:nth-child(2) .stat-icon svg {
    color: #00ff00;
}
.admin-stat-card:nth-child(3) .stat-icon svg {
    color: #ffa500;
}
.admin-stat-card:nth-child(4) .stat-icon svg {
    color: #00d2ff;
}
.admin-stat-card:nth-child(1) .stat-icon {
    background: rgba(0, 210, 255, 0.3);
}
.admin-stat-card:nth-child(2) .stat-icon {
    background: rgba(0, 255, 0, 0.3);
}
.admin-stat-card:nth-child(3) .stat-icon {
    background: rgba(255, 165, 0, 0.3);
}
.admin-stat-card:nth-child(4) .stat-icon {
    background: rgba(0, 210, 255, 0.3);
}
.admin-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--gray-400);
}
.admin-stat-card p {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
}

/* Users Management Page Specific Styles */
.users-management-page .admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}
.users-management-page .admin-stat-card {
    background: var(--bg-darker);
    color: var(--white);
    padding: 10px 20px 10px 80px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    transition: background 0.3s;
    position: relative;
}
.users-management-page .admin-stat-card:hover {
    background: var(--gray-700);
}
.users-management-page .stat-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}
.users-management-page .stat-icon svg {
    width: 24px;
    height: 24px;
}
.users-management-page .admin-stat-card:nth-child(1) .stat-icon svg {
    color: #00d2ff;
}
.users-management-page .admin-stat-card:nth-child(2) .stat-icon svg {
    color: #00ff00;
}
.users-management-page .admin-stat-card:nth-child(3) .stat-icon svg {
    color: #ff0000;
}
.users-management-page .admin-stat-card:nth-child(4) .stat-icon svg {
    color: #ff0000;
}
.users-management-page .admin-stat-card:nth-child(1) .stat-icon {
    background: rgba(0, 210, 255, 0.3);
}
.users-management-page .admin-stat-card:nth-child(2) .stat-icon {
    background: rgba(0, 255, 0, 0.3);
}
.users-management-page .admin-stat-card:nth-child(3) .stat-icon {
    background: rgba(255, 0, 0, 0.2);
}
.users-management-page .admin-stat-card:nth-child(4) .stat-icon {
    background: rgba(255, 0, 0, 0.3);
}
.users-management-page .admin-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--gray-400);
}
.users-management-page .admin-stat-card p {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
}

/* Responsive for Users Management stats */
@media (max-width: 1024px) {
    .users-management-page .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .users-management-page .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.users-management-page .user-management-section {
    top: 300px;
}

/* Responsive positioning for Users Management */
@media (max-width: 768px) {
    .users-management-page .admin-stats {
        top: 120px;
    }
    .users-management-page .user-management-section {
        top: 480px;
    }
    .admin-container h1 {
        left: 10%;
    }
}

/* Responsive for stats */
@media (max-width: 1024px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Global Scrollbar Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(54, 65, 78, 0.5);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(54, 65, 78, 0.7);
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(54, 65, 78, 0.5) rgba(255, 255, 255, 0.1);
}

.ticket-item {
    transition: background 0.3s ease;
}

.ticket-item:hover {
    background: var(--bg-card-hover) !important;
}

.discord-button {
    background-color: #006ae6; /* Specified blue */
    color: white;
    padding: 6px 12px; /* Bigger padding */
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px; /* Bigger font */
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none; /* Remove border */
}

.discord-button:hover {
    background-color: #0056b3; /* Slightly darker on hover */
}

/* ================================
   REWIRE — DARK RGB STANDARD THEME
   Paste at VERY BOTTOM of Styles.css
   (Overrides old blue + mismatched sections)
================================== */

:root{
  /* Base */
  --bg-0: rgb(24, 26, 31);

  /* Your standard gradient */
  --card-grad: linear-gradient(
    135deg,
    rgb(28, 31, 38) 0%,
    rgb(22, 25, 31) 35%,
    rgb(14, 16, 20) 100%
  );

  /* Slightly brighter “chip” gradient */
  --chip-grad: linear-gradient(
    135deg,
    rgb(36, 40, 48) 0%,
    rgb(26, 29, 36) 35%,
    rgb(16, 18, 22) 100%
  );

  /* Borders */
  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.14);

  /* Text (force white system-wide) */
  --white: rgba(255,255,255,0.95);
  --gray-100: rgba(255,255,255,0.88);
  --gray-200: rgba(255,255,255,0.78);
  --gray-300: rgba(255,255,255,0.68);
  --text-main: rgba(255,255,255,0.95);
  --text-sub: rgba(255,255,255,0.72);

  /* Inputs */
  --input-bg: rgb(18, 20, 24);
  --bg-dark: rgb(14, 16, 20);

  /* Primary (kills old #36414e blue everywhere) */
  --primary: rgb(36, 40, 48);
  --primary-2: rgb(14, 16, 20);
}

/* ================================
   GLOBAL BACKGROUND + TEXT
================================== */
html, body{
  background: var(--bg-0) !important;
  color: var(--text-main) !important;
}

/* Make ALL text default white-ish */
body, p, span, li, small, label, a, h1, h2, h3, h4, h5, h6{
  color: var(--text-main);
}

/* Secondary text helpers */
.section-subtitle,
.hero-description,
.feature-card p,
.application-description,
.stat-label{
  color: var(--text-sub) !important;
}

/* Fix “bottom part not same colour” (sections/backgrounds) */
section,
.hero,
.stats-bar,
.features,
.features.section,
footer,
.footer,
.container,
main{
  background: transparent !important;
}

/* ===== STATS BAR (NO BOXES) ===== */

.stats-bar{
  position: relative;
  padding: 60px 0;
  
  /* Same site RGB background */
  background: linear-gradient(
    135deg,
    rgb(28, 31, 38) 0%,
    rgb(22, 25, 31) 35%,
    rgb(14, 16, 20) 100%
  );

  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Grid layout stays */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* REMOVE BOXES */
.stat-item{
  background: none;          /* ❌ removed box */
  border: none;              /* ❌ removed border */
  box-shadow: none;          /* ❌ removed shadow */
  padding: 0;
}

/* BIG NUMBERS */
.stat-value{
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;            /* ✅ pure white */
  letter-spacing: -0.02em;
}

/* LABEL TEXT */
.stat-label{
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* OPTIONAL ICONS ABOVE STATS */
.stat-icon{
  display: block;
  margin-bottom: 10px;
}

/* Stats Icons */
.stat-icon svg{
  width: 28px;
  height: 28px;

  stroke: #ffffff !important;
  fill: none !important;

  opacity: 0.95;
}

.stat-icon svg path{
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.stat-icon i{
  color: #ffffff !important;
}

.stats-bar .stat-item,
.stats-grid .stat-item{
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.section-label,
.section-title{
  position: relative;
  z-index: 2;
}

/* ================================
   NAV (KEEP SCROLL ANIMATION)
================================== */
.nav{
  background: transparent !important;
}

.nav.scrolled{
  background: linear-gradient(
    135deg,
    rgba(28, 31, 38, 0.92) 0%,
    rgba(22, 25, 31, 0.92) 35%,
    rgba(14, 16, 20, 0.92) 100%
  ) !important;

  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Nav links */
.nav-links a{
  color: rgba(255,255,255,0.78) !important;
}
.nav-links a:hover,
.nav-links a.active{
  color: rgba(255,255,255,0.95) !important;
  background: rgba(255,255,255,0.06) !important;
}

/* ================================
   BUTTONS (GLOBAL)
================================== */
.btn,
.btn-primary{
  background: var(--chip-grad) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.95) !important;
}

.btn:hover,
.btn-primary:hover{
  border-color: rgba(255,255,255,0.16) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.70) !important;
}

.btn-secondary{
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.88) !important;
}
.btn-secondary:hover{
  background: rgba(255,255,255,0.06) !important;
}

/* ================================
   CARDS / PANELS (GLOBAL)
================================== */
.hero-card,
.feature-card,
.stat-item,
.application-card,
.application-note,
.modern-card,
.floating-badge{
  background: var(--card-grad) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* Inner headers/separators */
.hero-card-header,
.user-dropdown-head{
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Feature icon chip */
.feature-icon,
.application-icon,
.icon-wrap{
  background: var(--chip-grad) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* ================================
   STATS BAR (make text visible)
================================== */
.stat-value{
  color: rgba(255,255,255,0.95) !important;
}
.stat-label{
  color: rgba(255,255,255,0.70) !important;
}

/* ================================
   INPUTS / TEXTAREAS / SELECTS (PROMINENT)
================================== */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select{
  width: 100%;
  padding: 13px 15px;

  color: rgba(255,255,255,0.95) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18) !important;

  background: var(--chip-grad) !important;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;

  outline: none;
  transition: all 0.18s ease;
}

input:focus,
textarea:focus,
select:focus{
  border-color: rgba(255,255,255,0.35) !important;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.08),
    0 10px 30px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder{
  color: rgba(255,255,255,0.55) !important;
}

/* ================================
   CUSTOM SELECT (YOUR DROPDOWN)
================================== */
.custom-select{
  position: relative;
  width: 100%;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18) !important;

  background: var(--chip-grad) !important;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;

  cursor: pointer;
  transition: all 0.18s ease;
}

.custom-select:focus-within{
  border-color: rgba(255,255,255,0.35) !important;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.08),
    0 10px 30px rgba(0,0,0,0.85) !important;
}

.custom-select .selected{
  padding: 13px 15px;
  color: rgba(255,255,255,0.92) !important;
}

.custom-select .options{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: var(--card-grad) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-top: none;

  border-radius: 0 0 12px 12px;
  max-height: 180px;
  overflow-y: auto;

  list-style: none;
  margin: 0;
  padding: 6px 0;

  z-index: 1000;
  display: none;

  box-shadow: 0 20px 55px rgba(0,0,0,0.85) !important;
}

.custom-select.open .options{
  display: block;
}

.custom-select .options li{
  padding: 10px 14px;
  color: rgba(255,255,255,0.88) !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.custom-select .options li:hover{
  background: rgba(255,255,255,0.06) !important;
}

/* ================================
   MULTIPLE CHOICE (CHECKBOX STYLE)
================================== */
.multiple-option{
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: 6px;
  cursor: pointer;
}

.multiple-option input{
  appearance: none;
  -webkit-appearance: none;

  width: 18px;
  height: 18px;
  margin-right: 10px;

  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18) !important;

  background: var(--card-grad) !important;

  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}

.multiple-option input:checked{
  border-color: rgba(255,255,255,0.45) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08) !important;
}

.multiple-option input:checked::after{
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 12px;
  color: #fff;
  font-weight: bold;
}

/* ================================
   SHARP OUTER FORM BOX (APPLICATIONS)
================================== */
.application-form-section > div,
.application-response-section > div,
.panel-box{
  background: var(--card-grad) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    0 0 0 1px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;

  padding: 30px !important;
}

/* ================================
   HERO / FEATURES TEXT FORCE WHITE
================================== */
.hero h1,
.hero h2,
.hero h3,
.features h1,
.features h2,
.features h3{
  color: rgba(255,255,255,0.95) !important;
}

.feature-card h3,
.hero-card-title,
.section-title{
  color: rgba(255,255,255,0.95) !important;
}

.section-title{
  color: #ffffff !important;
}

.section-subtitle{
  color: rgba(255,255,255,0.75) !important;
}

.section-label,
.section-title{
  position: relative;
  z-index: 2;
}

/* ================================
   ADMIN: UNIFIED DARK RGB THEME
   Paste at BOTTOM of Styles.css
=================================== */
:root{
  --bg-0: rgb(24, 26, 31);

  --card-grad: linear-gradient(
    135deg,
    rgb(28, 31, 38) 0%,
    rgb(22, 25, 31) 35%,
    rgb(14, 16, 20) 100%
  );

  --chip-grad: linear-gradient(
    135deg,
    rgb(32, 36, 44) 0%,
    rgb(18, 20, 24) 100%
  );

  --border-soft: rgba(255,255,255,0.06);
  --border-mid:  rgba(255,255,255,0.14);

  --text-main: rgba(255,255,255,0.92);
  --text-sub:  rgba(255,255,255,0.60);

  /* ONE shadow system (so every page matches) */
  --shadow-card: 0 18px 55px rgba(0,0,0,0.70), inset 0 1px 0 rgba(255,255,255,0.03);
  --shadow-card-hover: 0 26px 70px rgba(0,0,0,0.80), 0 0 0 3px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.04);

  --shadow-header: 0 18px 55px rgba(0,0,0,0.65);
}

/* Page base (admin pages too) */
body{
  background: var(--bg-0) !important;
  color: var(--text-main);
}

/* ---------- ADMIN HEADER (removes blue tint) ---------- */
.admin-header{
  background: rgba(24, 26, 31, 0.78) !important;  /* was blue-ish on some pages */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft) !important;
  box-shadow: var(--shadow-header) !important;
}

.admin-separator{
  background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)) !important;
}

/* ---------- ADMIN SIDEBAR (removes blue tint) ---------- */
.admin-sidebar{
  background: linear-gradient(
    180deg,
    rgba(24, 26, 31, 0.92) 0%,
    rgba(14, 16, 20, 0.92) 100%
  ) !important;

  border-right: 1px solid var(--border-soft) !important;
  box-shadow: 12px 0 55px rgba(0,0,0,0.55) !important;
}

/* If you have that vertical line element */
.admin-vertical-line{
  background: rgba(255,255,255,0.06) !important;
}

/* Sidebar text + icons = white */
.admin-sidebar-category{
  color: rgba(255,255,255,0.55) !important;
  letter-spacing: 0.10em;
}

.admin-sidebar-btn{
  color: rgba(255,255,255,0.86) !important;
}

.admin-sidebar-btn svg,
.admin-sidebar-btn svg *{
  stroke: rgba(255,255,255,0.92) !important;
}

/* Active sidebar button (no blue highlight) */
.admin-sidebar-btn.active,
.admin-sidebar-btn[aria-current="page"]{
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* ---------- UNIFY ALL ADMIN "CARD" SHADOWS ---------- */
/* Dashboard overview cards */
.admin-card{
  background: var(--card-grad) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: var(--shadow-card) !important;
}
.admin-card:hover{
  border-color: var(--border-mid) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

/* TicketsOverview / category tiles / generic panels (common ones) */
.ticket-category,
.ticket-category-card,
.category-card,
.panel,
.panel-box,
.glass-card,
.card,
.to-card,
.to-cat,
.to-ticket{
  background: var(--card-grad) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: var(--shadow-card) !important;
}

.ticket-category:hover,
.ticket-category-card:hover,
.category-card:hover,
.panel:hover,
.panel-box:hover,
.glass-card:hover,
.card:hover,
.to-cat:hover,
.to-ticket:hover{
  border-color: var(--border-mid) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

/* Fix any dropdowns that were using the blue rgba(31,41,54,0.9) */
.dropdown-options,
.admin-dropdown,
.custom-dropdown .dropdown-options{
  background: rgba(24, 26, 31, 0.92) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: 0 20px 70px rgba(0,0,0,0.75) !important;
}

/* Optional: make any icon blocks match */
.admin-card-icon,
.to-card .icon,
.to-cat .icon,
.to-ticket .icon{
  background: var(--chip-grad) !important;
  border: 1px solid var(--border-soft) !important;
}

/* =========================
   USER MENU (BLENDED GLASS)
========================= */

/* Avatar */
.user-menu .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    
    /* Blend styling */
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.user-menu .user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    border-color: rgba(54,65,78,0.65);
}


/* =========================
   DROPDOWN PANEL
========================= */

.user-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    
    /* Glass blend */
    background: rgba(31, 41, 54, 0.92);
    backdrop-filter: blur(14px);
    
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    
    box-shadow:
        0 20px 70px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.06);
    
    padding: 8px;
    z-index: 9999;
    
    /* Smooth animation */
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.18s ease;
}

/* Show state */
.user-menu.open .dropdown-menu,
.user-menu:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* =========================
   DROPDOWN ITEMS
========================= */

.user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    
    padding: 10px 12px;
    border-radius: 10px;
    
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 14px;
    
    transition: background 0.15s ease, color 0.15s ease;
}

/* Hover blend */
.user-menu .dropdown-item:hover {
    background: rgba(54,65,78,0.12);
    color: #fff;
}


/* =========================
   DIVIDER
========================= */

.user-menu .dropdown-divider {
    height: 1px;
    margin: 6px 4px;
    background: rgba(255,255,255,0.08);
}


/* =========================
   USER INFO HEADER (optional)
========================= */

.user-menu .dropdown-user {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.user-menu .dropdown-user strong {
    display: block;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
}

.user-menu .dropdown-user span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

.user-menu .dropdown-menu {
    background: rgba(31, 41, 54, 0.92) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
}

.feature-icon svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}