/*
  FITNESSLINE - Classical Elite Edition (v5.0)
  Theme: Dark Royal Charcoal & Brushed Bronze
*/

:root {
  --bg-deep: #050508; 
  --bg-dark: #0a0a0f; 
  --bg-surface: #12121e;
  --accent-primary: #ffb703; /* Electric Gold */
  --accent-secondary: #e63946; /* Vibrant Red */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65); 
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --grad-main: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  --glow-gold: 0 0 35px rgba(255, 183, 3, 0.25);
  --shadow-v3: 0 25px 60px rgba(0, 0, 0, 0.6);
  --font-royal: 'Syncopate', sans-serif;
  --font-serif: 'Outfit', sans-serif;
}

/* Base Styles */
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Outfit', sans-serif; -webkit-font-smoothing: antialiased; }

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 183, 3, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(230, 57, 70, 0.03) 0%, transparent 50%);
}

/* Luxury Grain Texture */
body::after {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

/* Custom Selection & Scrollbar */
::selection { background: var(--accent-primary); color: #000; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(212, 163, 115, 0.3); border-radius: 10px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

h1, h2, h3, .logo-text, .tag, h4, h5 {
    font-family: var(--font-royal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-primary);
}

h6 { font-family: var(--font-serif); text-transform: none; font-size: 1.2rem; }

.gradient-text {
    background: var(--grad-main);
    background-clip: text;
    -webkit-text-fill-color: transparent; 
}

.italic { font-style: italic; }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-v3);
}

.shadow-v3 { box-shadow: var(--shadow-v3); }

/* Glowing Orbs (Golden Atmosphere) */
.glow-orb { position:fixed; border-radius:50%; filter:blur(180px); z-index:-1; pointer-events:none; }
.glow-top-left { width: 500px; height: 500px; background: rgba(255, 183, 3, 0.15); top: -250px; left: -250px; display: block; }
.glow-bottom-right { width: 600px; height: 600px; background: rgba(230, 57, 70, 0.1); bottom: -300px; right: -300px; display: block; }

/* Navigation Core Fix - Ensure Spread Out Layout */
.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px;
    margin: 0 auto;
}

#main-nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 20px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 10000; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
}

/* Luxury Footer Redesign - Ultra Compact Minimalist Version */
.footer-premium {
    background: #08080c; /* Restore Carbon Black */
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0 20px; /* Ultra reduced padding */
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer-premium::before { display: none; } /* Removing top glow for space */

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    gap: 30px; /* Even smaller gap */
}

.footer-brand .logo { margin-bottom: 10px; transform: scale(0.9); transform-origin: left; }
.footer-vision { display: none; } /* Removed for size */

.footer-col h4 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem; /* Big */
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; } /* Slim list */
.footer-links a {
    color: var(--text-secondary); 
    text-decoration: none;
    opacity: 1;
    font-size: 0.95rem; 
    transition: 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--accent-primary); }

.footer-newsletter h4 { margin-bottom: 10px; }
.footer-newsletter p { font-size: 0.7rem; color: var(--accent-secondary); margin-bottom: 10px; }

.newsletter-box {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 3px;
    border-radius: 8px;
}
.newsletter-box input {
    background: transparent; border: none; padding: 6px 10px; color: white; font-size: 0.7rem; flex: 1; outline: none;
}
.newsletter-box button {
    background: var(--grad-main); border: none; color: black; padding: 6px 12px;
    border-radius: 5px; font-weight: 800; font-size: 0.65rem;
}

.footer-bottom {
    margin-top: 30px; 
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    font-size: 0.65rem;
    color: var(--accent-secondary); /* Changed blur white to red */
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div { text-align: center; }
    .newsletter-box { flex-direction: column; }
}
#main-nav.scrolled { 
    padding: 15px 5%; 
    background: #ffffff !important; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Fix for dark hero pages: Keep nav white at top */
.hero-page ~ #main-nav:not(.scrolled),
.blog-header ~ #main-nav:not(.scrolled) {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}


.logo { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 1.6rem; 
    font-weight: 800; 
    letter-spacing: 6px; 
    line-height: 1;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.tagline {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(27, 38, 59, 0.2));
    transition: 0.5s;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 25px rgba(255, 183, 3, 0.9));
    transform: rotate(5deg);
}

.menu-toggle {
    display: none !important;
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.menu-toggle:hover {
    color: #fff;
    text-shadow: var(--glow-gold);
}

.nav-links { display:flex; list-style:none; gap:35px; align-items:center; }

.nav-links a { 
    text-decoration: none; 
    color: #ffffff; /* Default for Dark Theme */
    font-weight: 800; 
    font-size: 0.8rem; 
    transition: all 0.3s ease; 
    letter-spacing: 2px; 
    position: relative;
}

#main-nav.scrolled .nav-links > li > a,
#main-nav.scrolled .drop-btn {
    color: #000000 !important;
}

/* Ensure Dropdown is visible when navbar is white */
#main-nav.scrolled .dropdown-content,
.hero-page ~ #main-nav .dropdown-content,
.blog-header ~ #main-nav .dropdown-content {
    background: #0a0a0f !important;
    border-color: rgba(255,255,255,0.1);
}

