@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-color: #060a0f;
    --card-bg: rgba(11, 16, 22, 0.92);
    --border-color: rgba(0, 212, 192, 0.22);
    --border-hover: rgba(0, 212, 192, 0.55);
    --primary-color: #00D4C0;
    --primary-glow: rgba(0, 212, 192, 0.28);
    --secondary-color: #10b981;
    --danger-color: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-blur: 20px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 50% 0%, rgba(0, 212, 192, 0.12) 0px, transparent 50%),
        radial-gradient(at 10% 30%, rgba(0, 212, 192, 0.05) 0px, transparent 30%),
        radial-gradient(at 90% 70%, rgba(0, 212, 192, 0.04) 0px, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Topbar User Profile Button Widget */
.user-profile-header-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 192, 0.08);
    border: 1px solid rgba(0, 212, 192, 0.25);
    border-radius: 20px;
    padding: 3px 12px 3px 4px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.user-profile-header-widget:hover {
    background: rgba(0, 212, 192, 0.16);
    border-color: rgba(0, 212, 192, 0.5);
    box-shadow: 0 0 14px rgba(0, 212, 192, 0.25);
    transform: translateY(-1px);
}
.user-profile-header-widget:active {
    transform: translateY(0);
}

.profile-avatar-container {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4C0 0%, #008A7C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 212, 192, 0.4);
    overflow: hidden;
    flex-shrink: 0;
}
.profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.profile-avatar-letter {
    color: #000;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    font-family: 'Segoe UI', 'Outfit', sans-serif;
}

.profile-username-container {
    display: flex;
    align-items: center;
}
.profile-username-text {
    color: #FFF;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.profile-arrow-icon {
    width: 12px;
    height: 12px;
    stroke: #00D4C0;
    transition: transform 0.2s ease;
}
.user-profile-header-widget:hover .profile-arrow-icon {
    transform: translateX(2px);
}

/* Slide-out Profile Drawer & Backdrop Styles */
.heira-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.heira-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.heira-slide-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    background: #080D14;
    border-left: 1px solid rgba(0, 212, 192, 0.3);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    z-index: 999995;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', 'Outfit', 'Inter', sans-serif;
}
.heira-slide-drawer.active {
    transform: translateX(0);
}

.heira-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0D141E;
}
.heira-drawer-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00D4C0;
    font-size: 14px;
    font-weight: 700;
}
.heira-drawer-close-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.heira-drawer-close-btn:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.1);
}

.heira-drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.heira-drawer-profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 192, 0.15);
    border-radius: 12px;
    padding: 16px;
}
.heira-drawer-profile-userinfo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.heira-drawer-large-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4C0 0%, #00776B 100%);
    color: #000;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 212, 192, 0.4);
}
.heira-drawer-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.heira-drawer-username {
    color: #FFF;
    font-weight: 700;
    font-size: 15px;
}
.heira-drawer-role-badge {
    font-size: 9.5px;
    font-weight: 800;
    color: #00D4C0;
    background: rgba(0, 212, 192, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    letter-spacing: 0.5px;
}
.heira-drawer-role-badge.admin-role {
    color: #FF5566;
    background: rgba(255, 85, 102, 0.12);
}

.heira-drawer-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.heira-drawer-stat-label {
    font-size: 9px;
    color: #64748B;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.heira-drawer-stat-val {
    font-size: 11.5px;
    color: #FFF;
    font-weight: 700;
}

.heira-drawer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.heira-drawer-group-title {
    font-size: 10px;
    color: #64748B;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.heira-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 12.5px;
    transition: all 0.2s;
}
.heira-drawer-link:hover {
    background: rgba(0, 212, 192, 0.08);
    border-color: rgba(0, 212, 192, 0.25);
    color: #00D4C0;
}
.heira-drawer-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.heira-drawer-link-arrow {
    width: 14px;
    height: 14px;
    stroke: #64748B;
    transition: transform 0.2s;
}
.heira-drawer-link:hover .heira-drawer-link-arrow {
    stroke: #00D4C0;
    transform: translateX(2px);
}

.heira-drawer-logout-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 51, 68, 0.1);
    border: 1px solid rgba(255, 51, 68, 0.3);
    color: #FF3344;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}
.heira-drawer-logout-btn:hover {
    background: #FF3344;
    color: #FFF;
    box-shadow: 0 0 16px rgba(255, 51, 68, 0.4);
}

