/* ==========================================================================
   JRA Corporate & Personal Design System - Midnight Navy & Luxury Gold (v4.2)
   ========================================================================== */

:root {
    /* Palette: Luxury Midnight Navy */
    --bg-main: #060a14;
    --bg-surface: #0c1424;
    --bg-surface-elevated: #121c32;
    --bg-surface-glass: rgba(12, 20, 36, 0.92);
    --bg-surface-card: #0a1120;
    
    /* Luxury Gold Gradients & Accents */
    --gold-300: #fde68a;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(251, 191, 36, 0.05) 100%);
    --gold-glow: rgba(245, 158, 11, 0.28);
    
    /* Royal Sapphire Accent */
    --sapphire: #2563eb;
    --sapphire-hover: #1d4ed8;
    --sapphire-glow: rgba(37, 99, 235, 0.3);
    
    /* Neutral & Text */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #8492a6;
    
    /* Borders */
    --border-subtle: rgba(245, 158, 11, 0.15);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(245, 158, 11, 0.38);
    --border-gold-strong: rgba(245, 158, 11, 0.65);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Lighting */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.32;
    animation: ambientFloat 14s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.08) 70%, transparent 100%);
    top: -200px;
    right: -150px;
}

.bg-glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(6, 10, 20, 0.05) 70%, transparent 100%);
    bottom: 10%;
    left: -150px;
    animation-delay: -6s;
}

.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Typography Helpers */
.gradient-text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   Header & Navigation (Clean, Uncluttered Luxury)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(6, 10, 20, 0.96);
    border-bottom-color: var(--border-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-monogram {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--gold-glow);
    flex-shrink: 0;
    transition: var(--transition);
}

.brand:hover .brand-monogram {
    transform: rotate(-6deg) scale(1.05);
}

.monogram-txt {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: #060a14;
    letter-spacing: -0.05em;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.brand-role {
    font-size: 0.76rem;
    color: var(--gold-400);
    font-weight: 600;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link i {
    font-size: 0.85rem;
    color: var(--gold-400);
    opacity: 0.85;
}

.nav-link:hover {
    color: var(--gold-300);
    background: rgba(245, 158, 11, 0.08);
}

.nav-link.active {
    color: #060a14;
    background: var(--gold-gradient);
    font-weight: 700;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.nav-link.active i {
    color: #060a14;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover, .mobile-toggle:focus {
    background: rgba(245, 158, 11, 0.18);
    color: var(--gold-300);
    transform: scale(1.04);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(25deg);
    transition: 0.7s;
    opacity: 0;
}

.btn:hover::after {
    left: 100%;
    opacity: 1;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #060a14;
    box-shadow: 0 4px 20px var(--gold-glow);
    font-weight: 800;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
    color: #000;
}

.btn-secondary {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-300);
    border-color: var(--border-gold);
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--gold-400);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-gold);
    color: var(--gold-300);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Sections, Headers & Badges
   ========================================================================== */
.section {
    padding: 6.5rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.8rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-300);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.section-title {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ==========================================================================
   Hero Section (Executive Royal Navy & Gold, Strictly NO Photo)
   ========================================================================== */
.hero {
    padding-top: 10.5rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-300);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 12px var(--gold-400);
    animation: pulseDot 2s infinite;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.8rem;
    max-width: 1020px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 890px;
    line-height: 2;
    margin-bottom: 2.8rem;
}

.hero-desc strong {
    color: var(--gold-300);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 4.5rem;
}

/* Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    width: 100%;
}

.stat-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(245, 158, 11, 0.25);
}

.stat-card:hover {
    border-color: var(--border-gold-strong);
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
}

.stat-icon-glow {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.stat-card:hover .stat-icon-glow {
    background: var(--gold-gradient);
    color: #060a14;
    transform: scale(1.1);
}

.stat-number {
    font-family: 'Plus Jakarta Sans', 'Vazirmatn', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   About Grid & Capabilities
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.about-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(245, 158, 11, 0.2);
}

.about-card:hover {
    border-color: var(--border-gold-strong);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.22);
}

.about-card.primary {
    border-color: var(--border-gold);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(10, 17, 32, 0.95) 100%);
}

.about-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.6rem;
    transition: var(--transition);
}

.about-card:hover .about-icon {
    background: var(--gold-gradient);
    color: #060a14;
    transform: scale(1.08) rotate(-4deg);
}

.about-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-card p {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ==========================================================================
   Product Catalog Grid (products.html)
   ========================================================================== */
.products-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.prod-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(245, 158, 11, 0.2);
}

.prod-card:hover {
    border-color: var(--border-gold-strong);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.prod-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.prod-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-300);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
}

.prod-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.prod-card:hover .prod-icon {
    background: var(--gold-gradient);
    color: #060a14;
    transform: scale(1.1);
}

.prod-title {
    font-size: 1.32rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: #ffffff;
    line-height: 1.45;
}

.prod-en {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--gold-400);
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: block;
}

.prod-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.6rem;
    flex-grow: 1;
}