#main-nav.scrolled .logo-text,
#main-nav.scrolled .tagline,
#main-nav.scrolled .logo-text .gradient-text {
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

#main-nav.scrolled .menu-toggle {
    color: #000000 !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--grad-main);
    transition: 0.3s;
    box-shadow: var(--glow-gold);
}

.nav-links a:hover { 
    color: var(--accent-primary); 
    letter-spacing: 3px; 
}

.nav-links a:hover::after {
    width: 100%;
}
.dashboard-link { border:1px solid var(--accent-primary); padding:10px 20px; border-radius:4px; color:var(--accent-primary) !important; }

/* Split Hero Section */
.split-hero { min-height:80vh; display:flex; position:relative; overflow:hidden; }
.hero-left { flex:1.2; display:flex; align-items:center; padding:160px 5% 20px 8%; z-index:10; }
.hero-right { flex:0.8; position:relative; display:flex; align-items:center; justify-content:center; }

/* Standard Page Hero (Dark Theme) */
.hero-page {
    background: var(--bg-dark);
    padding: 160px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-page h1, .hero-page h2, .hero-page p {
    color: white !important;
}
.hero-page .tag {
    color: var(--accent-secondary) !important;
}
.hero-page .hero-desc {
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: none;
}

.hero-main-img { width:120%; height:100%; object-fit:cover; filter:brightness(0.8) saturate(0.8); z-index:1; }

.floating-stat-card { position:absolute; bottom:15%; left:-50px; padding:30px 50px; border-radius:24px; z-index:5; text-align:center; border:1px solid var(--glass-border); background: var(--bg-dark); }
.stat-num { display:block; font-size:3rem; font-weight:800; line-height:1; color:var(--accent-secondary); }
.stat-txt { font-size:0.7rem; letter-spacing:3px; text-transform:uppercase; font-weight:800; color: #ffffff; opacity: 0.9; }

/* Buttons & Tags */
.tag { color:var(--accent-primary); font-weight:800; letter-spacing:6px; font-size:0.7rem; display:flex; align-items:center; gap:15px; margin-bottom:25px; }
.cyber-line { width:40px; height:2px; background:var(--accent-primary); box-shadow:var(--glow-gold); }

.btn { padding:18px 45px; border-radius:100px; text-decoration:none; font-weight:900; font-size:0.8rem; letter-spacing:4px; text-transform:uppercase; transition:all 0.4s ease; cursor:pointer; display:inline-block; border:none; text-align:center; }
.btn-primary { background:var(--grad-main); color:#000; box-shadow:var(--glow-gold); }
.btn-primary:hover { transform:translateY(-5px) scale(1.05); box-shadow:0 10px 40px rgba(230, 57, 70, 0.3); }
.btn-outline { border:2px solid var(--accent-primary); color:var(--accent-primary); background:transparent; }
.btn-outline:hover { background:var(--accent-primary); color:#000; }

.pulse { animation:pulse-glow 2s infinite; }
@keyframes pulse-glow { 0%, 100% { box-shadow:0 0 10px rgba(230, 57, 70, 0.3); } 50% { box-shadow:0 0 40px rgba(230, 57, 70, 0.5); } }

/* Asymmetric Ecosystem Grid */
.container { max-width:1400px; margin:0 auto; padding:15px 5%; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.section-header.align-left { text-align:left; margin-bottom:40px; }
.section-desc { font-size:1.1rem; color:var(--text-secondary); max-width:800px; line-height:1.6; font-weight:700; margin-top:10px; }

h1 { font-size:clamp(3.5rem, 10vw, 7rem); line-height:1; margin-bottom:2rem; }
h2 { font-size:clamp(3rem, 7vw, 4.5rem); line-height:0.9; }
.gradient-text { background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; font-weight:800; }

.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 450px 450px;
  gap: 20px;
}

.v3-card {
  position: relative;
  border-radius: 40px;
  background-color: transparent; /* Remove solid block */
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(27, 38, 59, 0.05);
}

.v3-card.p1 { grid-area: 1 / 1 / 3 / 2; }
.v3-card.p2 { grid-area: 1 / 2 / 2 / 4; }
.v3-card.p3 { grid-area: 2 / 2 / 3 / 3; }
.v3-card.p4 { grid-area: 2 / 3 / 3 / 4; }
.v3-card.p5 { grid-area: 1 / 4 / 2 / 5; }
.v3-card.p6 { grid-area: 2 / 4 / 3 / 5; }

.p-num {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  opacity: 0.4;
  letter-spacing: 5px;
  border: 1px solid var(--accent-primary);
  padding: 5px 10px;
  border-radius: 100px;
}

.v3-card:hover .p-num { opacity: 1; box-shadow: var(--glow-gold); }

.v3-card:hover { 
  border-color: var(--accent-primary); 
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(255, 183, 3, 0.2);
}


.v3-card.p5 { grid-column: 4 / 5; grid-row: 1 / 2; }
.v3-card.p6 { grid-column: 4 / 5; grid-row: 2 / 3; }

.v3-overlay {
  position: absolute; top:0; left:0; width:100%; height:100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.9) 100%);
  display: flex; align-items: flex-end; padding: 40px;
  transition: 0.5s;
}

.v3-card:hover .v3-overlay { background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.95) 100%); }