/* Header Navbar */
header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.navbar {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #FFF;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #FFF;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.btn-nav-portal {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border-color) !important;
    color: #FFF !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-nav-portal:hover {
    background: #FFF !important;
    color: #000 !important;
    border-color: #FFF !important;
}

/* Glass Card containers (Landing Page & Public Pages) */
.glass-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    box-sizing: border-box;
}

/* Admin & User panel pages ONLY: full viewport cockpit layout */
body.panel-page {
    background: #030712 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.panel-page .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

body.panel-page header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: rgba(8, 13, 20, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

body.panel-page .navbar {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 28px !important;
    height: 60px;
    box-sizing: border-box;
}

body.panel-page .glass-container,
body.panel-page .admin-full,
body.panel-page main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 212, 192, 0.2);
}

/* Landing Page Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px 24px;
    position: relative;
}

.badge-backed {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-backed span {
    color: #00D4C0;
    font-weight: 600;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #FFF 60%, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Tab Menu */
.tab-container {
    margin: 40px auto;
    max-width: 900px;
}

.tab-headers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: #FFF;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: rgba(0, 212, 192, 0.25);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.feature-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
}

.feature-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Form Styles */
/* Form Styles & Cyber Input Containers */
.form-card {
    max-width: 440px;
    width: 100%;
    margin: 50px auto;
    padding: 36px 32px !important;
    background: rgba(11, 16, 22, 0.92) !important;
    border: 1px solid rgba(0, 212, 192, 0.22) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 212, 192, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-sizing: border-box !important;
}

.form-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-control {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #060a0f !important;
    border: 1px solid rgba(0, 212, 192, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.form-control:focus {
    outline: none !important;
    border-color: #00D4C0 !important;
    box-shadow: 0 0 16px rgba(0, 212, 192, 0.4) !important;
}

.btn-full {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00D4C0 0%, #00B3A1 100%) !important;
    color: #060d14 !important;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--primary-color);
    color: #000;
    font-weight: 600;
}

.btn-accent:hover {
    background: #00ebd4;
    box-shadow: 0 0 15px rgba(0, 212, 192, 0.4);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(255, 51, 68, 0.1);
    border: 1px solid var(--danger-color);
    color: #FF5A6B;
}

.btn-danger:hover {
    background: rgba(255, 51, 68, 0.2);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    padding: 12px;
}

/* Alert Boxes */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(255, 51, 68, 0.05);
    border-color: rgba(255, 51, 68, 0.2);
    color: #FF5A6B;
}

.alert-success {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    color: #33FF9E;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pricing-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: rgba(0, 212, 192, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -20px rgba(0, 212, 192, 0.15);
}

.pricing-card.premium {
    border-color: rgba(0, 212, 192, 0.4);
    background: rgba(0, 212, 192, 0.02);
}

.pricing-card.premium::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-color);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 30px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.pricing-header h3 {
    font-size: 18px;
    color: #FFF;
    margin-bottom: 8px;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 20px;
}

.price span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-main);
}

.features-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

/* Feature Toggle Grid (Admin & Matrix) */
.feature-matrix-table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
}

.feature-matrix-table th, .feature-matrix-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.feature-matrix-table th:first-child, .feature-matrix-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.feature-matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.badge-yes {
    color: var(--primary-color);
    font-weight: bold;
}

.badge-no {
    color: rgba(255, 255, 255, 0.15);
}

/* Dashboard / Admin Panels — Cockpit 2-Column Grid System */
.dashboard-layout {
    display: grid !important;
    grid-template-columns: 270px 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: calc(100vh - 60px);
    align-items: stretch !important;
    box-sizing: border-box;
}

/* Sidebar Flushed to Left Wall & Connected Seamlessly to Topbar */
.dashboard-sidebar {
    background: rgba(8, 13, 20, 0.96) !important;
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 24px 16px !important;
    margin: 0 !important;
    position: sticky !important;
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    box-shadow: none !important;
    box-sizing: border-box;
    z-index: 100;
}