.prod-features {
    list-style: none;
    margin-bottom: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prod-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.prod-features li i {
    color: var(--gold-400);
    font-size: 0.85rem;
}

.prod-cta-btn {
    width: 100%;
}

/* ==========================================================================
   Interactive Demo Request Modal (Dialog)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.2);
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-300);
    border-color: var(--border-gold);
}

.modal-head {
    margin-bottom: 2rem;
}

.modal-head h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal-head p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modal-form .form-group {
    margin-bottom: 1.35rem;
}

.modal-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--gold-500);
    background: rgba(245, 158, 11, 0.04);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Articles & Newsletter (articles.html)
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.article-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(245, 158, 11, 0.2);
}

.article-card:hover {
    border-color: var(--border-gold-strong);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.22);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gold-400);
    margin-bottom: 1.2rem;
}

.article-badge {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.article-title {
    font-size: 1.28rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
    color: #ffffff;
    line-height: 1.55;
}

.article-excerpt {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.6rem;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(12, 20, 36, 0.95) 0%, rgba(18, 28, 50, 0.95) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(245, 158, 11, 0.15);
    margin-top: 3rem;
}

.newsletter-box h3 {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.newsletter-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    gap: 0.8rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold-500);
}

/* ==========================================================================
   Contact Section & Form (index.html)
   ========================================================================== */
.contact-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 158, 11, 0.25);
}

.contact-info h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.item-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.item-val {
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.item-val:hover {
    color: var(--gold-300);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold-gradient);
    color: #060a14;
    border-color: transparent;
    transform: translateY(-3px);
}

.contact-form h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.contact-form .form-group {
    margin-bottom: 1.4rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    background: rgba(245, 158, 11, 0.04);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.field-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

.form-alert {
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    margin-top: 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}

.form-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #04070e;
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .brand-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    display: block;
}

.footer-brand .brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.6rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--gold-300);
}

.footer-bottom {
    padding-top: 1.8rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Animations & Motion Effects (Scroll Reveal & Keyframes)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes ambientFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 40px) scale(1.08);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Entrance Animations */
.hero-tag { animation: fadeInUp 0.7s ease backwards; }
.hero-title { animation: fadeInUp 0.8s 0.12s ease backwards; }
.hero-desc { animation: fadeInUp 0.8s 0.22s ease backwards; }
.hero-actions { animation: fadeInUp 0.8s 0.32s ease backwards; }
.hero-stats { animation: fadeInUp 0.8s 0.42s ease backwards; }

/* ==========================================================================
   Mobile Responsive Styles (Preserving Luxury Navy & Gold Identity)
   ========================================================================== */
@media (max-width: 1024px) {
    .products-catalog-grid,
    .articles-grid,
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 68px;
    }

    .brand-monogram {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .monogram-txt {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-role {
        font-size: 0.7rem;
    }

    /* Mobile Hamburger Menu */
    .mobile-toggle {
        display: flex;
    }

    /* Mobile Drawer (Luxury Glassmorphism Dropdown) */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(8, 14, 28, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 2px solid var(--border-gold);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
        padding: 1.2rem 1.4rem 1.6rem;
        gap: 0.6rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        padding: 0.85rem 1.1rem;
        font-size: 0.95rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-link:active,
    .nav-link.active {
        background: var(--gold-gradient);
        color: #060a14;
        font-weight: 800;
        border-color: transparent;
    }

    .nav-link.active i {
        color: #060a14;
    }

    /* Mobile Hero */
    .hero {
        padding-top: 7.5rem;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.35;
    }

    .hero-desc {
        font-size: 1.02rem;
        line-height: 1.85;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.9rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Single Column Grids with Luxury Mobile Styling */
    .products-catalog-grid,
    .articles-grid,
    .about-grid,
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    /* Mobile Cards: Maintain Deep Navy Surface & Rich Golden Borders */
    .prod-card,
    .article-card,
    .about-card,
    .stat-card {
        padding: 1.8rem 1.4rem;
        border: 1px solid rgba(245, 158, 11, 0.28);
        border-top: 2px solid var(--gold-500);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 158, 11, 0.3);
    }

    .section-title {
        font-size: 1.85rem;
    }

    .contact-card {
        padding: 1.8rem 1.4rem;
        border: 1px solid rgba(245, 158, 11, 0.28);
        border-top: 2px solid var(--gold-500);
    }

    .newsletter-box {
        padding: 2.2rem 1.4rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.8rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ==========================================================================
   Header User Slot & Dropdown Menu
   ========================================================================== */
.header-user-slot {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 0.8rem;
}

.user-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-300);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.user-account-btn:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: var(--gold-400);
    color: #ffffff;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 1001;
}

.user-dropdown-menu.active {
    display: flex;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: right;
}

.user-dropdown-item:hover {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold-300);
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.2rem 0;
}

/* ==========================================================================
   Auth Modal & Anti-Bot Challenge Styles
   ========================================================================== */
.auth-modal-card {
    max-width: 400px;
    max-height: none;
    overflow: visible;
    padding: 1.2rem 1.2rem 1rem;
    border-radius: 22px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.auth-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #f6d27a, #c8892d);
    color: #1a1206;
    font-weight: 900;
}

.auth-brand strong,
.account-card-head strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
}