.v3-content h3 { font-size: 2.2rem; margin-bottom: 12px; color: #ffffff; letter-spacing: -1px; text-shadow: 0 0 20px rgba(0, 0, 0, 0.2); }
.v3-content p { color: rgba(255, 255, 255, 0.9); font-weight: 700; font-size: 1.1rem; margin-top: 8px; line-height: 1.5; }
.v3-link { color:white; text-decoration:none; font-weight:800; font-size:0.75rem; letter-spacing:4px; margin-top:20px; display:inline-block; transition:0.3s; border-bottom: 2px solid var(--accent-primary); padding-bottom: 5px; }
.v3-link:hover { color:var(--accent-primary); letter-spacing:6px; border-bottom-width: 4px; }

/* About Section Styles */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.about-card {
    background: var(--bg-dark);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 183, 3, 0.03);
}

.about-icon {
    margin-bottom: 30px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.4));
}

.about-card h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: var(--accent-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-card h3 { color: #ffffff; margin-bottom: 15px; }
.about-list { list-style: none; margin-bottom: 30px; }
.about-list li { margin-bottom: 15px; font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; color: var(--text-secondary); /* Balanced with background */ }
.about-list li span { color: var(--accent-secondary); font-weight: 800; }

/* Dark container overrides - Solid Background to prevent visibility issues */
.glass-card, .ai-card, .about-card, .blog-body, .info-item, .contact-form-card, .collab-box, .ai-tool-card {
    background: #0a0a0c !important; /* Solid Dark */
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}
.v3-card {
    background-color: transparent;
}
.glass-card *, .v3-card *, .ai-card *, .about-card *, .blog-body *, .info-item *, .contact-form-card *, .collab-box *, .ai-tool-card * {
    color: rgba(255, 255, 255, 0.8) !important;
}
.glass-card h1, .glass-card h2, .glass-card h3, .v3-card h3, .ai-card h3, .about-card h3, .collab-box h2 {
    color: #ffffff !important;
}
.glass-card .tag, .v3-card .tag, .ai-card .tag, .ai-header, .glass-card .box-label, .box-unit, .glass-card span {
    color: var(--accent-secondary) !important; /* Red */
}
.community-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.c-stat {
    display: flex;
    flex-direction: column;
}

.c-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.c-txt {
    font-size: 0.7rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: var(--text-secondary);
}

/* Custom Overrides for Asymmetric Layout */
.asymmetric-grid > .v3-card:nth-child(4) { flex: 1; }

/* Footer v3 */
footer { padding: 100px 5%; background: var(--bg-dark); text-align: center; border-top: 1px solid var(--glass-border); }
.copyright { font-size: 0.7rem; color: rgba(255, 255, 255, 0.2); letter-spacing: 5px; font-weight: 800; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 40px; }

/* Mobile Adaptations */
@media (max-width: 1024px) {
  .asymmetric-grid { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .v3-card { height: 400px !important; flex: none !important; width: 100% !important; }
  .v3-sub-grid, .v3-twin-grid { display: flex; flex-direction: column; height: auto; }
  .about-grid { grid-template-columns: 100%; }
}

@media (max-width: 768px) {
  nav { padding: 15px 5%; background: rgba(12, 12, 16, 0.98); }
  .menu-toggle { display: block !important; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(12, 12, 16, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: flex-start; /* Stop centering to prevent vertical jumping */
    padding-top: 15vh;
    padding-bottom: 50px;
    overflow-y: auto; /* Allow scrolling if submenus are too big */
    gap: 25px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    border-left: 1px solid var(--accent-primary);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .split-hero { flex-direction: column; padding-top: 80px; }
  .hero-left { padding: 120px 8% 50px; text-align: center; }
  .hero-btns { justify-content: center; flex-direction: column; gap: 15px; }
  .hero-right { height: 350px; display: flex !important; align-items: center; justify-content: center; width: 100%; }
  h1 { font-size: 3rem; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
/* Network Section Fixes */
@media (max-width: 768px) {
    .network-section .split-hero {
        flex-direction: column !important;
    }
    .network-section .hero-right {
        display: block !important;
        height: 400px;
        order: -1;
    }
    .network-section .hero-main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .network-section h2 {
        font-size: 2.5rem !important;
    }
}

/* AI Diagnostics Section Styles */
.ai-card { background: var(--bg-dark); border-radius: 40px; padding: 60px; border: 1px solid var(--glass-border); position: relative; overflow: hidden; height: 100%; transition: 0.5s; backdrop-filter: blur(20px); }
.ai-card:hover { border-color: var(--accent-primary); transform: translateY(-5px); }
.ai-header { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; color: var(--accent-primary); letter-spacing: 4px; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; }
.ai-header.gold { color: var(--accent-secondary); }
.pulse-dot { width: 12px; height: 12px; background: currentColor; border-radius: 50%; animation: pulse-glow 1.5s infinite; }

.ai-form { display: flex; flex-direction: column; gap: 25px; }
.input-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 12px; }
.input-group label { font-size: 0.7rem; letter-spacing: 3px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; }
.input-group input, .input-group select, .newsletter-form input { 
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 18px 25px; 
    border-radius: 15px; 
    color: #ffffff !important; 
    font-weight: 600; 
    transition: 0.3s;
    font-size: 1.1rem;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    box-sizing: border-box;
}
::placeholder { color: rgba(255, 255, 255, 0.3); }
::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.3); }
.input-group select option {
    background-color: #0a0a0f;
    color: #ffffff;
    padding: 15px;
}
.input-group input:focus, .input-group select:focus { border-color: var(--accent-primary); outline: none; background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 30px rgba(255, 183, 3, 0.15); }

/* Results */
.hidden-res { display: none; margin-top: 30px; animation: fadeInUp 0.5s ease forwards; }
.bmi-badge { background: var(--grad-main); color: #000; display: inline-block; padding: 12px 25px; border-radius: 100px; font-weight: 900; letter-spacing: 2px; font-size: 0.8rem; }
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.timeline-box { background: rgba(255, 255, 255, 0.03); padding: 25px; border-radius: 20px; text-align: center; border: 1px solid var(--glass-border); transition: 0.3s; }
.timeline-box:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--accent-primary); }
.box-label { display: block; font-size: 0.55rem; letter-spacing: 2px; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; font-weight: 800; }
.box-days { display: block; font-size: 2.2rem; font-weight: 800; color: white; line-height: 1; margin-bottom: 5px; }
.box-unit { font-size: 0.6rem; letter-spacing: 1px; opacity: 0.4; font-weight: 800; }

.ai-placeholder { text-align: center; padding: 60px 40px; color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 350px; opacity: 0.6; }
.lock-icon { font-size: 3.5rem; margin-bottom: 20px; filter: grayscale(1) brightness(0.5); }

.diet-list { list-style: none; display: flex; flex-direction: column; gap: 15px; padding: 0; }
.diet-list li { background: rgba(251, 133, 0, 0.08); border-left: 4px solid var(--accent-secondary); padding: 18px 25px; border-radius: 0 16px 16px 0; font-size: 1rem; color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.upsell-box { margin-top: 35px; text-align: center; border-top: 1px solid var(--glass-border); padding-top: 25px; }
.upsell-box p { font-size: 0.8rem; opacity: 0.6; margin-bottom: 15px; font-weight: 600; }

/* Modal */
nav { position:fixed; width:100%; top:0; z-index:1000; padding:25px 5%; transition:0.5s; background:transparent; border-bottom: 1px solid transparent; }
nav.scrolled { background: rgba(255, 255, 255, 0.98); padding: 15px 5%; backdrop-filter: blur(20px); border-bottom: 1px solid rgba(27, 38, 59, 0.1); }

/* Floating Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}
.social-item {
    width: 60px;
    height: 60px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Stronger Normal Shadow */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.social-item.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); opacity: 0.95; }
.social-item.face { background: #1877f2; opacity: 0.95; }
.social-item.thre { background: #000000; border-color: rgba(255, 255, 255, 0.4); opacity: 1; }
.social-item.twit { background: #000000; border-color: rgba(255, 255, 255, 0.4); opacity: 1; }

.social-item:hover { 
    transform: translateX(12px) scale(1.18); 
    opacity: 1; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); 
}
.social-item.insta:hover { box-shadow: 0 15px 45px rgba(220, 39, 67, 0.7); }
.social-item.face:hover { box-shadow: 0 15px 45px rgba(24, 119, 242, 0.7); }

.social-svg { 
    width: 28px; height: 28px; fill: white; opacity: 1; transition: 0.3s; 
    /* Logo Drop Shadow for Realism */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}
.social-item:hover .social-svg { transform: scale(1.1) rotate(5deg); filter: drop-shadow(2px 6px 10px rgba(0,0,0,0.5)); }

/* Ecosystem Dropdown Styles */
.dropdown { position: relative; }
.dropdown-content {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px);
    width: 600px; padding: 25px; border-radius: 30px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    opacity: 0; visibility: hidden;
    transition: 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    background: #08080c !important; /* Solid dark for visibility */
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1) !important; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
    z-index: 10002;
    color: #ffffff !important;
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown-content a {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    text-decoration: none; border-radius: 18px; transition: 0.3s; border: 1px solid transparent;
    color: #ffffff !important; /* Force high-contrast on dark glass dropdown */
}
.dropdown-content a:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--glass-border); transform: scale(1.02); }

.drop-icon { font-size: 1.5rem; background: rgba(255, 183, 3, 0.1); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; transition: 0.3s; }
.dropdown-content a:hover .drop-icon { background: var(--grad-main); transform: rotate(10deg); color: #000; }

.drop-text h6 { font-size: 0.8rem; letter-spacing: 2px; color: var(--accent-primary); margin-bottom: 2px; font-family: 'Syncopate', sans-serif; }
.drop-text p { font-size: 0.7rem; opacity: 0.6; font-weight: 500; }

@media (max-width: 1024px) {
    .dropdown-content { width: 450px; }
}
@media (max-width: 768px) {
    .dropdown { position: static; width: 100%; text-align: center; }
    .dropdown-content {
        position: static;
        display: none !important;
        width: 100% !important;
        box-shadow: none !important;
        background: rgba(255,255,255,0.03) !important;
        border: 1px solid var(--glass-border) !important;
        padding: 15px !important;
        margin-top: 15px;
        transform: none !important;
        border-radius: 15px !important;
    }
    /* Require explicit tap/click to reveal the sub-menu on mobile (prevent swipe triggers) */
    .dropdown:active .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .dropdown-content a { padding: 10px !important; border: none !important; background: transparent !important; }
    .dropdown-content a .drop-icon { display: none; } /* Hide icons to save space */
    .dropdown-content a:hover { transform: none !important; background: rgba(255,255,255,0.1) !important; }
    
    /* FIX MOBILE BLACK TEXT ON BLACK BACKGROUND ISSUE */
    #main-nav.scrolled .nav-links > li > a,
    #main-nav.scrolled .drop-btn {
        color: #ffffff !important;
    }
}
/* Tactical Intel Blog Styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border-radius: 30px;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(27, 38, 59, 0.15);
}

.blog-img-box {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-img-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.blog-card:hover .blog-img-box img {
    transform: scale(1.1);
}

.blog-tag {
    position: absolute; top: 20px; left: 20px;
    background: var(--accent-primary);
    color: #000; font-size: 0.7rem; font-weight: 900;
    padding: 6px 15px; border-radius: 50px;
    letter-spacing: 1px;
}

.blog-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

.blog-date {
    font-size: 0.75rem;
    opacity: 0.4;
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-body h3 {
    font-family: var(--font-royal);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-body p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.read-more {
    margin-top: auto;
    text-decoration: none;
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.read-more:hover {
    transform: translateX(10px);
    text-shadow: 0 0 15px var(--accent-primary);
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(25px);
    z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay.hidden { display: none; }
.modal-content { max-width: 480px; width: 100%; padding: 60px; text-align: center; border-radius: 40px; box-shadow: 0 30px 100px rgba(0,0,0,0.1); background: var(--bg-surface); }
.hidden { display: none; }
.warning-icon { font-size: 4.5rem; margin-bottom: 25px; }

/* Form Dynamic States */
.form-success { border-color: #4CAF50 !important; color: #4CAF50 !important; transition: 0.5s; }
.form-error { border-color: #f44336 !important; animation: shake 0.5s; transition: 0.5s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.success-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); display: flex; align-items: center; justify-content: center;
    flex-direction: column; z-index: 10; border-radius: inherit; border: 1px solid var(--accent-primary);
    animation: fadeIn 0.4s ease;
}
.success-overlay .icon { font-size: 3rem; color: var(--accent-primary); margin-bottom: 20px; }
.success-overlay h3 { color: var(--text-primary); margin-bottom: 10px; }

@media (max-width: 1024px) {
    .ai-grid { grid-template-columns: 1fr; }
}

/* Feedback & Testimonials */
.feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.feedback-card { padding: 40px; border-radius: 30px; }
.f-user { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.f-user img { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--accent-primary); box-shadow: 0 0 15px rgba(255,183,3,0.3); }
.f-user h4 { font-size: 1.1rem; color: var(--accent-primary); margin-bottom: 4px; font-weight: 800; }
.f-user span { font-size: 0.65rem; color: var(--accent-secondary); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.feedback-card p { font-size: 1rem; line-height: 1.7; font-style: italic; opacity: 0.8; color: var(--text-secondary); }

/* Collaboration Section */
.collab-box { display: flex; align-items: stretch; padding: 0 !important; overflow: hidden; border-radius: 40px; background: var(--bg-dark); border: 1px solid var(--glass-border); }
.collab-content { flex: 1.2; padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.collab-image { flex: 0.8; position: relative; min-height: 500px; }
.collab-image img { width: 100%; height: 100%; object-fit: cover; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; margin-top: 60px; }
.contact-info { display: flex; flex-direction: column; justify-content: center; }
.info-item { display: flex; gap: 20px; margin-bottom: 35px; background: var(--bg-dark); padding: 30px; border-radius: 25px; border: 1px solid var(--glass-border); transition: 0.3s; }
.info-item:hover { border-color: var(--accent-primary); background: rgba(0, 0, 0, 0.04); }
.info-icon { font-size: 2.2rem; filter: sepia(1) saturate(5) hue-rotate(-50deg); }
.info-item h5 { font-size: 0.75rem; letter-spacing: 3px; color: var(--accent-primary); margin-bottom: 8px; font-weight: 900; }
.info-item p { font-size: 1rem; font-weight: 600; color: var(--text-primary); opacity: 0.9; }
.contact-form-card { padding: 60px; border-radius: 40px; background: var(--bg-dark); border: 1px solid var(--glass-border); }

/* Premium Footer */
.footer-premium { background: #08080c; border-top: 1px solid rgba(255,255,255,0.05); padding: 120px 0 60px; position: relative; margin-top: 100px; color: white; }
.footer-premium .logo-text { color: white !important; }
.footer-premium p { color: var(--accent-secondary); }
.footer-premium::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad-main); opacity: 0.2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 80px; padding-bottom: 100px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.footer-brand .logo { margin-bottom: 35px; }
.footer-links h4, .footer-newsletter h4 { font-size: 1.2rem; color: #ffffff; letter-spacing: 4px; font-weight: 900; margin-bottom: 35px; text-transform: uppercase; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 15px; }
.footer-links ul li a { color: var(--text-secondary); text-decoration: none; transition: 0.3s; font-size: 0.95rem; font-weight: 600; display: inline-block; }
.footer-links ul li a:hover { color: var(--accent-primary); transform: translateX(8px); }

.footer-newsletter p { font-size: 0.85rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 25px; }
.newsletter-form { display: flex; gap: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); padding: 8px; border-radius: 16px; transition: 0.3s; }
.newsletter-form:focus-within { border-color: var(--accent-primary); background: rgba(255, 255, 255, 0.08); }
.newsletter-form input { background: transparent; border: none; padding: 12px 20px; color: var(--text-primary); flex: 1; font-weight: 600; outline: none; font-size: 0.9rem; }
.newsletter-form button { background: var(--grad-main); border: none; width: 50px; height: 50px; border-radius: 12px; font-weight: 900; cursor: pointer; transition: 0.4s; font-size: 1.2rem; }
.newsletter-form button:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 30px rgba(255, 183, 3, 0.5); }

.footer-bottom { padding-top: 50px; text-align: center; }
.footer-bottom p { font-size: 0.7rem; letter-spacing: 3px; font-weight: 900; opacity: 1; text-transform: uppercase; color: var(--accent-secondary); }

@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
    .contact-grid { gap: 60px; }
}
@media (max-width: 991px) {
    .contact-grid { grid-template-columns: 1fr; }
    .info-item { text-align: left; }
    .collab-box { flex-direction: column; }
    .collab-image { min-height: 400px; width: 100%; }
}
@media (max-width: 768px) {
    .feedback-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-premium { padding: 80px 0 40px; }
}
/* AI Transformer Tool Styles */
.upload-zone {
    border: 2px dashed rgba(230, 57, 70, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.02);
}
.upload-zone:hover {
    border-color: var(--accent-secondary);
    background: rgba(230, 57, 70, 0.03);
}
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: white;
    box-shadow: 0 0 15px white, 0 0 30px var(--accent-secondary);
    animation: scanMove 3s infinite linear;
    z-index: 5;
}
@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}
.full-width { width: 100%; }
.hidden { display: none !important; }