/* Main Content Area Layout & Unified Card Wrapper */
.dashboard-content,
.main-content {
    padding: 28px 36px 40px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Unified Premium Card Component System */
.content-card,
.panel-card,
body.panel-page .glass-card {
    background: linear-gradient(145deg, rgba(13, 20, 30, 0.85) 0%, rgba(8, 13, 20, 0.92) 100%) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 28px !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.content-card:hover,
.panel-card:hover,
body.panel-page .glass-card:hover {
    border-color: rgba(0, 212, 192, 0.3) !important;
    box-shadow: 0 16px 45px -10px rgba(0, 212, 192, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Sleek Cockpit Form Controls */
body.panel-page .form-control,
body.panel-page select.form-control,
body.panel-page input[type="text"],
body.panel-page input[type="email"],
body.panel-page input[type="password"],
body.panel-page input[type="number"],
body.panel-page textarea {
    background: rgba(3, 7, 18, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #FFF !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.panel-page .form-control:focus,
body.panel-page select.form-control:focus,
body.panel-page input:focus,
body.panel-page textarea:focus {
    border-color: #00D4C0 !important;
    box-shadow: 0 0 12px rgba(0, 212, 192, 0.2) !important;
    outline: none !important;
}

/* Sleek Cockpit Tables */
body.panel-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.panel-page table th {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #94A3B8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.panel-page table td {
    padding: 14px 16px !important;
    font-size: 12.5px !important;
    color: #E2E8F0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body.panel-page table tr:last-child td {
    border-bottom: none !important;
}

body.panel-page table tr:hover td {
    background: rgba(0, 212, 192, 0.03) !important;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0; /* Prevents grid blowout */
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-box {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.stat-num {
    font-size: 26px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Profile Badge */
.user-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    gap: 8px;
    font-weight: 600;
}

.badge-free {
    border-color: rgba(255,255,255,0.15);
    color: var(--text-muted);
}

.badge-pro {
    border-color: rgba(0, 212, 192, 0.3);
    color: var(--primary-color);
}

.badge-ultra {
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--secondary-color);
}

.badge-enterprise {
    border-color: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

/* Table Design */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.action-links {
    display: flex;
    gap: 12px;
}

.action-links a {
    font-size: 12px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.action-links a:hover {
    color: #FFF;
}

/* Documentation Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 20px;
}

.docs-sidebar {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 16px;
    height: calc(100vh - 120px);
    position: sticky;
    top: 84px;
    overflow-y: auto;
}

.docs-search-trigger {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.docs-search-trigger:hover {
    border-color: rgba(255,255,255,0.2);
}

.docs-search-trigger kbd {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-family: monospace;
}

.docs-menu-group {
    margin-bottom: 20px;
}

.docs-menu-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 8px;
}

.docs-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-menu-list a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.docs-menu-list a:hover, .docs-menu-list a.active {
    color: #FFF;
    background: rgba(255, 255, 255, 0.03);
}

.docs-content {
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    line-height: 1.7;
}

.docs-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.docs-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.docs-content pre {
    background: #050505;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Modal Search System (Ctrl+K) */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal.active {
    display: flex;
}

.search-container {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05);
    animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.search-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 16px;
    outline: none;
}

.search-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}

.search-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-item:hover, .search-item.selected {
    background: rgba(0, 212, 192, 0.05);
    border-color: rgba(0, 212, 192, 0.2);
}

.search-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #FFF;
    margin-bottom: 4px;
}

.search-item-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-tag {
    align-self: flex-start;
    font-size: 10px;
    background: rgba(0, 212, 192, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
    font-family: monospace;
}

.search-footer {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.search-footer kbd {
    background: rgba(255,255,255,0.06);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Changelog Timeline */
.changelog-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 32px;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.changelog-item {
    position: relative;
    margin-bottom: 48px;
}

.changelog-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #000;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 2;
}

.changelog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.changelog-version {
    font-size: 18px;
    font-weight: 700;
    color: #FFF;
    font-family: 'JetBrains Mono', monospace;
}

.changelog-date {
    font-size: 12px;
    color: var(--text-muted);
}

.changelog-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-feature {
    background: rgba(0, 212, 192, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 192, 0.2);
}

.badge-bugfix {
    background: rgba(255, 51, 68, 0.1);
    color: #FF5A6B;
    border: 1px solid rgba(255, 51, 68, 0.2);
}

.badge-improvement {
    background: rgba(0, 255, 136, 0.1);
    color: #33FF9E;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.changelog-card {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

.changelog-card h2 {
    font-size: 20px;
    color: #FFF;
    margin-bottom: 12px;
}

.changelog-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Toggle Pill Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #000;
}

/* Sidebar Redesign - Category Titles (Rule #27) */
.sidebar-category {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(0, 212, 192, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin: 20px 0 6px 12px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-category:first-of-type {
    margin-top: 10px;
}

/* Sidebar Search Box */
.sidebar-search-container {
    padding: 0 10px;
    margin-bottom: 16px;
}

.sidebar-search-box {
    position: relative;
    width: 100%;
}

.sidebar-search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px 8px 32px;
    color: #FFF;
    font-size: 12px;
    outline: none;
    transition: all 0.25s ease;
}

.sidebar-search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 192, 0.15);
    background: rgba(0, 212, 192, 0.02);
}

.sidebar-search-box svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.sidebar-search-box input:focus + svg {
    opacity: 0.9;
}

.sidebar-search-box kbd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    pointer-events: none;
}

/* Sidebar Link & Icon overrides */
.sidebar-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    background: transparent;
    font-weight: 500;
    box-sizing: border-box;
}

.sidebar-menu li a:hover {
    color: #FFF;
    background: rgba(0, 212, 192, 0.03);
    border-left-color: rgba(0, 212, 192, 0.4);
}

.sidebar-menu li a.active {
    color: #FFF;
    background: rgba(0, 212, 192, 0.08);
    border-left-color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 212, 192, 0.2);
}

.sidebar-menu li a svg {
    flex-shrink: 0;
}

/* Custom Ctrl+K Menu Search Modal overrides */
.menu-search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.menu-search-modal.active {
    display: flex;
}

.menu-search-container {
    background: linear-gradient(145deg, #070c14 0%, #0a111c 100%);
    border: 1px solid rgba(0, 212, 192, 0.2);
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 212, 192, 0.05);
    animation: menuModalSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuModalSlide {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.menu-search-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 15px;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.menu-search-results {
    max-height: 350px;
    overflow-y: auto;
    padding: 8px;
}

.menu-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.menu-search-item:hover, .menu-search-item.selected {
    background: rgba(0, 212, 192, 0.05);
    border-color: rgba(0, 212, 192, 0.25);
}

.menu-search-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-search-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #FFF;
}

.menu-search-item-category {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    background: rgba(0, 212, 192, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-search-footer {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.menu-search-footer kbd {
    background: rgba(255,255,255,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: monospace;
}

/* ══════════════════════════════════════════════════════════════════════════
   3-WAY SEPARATED INTERFACE STYLING (Landing vs Customer Portal vs Admin)
   ══════════════════════════════════════════════════════════════════════════ */

/* MODE 1: ADMIN COMMAND CENTER */
body.mode-admin {
    background-color: #05080C;
    background-image: 
        radial-gradient(at 50% 0%, rgba(255, 51, 68, 0.09) 0px, transparent 50%),
        radial-gradient(at 10% 40%, rgba(0, 212, 192, 0.05) 0px, transparent 35%),
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
}

header.header-admin {
    background: rgba(7, 11, 15, 0.95) !important;
    border-bottom: 1px solid rgba(255, 51, 68, 0.25) !important;
    box-shadow: 0 4px 20px rgba(255, 51, 68, 0.08);
}

.badge-mode-admin {
    background: rgba(255, 51, 68, 0.12);
    border: 1px solid rgba(255, 51, 68, 0.4);
    color: #FF3344;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 0 10px rgba(255, 51, 68, 0.3);
}

/* MODE 2: CUSTOMER PORTAL */
body.mode-customer {
    background-color: #03060A;
    background-image: 
        radial-gradient(at 50% 0%, rgba(0, 212, 192, 0.12) 0px, transparent 50%),
        radial-gradient(at 80% 30%, rgba(0, 255, 136, 0.04) 0px, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
}

header.header-customer {
    background: rgba(5, 10, 16, 0.95) !important;
    border-bottom: 1px solid rgba(0, 212, 192, 0.25) !important;
    box-shadow: 0 4px 20px rgba(0, 212, 192, 0.08);
}

.badge-mode-customer {
    background: rgba(0, 212, 192, 0.12);
    border: 1px solid rgba(0, 212, 192, 0.4);
    color: #00D4C0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 0 10px rgba(0, 212, 192, 0.3);
}

/* MODE 3: PUBLIC LANDING */
body.mode-landing {
    background-color: #000000;
}

header.header-landing {
    background: rgba(0, 0, 0, 0.88) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* BUTTONS & CONTROLS */
.btn-switch-mode {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-to-customer {
    background: rgba(0, 212, 192, 0.12) !important;
    border: 1px solid rgba(0, 212, 192, 0.35) !important;
    color: #00D4C0 !important;
}

.btn-to-customer:hover {
    background: #00D4C0 !important;
    color: #05080C !important;
    box-shadow: 0 0 12px rgba(0, 212, 192, 0.4);
}

.btn-to-admin {
    background: rgba(255, 51, 68, 0.12) !important;
    border: 1px solid rgba(255, 51, 68, 0.35) !important;
    color: #FF3344 !important;
}

.btn-to-admin:hover {
    background: #FF3344 !important;
    color: #FFF !important;
    box-shadow: 0 0 12px rgba(255, 51, 68, 0.4);
}

.btn-nav-logout {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-muted) !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-nav-logout:hover {
    background: rgba(255, 51, 68, 0.18) !important;
    border-color: #FF3344 !important;
    color: #FF3344 !important;
}

.footer-admin {
    border-top: 1px solid rgba(255, 51, 68, 0.2);
    padding: 22px 24px;
    text-align: center;
    background: #05080C;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-customer {
    border-top: 1px solid rgba(0, 212, 192, 0.2);
    padding: 22px 24px;
    text-align: center;
    background: #03060A;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.showcase-grid {
    grid-template-columns: 260px 1fr;
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Breakpoints: 480px (phone), 768px (tablet), 1024px (laptop), 1200px (desktop), 1920px+ (TV/UW)
   ========================================== */

/* ── Ultra-wide / TV (1920px+) ──────────────────────────────── */
@media (min-width: 1920px) {
    .glass-container, .navbar {
        max-width: 1600px;
    }
    .dashboard-layout {
        grid-template-columns: 280px 1fr;
        gap: 28px;
    }
    .hero-title, .hero h1 {
        font-size: 56px !important;
    }
    .glass-card {
        padding: 28px;
    }
}

/* ── Desktop to Laptop (1200px - 1024px) ────────────────────── */
@media (max-width: 1200px) {
    .glass-container, .navbar {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    .dashboard-layout {
        grid-template-columns: 240px 1fr;
        gap: 18px;
    }
    /* Announcements 2-col grid → stack if needed */
    .admin-full .dashboard-content > div[style*="grid-template-columns: 1fr 1.3fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Tablet (max 1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 16px !important;
    }
    .dashboard-sidebar {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
    }
    .sidebar-menu {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 6px !important;
    }
    .sidebar-menu a {
        font-size: 11px !important;
        padding: 7px 10px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .sidebar-category {
        grid-column: 1 / -1 !important;
        margin: 16px 0 4px 6px !important;
        font-size: 10px !important;
        border-bottom: 1px solid rgba(0, 212, 192, 0.15) !important;
        padding-bottom: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-grid, .pricing-grid, .features-grid, .grid-2col, .grid-3col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .grid-4col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .showcase-grid {
        grid-template-columns: 1fr !important;
    }
    /* Admin content grids and forms */
    .admin-full .dashboard-content div[style*="grid-template-columns"],
    .admin-full .dashboard-content form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Tables Overflow (Available on tablets too) */
    table, .feature-matrix-table, .admin-table, .data-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Mobile / Tablet Portrait (max 768px) ───────────────────── */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container, .glass-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Header & Nav */
    header {
        height: auto !important;
        min-height: 56px;
    }
    .navbar {
        padding: 10px 14px !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        width: 44px !important;
        height: 38px !important;
        padding: 0 !important;
    }
    .mobile-nav-toggle svg {
        flex-shrink: 0 !important;
        display: block !important;
    }
    .nav-links {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #080D14 !important;
        border-bottom: 1px solid #00D4C0 !important;
        flex-direction: column !important;
        padding: 14px !important;
        gap: 10px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9) !important;
        z-index: 9999 !important;
    }
    .nav-links.active {
        display: flex !important;
    }
    .nav-links li {
        width: 100% !important;
    }
    .nav-links a {
        display: block !important;
        width: 100% !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    /* Topbar widgets */
    .topbar-right, .header-actions {
        gap: 6px !important;
    }
    .user-profile-header-widget span {
        display: none !important;
    }

    /* Dashboard & Admin Layouts */
    .dashboard-layout {
        grid-template-columns: 1fr !important;
        padding: 14px 10px !important;
        gap: 14px !important;
    }
    .dashboard-sidebar {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .sidebar-menu {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 6px !important;
    }
    .sidebar-menu a {
        font-size: 11px !important;
        padding: 7px 8px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .sidebar-menu a svg {
        display: none !important;
    }

    /* Glass Cards */
    .glass-card {
        padding: 14px !important;
    }

    /* Grids & Stats */
    .hero-grid, .pricing-grid, .features-grid, .grid-2col, .grid-3col, .grid-4col {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Tables Overflow */
    table, .feature-matrix-table, .admin-table, .data-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Collapse all inline grid layouts to 1 column on mobile viewports globally */
    div[style*="grid-template-columns"], 
    form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    th, td {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    /* Forms */
    input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
    select, textarea, button, .btn {
        min-height: 44px !important;
        font-size: 14px !important;
    }
    textarea {
        min-height: auto !important;
    }
    form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Modals */
    #heira-captcha-container, .modal-content, .heira-popup-content {
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        margin: 8px !important;
    }

    /* Hero Text */
    .hero-title, .hero h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .hero-subtitle, .hero p {
        font-size: 14px !important;
    }

    /* Pricing Cards */
    .pricing-card {
        padding: 18px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    /* Notification dropdown */
    .notification-dropdown, #heira-notif-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Live Support Widget */
    .live-support-widget {
        bottom: 14px !important;
        right: 14px !important;
    }
    #heira-live-support-panel {
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        right: 10px !important;
        left: 10px !important;
        bottom: 70px !important;
        max-height: 70vh !important;
    }

    /* Showcase */
    .showcase-grid {
        grid-template-columns: 1fr !important;
    }

    /* Admin page-specific grids */
    div[style*="grid-template-columns: 1fr 1.3fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* User drawer */
    .heira-drawer-overlay .heira-user-drawer {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ctrl+K Search */
    .heira-cmd-palette {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 10px !important;
    }

    /* Compact filter forms */
    form[style*="display:flex"][style*="flex-wrap:wrap"] {
        flex-direction: column !important;
    }
    form[style*="display:flex"][style*="flex-wrap:wrap"] > div,
    form[style*="display:flex"][style*="flex-wrap:wrap"] > button,
    form[style*="display:flex"][style*="flex-wrap:wrap"] > a {
        width: 100% !important;
        min-width: 0 !important;
    }

    #heira-viewport-container {
        padding: 12px !important;
    }
}

/* ── Small Phone (max 480px) ────────────────────────────────── */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 10px !important;
    }
    .logo {
        font-size: 18px !important;
    }
    .logo img {
        width: 28px !important;
        height: 28px !important;
    }
    .glass-card {
        padding: 10px !important;
        border-radius: 8px !important;
    }
    .glass-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .dashboard-layout {
        padding: 8px 6px !important;
    }
    .hero-title, .hero h1 {
        font-size: 22px !important;
    }
    .hero-subtitle, .hero p {
        font-size: 12px !important;
    }
    .sidebar-menu {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
    }
    .sidebar-menu a {
        font-size: 10px !important;
        padding: 6px !important;
    }
    h2, .page-title {
        font-size: 18px !important;
    }
    h3 {
        font-size: 14px !important;
    }

    /* Pricing section */
    .pricing-card {
        padding: 14px !important;
    }
    .pricing-card .price {
        font-size: 28px !important;
    }

    /* Stats in compact mode */
    .stats-grid .glass-card {
        padding: 10px !important;
        gap: 8px !important;
    }
    .stats-grid .glass-card div[style*="font-size:22px"] {
        font-size: 18px !important;
    }

    /* Action buttons compact */
    .btn, button {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    .btn-sm {
        padding: 3px 6px !important;
        font-size: 10px !important;
    }
}

/* Sidebar mobile collapsible styles */
.mobile-sidebar-toggle-btn {
    display: none;
}
.sidebar-collapsible-content {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .mobile-sidebar-toggle-btn {
        display: flex !important;
    }
    .sidebar-collapsible-content {
        display: none !important;
    }
    .sidebar-collapsible-content.active {
        display: flex !important;
    }
}

/* ── TV & Ultrawide Screen Optimization ────────────────────── */
@media (min-width: 1920px) {
    body.panel-page .navbar,
    body.panel-page .glass-container,
    body.panel-page .admin-full {
        max-width: 1800px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ── Print-safe reset ───────────────────────────────────────── */
@media print {
    body { background: #FFF !important; color: #000 !important; }
    header, .dashboard-sidebar, .live-support-widget, footer { display: none !important; }
    .glass-card { border: 1px solid #ccc !important; background: #FFF !important; box-shadow: none !important; }
}

/* ==========================================================================
   DYNAMIC LIGHT THEME OVERRIDES (html[data-theme="light"])
   ========================================================================== */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] body.panel-page {
    background-color: #F8FAFC !important;
    background-image: 
        radial-gradient(at 50% 0%, rgba(0, 212, 192, 0.08) 0px, transparent 50%),
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px) !important;
    color: #0F172A !important;
}

html[data-theme="light"] body.panel-page header,
html[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] body.panel-page .navbar {
    background: transparent !important;
}

html[data-theme="light"] .nav-links a {
    color: #334155 !important;
}
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active {
    color: #008A7C !important;
}

html[data-theme="light"] body.panel-page .dashboard-sidebar {
    background: #FFFFFF !important;
    border-right: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 2px 0 15px rgba(0,0,0,0.03) !important;
}

html[data-theme="light"] .sidebar-category-toggle,
html[data-theme="light"] .sidebar-category-toggle span,
html[data-theme="light"] .sidebar-submenu a {
    color: #334155 !important;
}

html[data-theme="light"] .sidebar-submenu a:hover,
html[data-theme="light"] .sidebar-submenu a.active {
    color: #008A7C !important;
    background: rgba(0, 212, 192, 0.1) !important;
}

html[data-theme="light"] .content-card,
html[data-theme="light"] .panel-card,
html[data-theme="light"] .glass-card,
html[data-theme="light"] body.panel-page .glass-card,
html[data-theme="light"] body.panel-page .content-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    color: #0F172A !important;
}

html[data-theme="light"] h1, 
html[data-theme="light"] h2, 
html[data-theme="light"] h3, 
html[data-theme="light"] h4, 
html[data-theme="light"] h5, 
html[data-theme="light"] h6,
html[data-theme="light"] p,
html[data-theme="light"] span,
html[data-theme="light"] label {
    color: #0F172A;
}

html[data-theme="light"] .text-muted,
html[data-theme="light"] p[style*="color: var(--text-muted)"],
html[data-theme="light"] p[style*="color:var(--text-muted)"] {
    color: #64748B !important;
}

html[data-theme="light"] body.panel-page .form-control,
html[data-theme="light"] body.panel-page select.form-control,
html[data-theme="light"] body.panel-page input[type="text"],
html[data-theme="light"] body.panel-page input[type="email"],
html[data-theme="light"] body.panel-page input[type="password"],
html[data-theme="light"] body.panel-page input[type="number"],
html[data-theme="light"] body.panel-page textarea {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] body.panel-page table {
    border-color: #CBD5E1 !important;
    background: #FFFFFF !important;
}

html[data-theme="light"] body.panel-page table th {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border-bottom: 1px solid #CBD5E1 !important;
}

html[data-theme="light"] body.panel-page table td {
    color: #1E293B !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

html[data-theme="light"] body.panel-page table tr:hover td {
    background: rgba(0, 212, 192, 0.06) !important;
}

html[data-theme="light"] .heira-slide-drawer {
    background: #FFFFFF !important;
    border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15) !important;
    color: #0F172A !important;
}

html[data-theme="light"] .heira-drawer-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .heira-drawer-profile-card {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
}

html[data-theme="light"] .heira-drawer-username {
    color: #0F172A !important;
}

html[data-theme="light"] .stat-box {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .stat-num {
    color: #0F172A !important;
}

.theme-option-btn.active, .lang-option-btn.active {
    background: rgba(0, 212, 192, 0.16) !important;
    color: #00D4C0 !important;
    border: 1px solid rgba(0, 212, 192, 0.4) !important;
    box-shadow: 0 0 6px rgba(0, 212, 192, 0.25) !important;
    font-weight: 700 !important;
}

