:root {
    /* Color Palette */
    --brand-primary: #FF6B00;
    --brand-primary-hover: #e65c00;
    --brand-yellow: #FFD600;
    
    --bg-dark: #0a0b0e;
    --bg-darker: #050608;
    --surface-dark: #12141a;
    --surface-dark-soft: #1a1d24;
    
    --bg-light: #f8fafc;
    --surface-light: #ffffff;
    --surface-light-soft: #f1f5f9;
    
    --text-dark-primary: #ffffff;
    --text-dark-secondary: #a1a1aa;
    --text-dark-tertiary: #71717a;
    
    --text-light-primary: #0f172a;
    --text-light-secondary: #475569;
    
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --glass-bg: rgba(18, 20, 26, 0.6);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FFD600 100%);
    --gradient-dark: linear-gradient(180deg, #12141a 0%, #0a0b0e 100%);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.theme-dark {
    background-color: var(--bg-dark);
    color: var(--text-dark-primary);
}

body.theme-light {
    background-color: var(--bg-light);
    color: var(--text-light-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1360px;
    margin-inline: auto;
    padding: 0 clamp(20px, 3vw, 40px);
    box-sizing: border-box;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
   
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn--icon {
    padding: 12px;
    border-radius: 50%;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--border-dark);
    color: var(--text-dark-primary);
}

.theme-light .btn--outline {
    border-color: var(--border-light);
    color: var(--text-light-primary);
}

.btn--outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(255, 107, 0, 0.05);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: inherit;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dark);
    background: var(--surface-dark-soft);
    color: var(--text-dark-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-light .form-control {
    border: 1px solid var(--border-light);
    background: var(--surface-light);
    color: var(--text-light-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   PUBLIC PLATFORM (Dark Theme)
   ========================================================================== */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.site-header .container,
.site-header__inner {
    width: 100%;
    max-width: 1680px;
    margin-inline: auto;
    padding: 0 clamp(20px, 3.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    box-sizing: border-box;
}

.site-header__brand,
.site-header__inner > a:first-child {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    text-decoration: none;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.site-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.site-nav a {
    color: var(--text-dark-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-dark-primary);
}

.site-actions {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

/* Hero Section */
.hero {
    padding: 160px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.hero__title {
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 980px;
    margin-inline: auto;
}

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

.hero__subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    color: var(--text-dark-secondary);
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 70px;
}

.hero-showcase {
    position: relative;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
    box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}

.hero-showcase__img {
    border-radius: var(--radius-lg);
    width: 100%;
}

.floating-element {
    position: absolute;
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fl-1 { top: 12%; left: -3%; animation-delay: 0s; }
.fl-2 { bottom: 18%; right: -3%; animation-delay: -2s; }
.fl-3 { top: 52%; left: 8%; animation-delay: -4s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section--light {
    background: var(--bg-light);
    color: var(--text-light-primary);
}

.section--dark-elevated {
    background: var(--surface-dark);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: inherit;
    opacity: 0.75;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 0, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light-secondary);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface-dark-soft);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pricing-card--popular {
    background: var(--surface-dark);
    border: 2px solid var(--brand-primary);
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.5rem;
    color: #FF6B00;
    text-align: center;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.pricing-price {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 6px;
    margin: 0 auto 18px auto;
    width: 100%;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pricing-price .pricing-price__amount {
    display: inline-block;
    font-size: clamp(2.2rem, 2.8vw, 2.85rem);
    line-height: 1.15;
    font-family: var(--font-display);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pricing-price span,
.pricing-price .pricing-price__interval {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(255, 107, 0, 0.14);
    border: 1px solid rgba(255, 107, 0, 0.35);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.pricing-desc {
    color: var(--text-dark-secondary);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-dark);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    max-width: 100%;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-dark-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
}

.pricing-features li span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pricing-features i {
    color: var(--brand-primary);
    margin-top: 4px;
}

/* Directory Grid */
.directory-filters {
    display: flex;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 48px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.dir-card {
    background: var(--surface-dark-soft);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.dir-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.dir-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    border: 2px solid var(--border-dark);
}

.dir-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.dir-card .industry {
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dir-card .location {
    color: var(--text-dark-tertiary);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-dark);
}

.empty-state__icon {
    font-size: 3rem;
    color: var(--text-dark-tertiary);
    margin-bottom: 16px;
}

.empty-state__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.empty-state__desc {
    color: var(--text-dark-secondary);
}

/* Footer */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-dark);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: var(--text-dark-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-links a {
    display: block;
    color: var(--text-dark-secondary);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--text-dark-primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-dark-tertiary);
    border-top: 1px solid var(--border-dark);
    padding-top: 32px;
}


/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.auth-page {
    display: flex;
    min-height: 100vh;
}

.auth-visual {
    flex: 1;
    background: var(--gradient-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, rgba(0,0,0,0) 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-visual__content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.auth-visual__content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.auth-visual__content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
}

.auth-panel {
    width: 600px;
    background: var(--bg-dark);
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 48px;
}

.auth-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-dark-secondary);
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-dark-secondary);
}

.auth-footer a {
    color: var(--brand-primary);
    font-weight: 600;
}


/* ==========================================================================
   DASHBOARD (Admin & Superadmin - Light Theme Focus)
   ========================================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dash-sidebar {
    width: 280px;
    background: var(--surface-light);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.dash-sidebar__header {
    min-height: 80px;
    height: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    box-sizing: border-box;
    background: var(--surface-light);
}

.dash-sidebar__header a {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.dash-sidebar__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.dash-sidebar__logo .platform-brand-text {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    word-break: break-word;
    overflow-wrap: break-word;
    color: inherit;
}

.platform-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
}

.platform-brand-text {
    display: inline-block;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.dash-nav {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.dash-nav__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light-secondary);
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.dash-nav__label:first-child {
    margin-top: 0;
}

.dash-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-light-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.dash-nav__item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.dash-nav__item:hover {
    background: var(--surface-light-soft);
    color: var(--text-light-primary);
}

.dash-nav__item.active {
    background: rgba(255, 107, 0, 0.1);
    color: var(--brand-primary);
}

/* ==========================================================================
   SIDEBAR TOGGLE, COLLAPSIBLE ACCORDION & COMPACT RAIL
   ========================================================================== */
.dash-sidebar__brand {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    text-decoration: none;
}

.dash-sidebar__close-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md, 8px);
    width: 34px;
    height: 34px;
    cursor: pointer;
    color: var(--text-light-secondary);
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
}
.dash-sidebar__close-btn:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--surface-light-soft);
}

.dash-sidebar__toggle-btn {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    width: 34px;
    height: 34px;
    cursor: pointer;
    color: var(--text-light-secondary, #64748b);
    font-size: 0.9rem;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    flex-shrink: 0;
}
.dash-sidebar__toggle-btn:hover {
    color: var(--brand-primary, #6366f1);
    border-color: var(--brand-primary, #6366f1);
    background: var(--surface-light-soft, #f8fafc);
}
@media (max-width: 992px) {
    .dash-sidebar__toggle-btn {
        display: none !important;
    }
}

/* Accordion Nav Groups & Submenus */
.dash-nav__group {
    margin-bottom: 4px;
}

.dash-nav__parent {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-light-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.dash-nav__parent i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-nav__parent:hover {
    background: var(--surface-light-soft);
    color: var(--text-light-primary);
}

.dash-nav__parent.active-parent {
    color: var(--brand-primary);
    font-weight: 600;
}

.dash-nav__parent.active-parent i:first-child {
    color: var(--brand-primary);
}

.dash-nav__text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-nav__arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    color: #94a3b8;
    flex-shrink: 0;
}

.dash-nav__parent[aria-expanded="true"] .dash-nav__arrow {
    transform: rotate(90deg);
    color: var(--brand-primary);
}

.dash-nav__submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    padding-left: 12px;
    margin-left: 14px;
    border-left: 2px solid var(--border-light);
}

.dash-nav__submenu.open {
    max-height: 900px;
    opacity: 1;
    margin-top: 4px;
    margin-bottom: 6px;
}

.dash-nav__subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    color: var(--text-light-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-nav__subitem i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.dash-nav__subitem:hover {
    background: var(--surface-light-soft);
    color: var(--text-light-primary);
}

.dash-nav__subitem:hover i {
    color: var(--text-light-primary);
}

.dash-nav__subitem.active {
    background: rgba(255, 107, 0, 0.1);
    color: var(--brand-primary);
    font-weight: 600;
}

.dash-nav__subitem.active i {
    color: var(--brand-primary);
}

/* Nested Submenu (Level 2) */
.dash-nav__nested-group {
    margin: 2px 0;
}

.dash-nav__nested-parent {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--text-light-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.dash-nav__nested-parent:hover {
    background: var(--surface-light-soft);
    color: var(--text-light-primary);
}

.dash-nav__nested-parent.active-parent {
    color: var(--brand-primary);
    font-weight: 600;
}

.dash-nav__nested-submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    padding-left: 10px;
    margin-left: 12px;
    border-left: 1.5px solid var(--border-light);
}

.dash-nav__nested-submenu.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 2px;
    margin-bottom: 4px;
}

/* Topbar Toggle Button */
.dash-topbar__sidebar-toggle,
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md, 8px);
    background: var(--surface-light, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    color: var(--text-light-primary, #0f172a);
    cursor: pointer;
    font-size: 1.1rem;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.dash-topbar__sidebar-toggle:hover,
.mobile-menu-toggle:hover {
    background: var(--surface-light-soft, #f8fafc);
    color: var(--brand-primary, #ff6b00);
    border-color: var(--brand-primary, #ff6b00);
}

/* Desktop Sidebar Smooth Transition & Compact Rail */
.dash-sidebar {
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-layout.sidebar-collapsed .dash-sidebar {
    width: 76px !important;
    min-width: 76px !important;
}

.dashboard-layout.sidebar-collapsed .platform-brand-text,
.dashboard-layout.sidebar-collapsed .dash-nav__text,
.dashboard-layout.sidebar-collapsed .dash-nav__arrow {
    display: none !important;
}

.dashboard-layout.sidebar-collapsed .dash-sidebar__header {
    padding: 16px 10px;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.dashboard-layout.sidebar-collapsed .dash-sidebar__toggle-btn {
    margin-left: 0;
}

.dashboard-layout.sidebar-collapsed .dash-sidebar__brand {
    justify-content: center;
}

.dashboard-layout.sidebar-collapsed .dash-nav {
    padding: 16px 8px;
    overflow-x: hidden;
}

.dashboard-layout.sidebar-collapsed .dash-nav__label {
    font-size: 0;
    height: 1px;
    margin: 14px 4px;
    background: var(--border-light);
    padding: 0;
    overflow: hidden;
}

.dashboard-layout.sidebar-collapsed .dash-nav__item,
.dashboard-layout.sidebar-collapsed .dash-nav__parent {
    justify-content: center;
    padding: 12px 0;
    width: 100%;
}

.dashboard-layout.sidebar-collapsed .dash-nav__item i,
.dashboard-layout.sidebar-collapsed .dash-nav__parent i:first-child {
    margin: 0;
    font-size: 1.2rem;
}

.dashboard-layout.sidebar-collapsed .dash-nav__submenu {
    display: none !important;
}

.dashboard-layout.sidebar-collapsed .dash-sidebar__footer {
    padding: 16px 8px;
    text-align: center;
}

.dashboard-layout.sidebar-collapsed .dash-sidebar__footer .dash-nav__item {
    justify-content: center;
    padding: 8px 0;
}

/* Accessible Tooltips in Collapsed State */
.dashboard-layout.sidebar-collapsed [data-tooltip] {
    position: relative;
}

.dashboard-layout.sidebar-collapsed [data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    background: #1e293b;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 1;
    transition: opacity 0.15s ease-out;
}

.dashboard-layout.sidebar-collapsed [data-tooltip]:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent #1e293b transparent transparent;
    z-index: 10000;
    pointer-events: none;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
    .dash-sidebar,
    .dash-nav__submenu,
    .dash-nav__nested-submenu,
    .dash-nav__arrow,
    .sidebar-overlay {
        transition: none !important;
        animation: none !important;
    }
}

.dash-sidebar__footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
}

.text-danger {
    color: #ef4444 !important;
}
.text-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.dash-main {
    flex: 1;
    background: var(--bg-light);
    min-width: 0;
}

.dash-topbar {
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-light);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.dash-title {
    font-size: 1.5rem;
    margin: 0;
}

.dash-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.widget-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-light-secondary);
    font-weight: 600;
}

.widget-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.widget-card__icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.widget-card__icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }

.widget-card__value {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.admin-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.admin-card__title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.builder-forms .admin-card {
    margin-bottom: 24px;
}


/* ==========================================================================
   DIGITAL BUSINESS CARD (Tenant Public View)
   ========================================================================== */

/* Overrides for specific card theme injection */
.card-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: var(--bg-dark);
}

.tenant-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    background: var(--surface-dark);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    min-height: 100vh;
}

/* Sidebar Identity */
.tenant-identity {
    width: 400px;
    background: var(--surface-dark-soft);
    border-right: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tenant-identity__banner {
    height: 200px;
    background: var(--gradient-primary);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.tenant-identity__content {
    position: relative;
    z-index: 2;
    padding: 140px 40px 40px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tenant-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid var(--surface-dark-soft);
    margin: 0 auto 24px;
    object-fit: cover;
    box-shadow: var(--shadow-glow);
    background: var(--surface-dark);
}

.tenant-logo {
    height: 40px;
    object-fit: contain;
    margin: 0 auto 24px;
}

.tenant-name {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tenant-designation {
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.tenant-company {
    color: var(--text-dark-secondary);
    font-size: 1rem;
}

.tenant-actions {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

/* Main Content Area */
.tenant-content {
    flex: 1;
    padding: 64px;
    overflow-y: auto;
    height: 100vh;
}

.t-section {
    margin-bottom: 64px;
}

.t-section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-section-title i {
    color: var(--brand-orange);
}

.t-text {
    font-size: 1.125rem;
    color: var(--text-dark-secondary);
    line-height: 1.8;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark);
    padding: 20px;
    border-radius: var(--radius-md);
}

.contact-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item__info {
    display: flex;
    flex-direction: column;
}

.contact-item__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dark-tertiary);
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item__value {
    font-weight: 600;
    word-break: break-all;
}

/* Social Grid */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.social-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.social-item:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* QR Containers */
.t-qr {
    text-align: center;
    background: rgba(255,255,255,0.02);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dark);
}

.t-qr-container {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 24px;
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Utility for responsive tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.table-responsive table {
    width: 100%;
    min-width: 600px; /* ensures table doesn't crush too much */
    border-collapse: collapse;
}

@media (max-width: 1024px) {
    .site-nav {
        gap: 22px;
    }
    .site-actions {
        gap: 12px;
    }
    .hero {
        padding: 140px 0 80px;
    }
    .hero-showcase {
        max-width: 100%;
    }
    .auth-page {
        flex-direction: column;
        min-height: 100dvh;
    }
    .auth-visual {
        padding: 40px 24px;
        flex: none;
        min-height: 200px;
    }
    .auth-panel {
        width: 100%;
        padding: 40px 24px;
        flex: 1;
    }
    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .tenant-wrapper {
        flex-direction: column;
    }
    .tenant-identity {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
    .tenant-identity__banner {
        height: 150px;
    }
    .tenant-identity__content {
        padding: 90px 24px 40px;
    }
    .tenant-avatar {
        width: 120px;
        height: 120px;
    }
    .tenant-content {
        padding: 40px 24px 100px; /* Padding bottom for mobile bar */
        height: auto;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        border-top: 1px solid var(--glass-border);
        padding: 16px;
        gap: 16px;
        z-index: 100;
        box-sizing: border-box;
    }
    .mobile-action-bar .btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    .tenant-actions {
        display: none; /* Hide desktop actions on mobile */
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Sidebar Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
}

@media (max-width: 768px) {
    .site-nav {
        display: none; /* simple hidden nav for mobile */
    }
    
    .site-header__inner {
        height: 70px;
    }
    
    .site-actions {
        gap: 10px;
    }
    
    .site-actions .btn--sm {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero__actions {
        margin-bottom: 50px;
    }
    
    .hero-showcase {
        box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    }
    
    .floating-element {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .fl-1 { top: 6%; left: 8px; }
    .fl-2 { bottom: 10%; right: 8px; }
    .fl-3 { top: 48%; left: 16px; }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .dashboard-layout {
        flex-direction: column;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .dash-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px !important;
        min-width: 280px !important;
        height: 100vh;
        height: 100dvh;
        z-index: 10000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25);
    }
    
    .dash-sidebar.active,
    .dash-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .dash-sidebar__close-btn {
        display: flex !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active,
    .sidebar-overlay.sidebar-open {
        display: block;
        opacity: 1;
    }
    
    .dash-nav {
        display: block; 
    }
    
    .dash-main {
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .dash-topbar {
        padding: 0 20px;
        justify-content: flex-start;
    }
    
    .dash-title {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .dash-topbar__actions {
        margin-left: auto;
    }
    
    .dash-content {
        padding: 20px;
        max-width: 100vw;
    }
    
    .builder-forms {
        grid-template-columns: 1fr;
    }
    
    .admin-card {
        padding: 20px;
    }
    
    .dash-grid, .pricing-grid, .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 28px 20px;
    }

    .pricing-card--popular {
        transform: none;
    }
    /* Modals */
    .modal-content {
        padding: 24px;
        width: calc(100% - 32px);
        margin: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .site-header .container,
    .site-header__inner {
        padding: 0 16px;
    }
    .site-logo {
        font-size: 1.25rem;
    }
    .site-actions {
        gap: 8px;
    }
    .site-actions .btn--sm {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .hero__actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .hero__actions .btn {
        width: 100%;
    }
    .pricing-card {
        padding: 24px 16px;
    }
    .pricing-price .pricing-price__amount {
        font-size: 2.1rem;
    }
    .pricing-price .pricing-price__interval,
    .pricing-price span {
        font-size: 1.1rem;
        padding: 2px 10px;
    }
}


/* Description Content Fix */
.description-content { text-align: justify; text-justify: inter-word; overflow-wrap: anywhere; }

/* Legal Policy Pages (Terms, Privacy, Refund) Typography */
.legal-card {
    background: #ffffff !important;
    color: #000000 !important;
}
.legal-card__title,
.legal-card h1.section-title {
    color: #000000 !important;
}
.legal-content,
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6,
.legal-content p,
.legal-content span,
.legal-content div,
.legal-content li,
.legal-content strong,
.legal-content b,
.legal-content th,
.legal-content td {
    color: #000000 !important;
}