@media (max-width: 991px) {
    #online-training .split-hero { flex-direction: column; }
    .comparison-container { grid-template-columns: 1fr !important; }
}
.param-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 2px;
    padding: 8px 15px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 5px;
    background: rgba(230, 57, 70, 0.05);
}
.op-stat {
    border-left: 2px solid var(--accent-secondary);
    padding-left: 15px;
    transition: 0.3s;
}
.op-stat:hover {
    transform: translateX(5px);
}
.index-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.index-item:last-child {
    border-right: none;
}

/* Scroll Animations */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tactical Intel (Blog) Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    border-radius: 30px;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
    background: var(--bg-surface);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.blog-img-box {
    position: relative;
    height: 250px;
    width: 100%;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-primary);
    color: #000;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.blog-body {
    padding: 30px;
}

.blog-date {
    font-size: 0.65rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.blog-body h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-family: var(--font-royal);
    line-height: 1.2;
}

.blog-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.read-more {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

.read-more:hover {
    color: #fff;
    margin-left: 10px;
}

@media (max-width: 991px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}
/* Dashboard & Enrollment System Styles */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg-deep); position: relative; overflow: hidden; }
.login-card { max-width: 600px; width: 100%; padding: 50px; position: relative; z-index: 10; border-radius: 40px; }
.login-header { text-align: center; margin-bottom: 40px; }
.agreement-description { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 12px; margin: 25px 0; font-size: 0.8rem; max-height: 120px; overflow-y: auto; color: rgba(255, 255, 255, 0.6); line-height: 1.6; text-align: left; }
.checkbox-container { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 30px; cursor: pointer; font-size: 0.85rem; font-weight: 600; text-align: left; color: white !important; }
.checkbox-container span { color: white !important; }
.dual-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; width: 100%; }
.btn-trial { background: var(--grad-main); color: #000 !important; border: none; padding: 18px; font-weight: 800; cursor: pointer; border-radius: 10px; box-shadow: 0 10px 30px rgba(255, 183, 3, 0.2); }
.btn-plans { border: 2px solid var(--accent-secondary); color: var(--accent-secondary) !important; background: transparent; padding: 18px; font-weight: 800; cursor: pointer; border-radius: 10px; transition: 0.3s; }
.btn-plans:hover { background: var(--accent-secondary); color: white !important; }

.plans-container { padding: 120px 20px 60px; max-width: 1200px; margin: 0 auto; }
.plans-header { text-align: center; margin-bottom: 60px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.plan-card { padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.4s ease; cursor: pointer; border: 2px solid transparent; background: var(--bg-dark); }
.plan-card:hover { transform: translateY(-10px); border-color: var(--accent-primary); box-shadow: 0 30px 60px rgba(255, 183, 3, 0.15); }
.plan-card.featured { border-color: var(--accent-secondary); background: rgba(230, 57, 70, 0.03); }
.plan-price { font-size: 3rem; font-weight: 900; margin: 20px 0; font-family: var(--font-royal); color: white !important; }
.plan-price span { font-size: 1rem; opacity: 0.5; }
.plan-features { list-style: none; margin: 30px 0; padding: 0; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); }
.plan-features li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; color: rgba(255, 255, 255, 0.6) !important; }