.auth-brand span,
.account-card-head small {
    display: block;
    color: var(--gold-300);
    font-size: 0.78rem;
}

.auth-modal-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.auth-modal-card #authModalSubtitle {
    margin: 0 0 0.85rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.7;
}

.auth-modal-card .form-group {
    margin-bottom: 0.65rem;
}

.auth-modal-card .challenge-box {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
}

.dev-otp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.7rem;
}

.dev-otp strong {
    font-size: 1.55rem;
    letter-spacing: 0.18em;
    color: #fff;
}

.account-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0.4rem 0.7rem;
}

.user-account-btn .auth-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.72rem;
}

.user-dropdown-menu {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    width: min(280px, calc(100vw - 2rem));
    max-height: calc(100dvh - 5.5rem);
    overflow: auto;
}

.challenge-box {
    background: rgba(245, 158, 11, 0.06);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
}

.challenge-box label {
    font-size: 0.85rem;
    color: var(--gold-300);
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.challenge-question {
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
    flex: 1;
    letter-spacing: 0.05em;
}

.challenge-row input {
    width: 90px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.6rem;
}

.otp-ident-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 1.4rem;
}

.otp-ident-display strong {
    color: var(--gold-300);
    font-weight: 800;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--gold-400);
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition);
}

.btn-link:hover {
    color: #ffffff;
}

.otp-code-input {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.4em;
    font-weight: 900;
    color: var(--gold-300) !important;
    padding: 0.8rem 0 !important;
}

.otp-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.otp-timer-row strong {
    color: var(--gold-400);
    font-family: monospace;
    font-size: 0.95rem;
}

/* ==========================================================================
   Sales Partner & Gamification Portal (partner.html)
   ========================================================================== */
.tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-bottom: 3.5rem;
}

.tier-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tier-card.bronze { border-top: 3px solid #cd7f32; }
.tier-card.silver { border-top: 3px solid #cbd5e1; }
.tier-card.gold { border-top: 3px solid #f59e0b; }
.tier-card.diamond { border-top: 3px solid #38bdf8; }

.tier-card.featured {
    border-color: var(--border-gold-strong);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(10, 17, 32, 0.95) 100%);
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.2);
}

.tier-badge {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.tier-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.tier-points {
    font-size: 0.88rem;
    color: var(--gold-400);
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-perks {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tier-perks li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.tier-perks li i {
    color: var(--gold-400);
    font-size: 0.8rem;
}

/* Partner Interactive State Panel */
.partner-panel-wrapper {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(245, 158, 11, 0.25);
    margin-bottom: 4rem;
}

.partner-guest-box,
.partner-activate-box {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.guest-box-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--gold-gradient);
    color: #060a14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px var(--gold-glow);
}

.partner-guest-box h3,
.partner-activate-box h3 {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.partner-guest-box p,
.partner-activate-box p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 2rem;
}

/* Dashboard Banner */
.partner-referral-banner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    background: linear-gradient(135deg, rgba(12, 20, 36, 0.95) 0%, rgba(18, 28, 50, 0.95) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    margin-bottom: 2.2rem;
}

.partner-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--gold-400);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.ref-code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.ref-code-display span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.code-val {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 2.2rem;
    color: var(--gold-300);
    letter-spacing: 0.08em;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    padding: 0.2rem 1.1rem;
    border-radius: var(--radius-md);
}

.ref-link-box {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.ref-link-box input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--gold-300);
    font-family: monospace;
    font-size: 0.92rem;
}

.banner-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.banner-left-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.partner-qr-view {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gamification Progress Bar Card */
.gamification-bar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    margin-bottom: 2.2rem;
}

.tier-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.tier-pill {
    background: var(--gold-gradient);
    color: #060a14;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-right: 0.6rem;
}

.score-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-300);
    margin-left: 0.4rem;
}

.score-txt {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--gold-glow);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Metric Counters */
.partner-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-bottom: 2.4rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem;
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

.metric-icon {
    font-size: 1.5rem;
    color: var(--gold-400);
    margin-bottom: 0.6rem;
}

.metric-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Table */
.referrals-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
}

.table-head-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.table-head-bar h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.table-responsive {
    overflow-x: auto;
}

.referrals-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.88rem;
}

.referrals-table th {
    padding: 0.9rem 1.1rem;
    color: var(--gold-400);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700;
}

.referrals-table td {
    padding: 0.9rem 1.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.stage-badge.lead { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid #3b82f6; }
.stage-badge.won { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid #10b981; }

@media (max-width: 1024px) {
    .tier-cards-grid,
    .partner-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-referral-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tier-cards-grid,
    .partner-metrics-grid {
        grid-template-columns: 1fr;
    }
    .partner-panel-wrapper {
        padding: 1.6rem 1.2rem;
    }
    .partner-referral-banner {
        padding: 1.6rem 1.2rem;
    }
    .ref-link-box {
        flex-direction: column;
    }
    .header-user-slot {
        margin-right: 0;
    }
}