.payment-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; }
.payment-content { max-width: 500px; width: 100%; text-align: center; padding: 50px; background: var(--bg-dark); position: relative; }
.upi-scanner { width: 220px; height: 220px; background: white; margin: 30px auto; border-radius: 24px; padding: 20px; position: relative; overflow: hidden; box-shadow: 0 0 50px rgba(255,255,255,0.1); }
.scan-anim { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent-primary); box-shadow: 0 0 15px var(--accent-primary); animation: scan 2s infinite alternate ease-in-out; }
@keyframes scan { from { top: 0; } to { top: 100%; } }

.ai-analyzer-box { margin-top: 30px; padding: 25px; background: rgba(0,0,0,0.4); border: 1px dashed var(--accent-secondary); border-radius: 16px; display: none; }
.ai-status-text { color: var(--accent-secondary) !important; font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 15px; text-transform: uppercase; }
.ai-progress-bar { height: 6px; background: rgba(255,255,255,0.05); width: 100%; border-radius: 10px; overflow: hidden; }
.ai-progress-fill { height: 100%; background: var(--accent-secondary); width: 0%; transition: width 0.1s linear; box-shadow: 0 0 15px var(--accent-secondary); }

.dashboard-container { padding: 140px 5% 60px; max-width: 1400px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { padding: 35px; text-align: center; background: var(--bg-dark); border: 1px solid var(--glass-border); }
.stat-card h6 { font-size: 0.6rem; letter-spacing: 3px; opacity: 0.4; margin-bottom: 15px; font-weight: 800; color: var(--accent-primary) !important; }
.stat-card .value { font-size: 2.5rem; font-weight: 900; color: white !important; font-family: var(--font-royal); }
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.session-log { padding: 45px; background: var(--bg-dark); border: 1px solid var(--glass-border); }
.log-item { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.log-info h5 { font-size: 1.1rem; margin-bottom: 6px; color: white !important; letter-spacing: 1px; }
.log-info p { font-size: 0.8rem; opacity: 0.5; color: rgba(255,255,255,0.7) !important; }
.status-badge { padding: 6px 16px; border-radius: 25px; font-size: 0.7rem; font-weight: 900; letter-spacing: 1px; }
.status-active { background: rgba(0, 255, 136, 0.1); color: #00ff88 !important; border: 1px solid rgba(0, 255, 136, 0.2); }
.status-pending { background: rgba(255, 183, 3, 0.1); color: var(--accent-primary) !important; border: 1px solid rgba(255, 183, 3, 0.2); }
.profile-side { display: flex; flex-direction: column; gap: 30px; }
.profile-card { padding: 50px; text-align: center; background: var(--bg-dark); border: 1px solid var(--glass-border); }
.avatar { width: 100px; height: 100px; background: rgba(255, 183, 3, 0.05); border: 2px solid var(--accent-primary); border-radius: 50%; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 900; color: var(--accent-primary) !important; box-shadow: 0 0 30px rgba(255, 183, 3, 0.1); }
.tier-badge { display: inline-block; padding: 7px 20px; background: var(--accent-secondary); color: white !important; border-radius: 50px; font-size: 0.7rem; font-weight: 900; letter-spacing: 3px; font-family: var(--font-royal); margin-top: 15px; }

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .main-grid { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
}

/* --- New Goal Selector Premium Styles --- */
.goal-btn {
    display: block;
    padding: 18px;
    text-align: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hidden-radio {
    display: none;
}

.hidden-radio:checked + label.goal-btn {
    background: var(--grad-main);
    color: #000 !important;
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.3);
    transform: scale(1.02);
}

#goal-loss:checked + label.goal-btn {
    box-shadow: 0 0 40px rgba(251, 133, 0, 0.2);
}

#goal-gain:checked + label.goal-btn {
    background: linear-gradient(135deg, #fb8500 0%, #e63946 100%);
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.2);
}

.goal-btn:hover:not(:checked) {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

/* --- Admin Dashboard Layout --- */
/* --- Admin Dashboard Robust Grid-Architecture --- */
.admin-body {
    display: grid !important;
    grid-template-columns: 350px 1fr !important; /* Fixed width for Sidebar */
    min-height: 100vh !important;
    background: var(--bg-deep) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.sidebar {
    background: var(--bg-dark) !important;
    border-right: 1px solid var(--glass-border) !important;
    padding: 60px 20px;
    height: 100vh !important;
    position: sticky !important;
    top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    z-index: 1000 !important;
    overflow-x: hidden;
}

.admin-main {
    padding: 80px !important;
    background: var(--bg-deep) !important;
    min-width: 0; /* Prevent overflow */
}

.dashboard-link {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 22px 30px !important;
    border-radius: 12px !important;
    color: rgba(255,255,255,0.4) !important;
    font-weight: 800 !important;
    transition: all 0.4s ease !important;
    margin-bottom: 12px !important;
    border: 1px solid transparent !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
}

.dashboard-link.active {
    background: rgba(255, 183, 3, 0.05) !important;
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 10px 30px rgba(255, 183, 3, 0.1) !important;
}

.dashboard-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #fff !important;
    transform: translateX(10px);
}

.table-glass {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
th { background: rgba(255,255,255,0.02); text-align: left; padding: 25px; font-size: 0.7rem; color: var(--text-secondary); letter-spacing: 2px; }
td { padding: 25px; border-bottom: 1px solid rgba(255,255,255,0.03); color: rgba(255,255,255,0.8); font-size: 0.9rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(20px);
    z-index: 20000; display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }

@media (max-width: 1024px) {
    .admin-body { grid-template-columns: 80px 1fr !important; }
    .sidebar { padding: 40px 10px !important; width: 80px !important; align-items: center !important; }
    .sidebar .logo-content, .sidebar .tagline, .sidebar p, .sidebar-links span:not(.icon) { display: none !important; }
    .admin-main { padding: 40px !important; }
}

/* --- ELITE SYSTEM RESPONSIVITY (V5.0) --- */
@media (max-width: 1250px) {
    .container { width: 92%; }
    .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
}

@media (max-width: 991px) {
    .split-hero { flex-direction: column !important; text-align: center; }
    .hero-left { width: 100% !important; padding: 120px 8% 60px !important; }
    .hero-right { width: 100% !important; height: 350px !important; order: -1; }
    .hero-btns { justify-content: center; }

    /* Specifically fix Elite Nutrition Matrix tool height crushing */
    #online-training .hero-right { height: auto !important; order: 0 !important; }
    #online-training .hero-left { padding: 40px 8% 40px !important; }
    
    .about-grid, .contact-grid-modern, .feedback-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .collab-box { flex-direction: column !important; }
    .collab-image { min-height: 380px; width: 100%; }
    .collab-content { padding: 50px 30px !important; }

    .footer-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .newsletter-form { max-width: 100%; margin: 0 auto; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem !important; }
    h2 { font-size: 2rem !important; }
    .social-sidebar { display: none; } /* Mobile users interact differently */
    
    .ai-card { padding: 30px; border-radius: 25px; }
    .input-row { grid-template-columns: 1fr !important; }
    
    /* Navigation Stack */
    #main-nav { padding: 15px 5%; background: rgba(8, 8, 12, 0.98); }
    .logo-text { font-size: 1.1rem; }
}

/* Fluid Media Fixes */
img, video { max-width: 100%; height: auto; }
.v3-card { height: auto !important; min-height: 300px; }

/* Tactical Scrolling */
body { overflow-x: hidden !important; }
.table-box { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

/* ULTIMATE MOBILE FLUIDITY GRID FIXES */
@media (max-width: 991px) {
    .hub-listing { grid-template-columns: repeat(2, 1fr) !important; gap: 30px !important;}
    .nutrient-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Force stack complex grids on tablet and large phones */
    .ai-grid, .pillar-index, .asymmetric-grid, .live-ops {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Move the generic inline override up to 991px to catch all side-by-side elements */
    div[style*="grid-template-columns"],
    div[style*="display: flex"],
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .live-ops, .pillar-index, .hub-listing { grid-template-columns: 1fr !important; gap: 20px !important; }
    .nutrient-grid { grid-template-columns: 1fr !important; }
    .contact-grid-modern .input-row-modern { grid-template-columns: 1fr !important; }
    
    .hero-content .live-ops { display: grid; grid-template-columns: 1fr; gap: 15px; text-align: center; }
    .live-ops .op-stat { border-left: none; border-top: 2px solid var(--accent-primary); padding-left: 0; padding-top: 15px; }
    
    .v3-card .v3-content h3 { font-size: 1.8rem; }
    
    .glass-card { padding: 25px !important; }

    /* Fix hero button sizes on mobile */
    .hero-btns a.btn { width: 100%; display: block; margin-bottom: 15px; }
    
    /* Blog Grid Fix */
    .blog-grid { grid-template-columns: 1fr !important; }

    /* Generic Inline Grid & Flex Collapse for Sub-Pages & Blogs */
    div[style*="grid-template-columns"],
    div[style*="display: flex"],
    div[style*="display: grid"],
    .section-split, .indian-index, .meal-plan-grid,
    .protocol-indices, .feature-grid-v3, .flex, .row,
    .blog-grid, .supp-category div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 20px !important;
    }
    
    .supp-category img {
        height: 250px !important;
        object-fit: contain !important;
    }
    
    .hero-left, .hero-right {
        flex: none !important;
        width: 100% !important;
        padding-left: 8% !important;
        padding-right: 8% !important;
    }
    
    .split-hero {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.3rem !important; }
    h2 { font-size: 1.8rem !important; }
    .hero-right { height: 280px !important; }
    .floating-stat-card { padding: 20px 30px; left: 10px; bottom: 10px; }
    .timeline-grid { grid-template-columns: 1fr !important; }
    .btn { padding: 15px 30px; font-size: 0.75rem; }
}

/* AUTH PERSISTENCE OVERRIDES */
.cyber-v3[data-auth="authenticated"] .nav-links a[href*="login.html"] {
    display: none !important;
}
.cyber-v3[data-auth="authenticated"] .nav-links .btn-primary {
    background: var(--accent-primary) !important;
    color: #000 !important;
}
