/* TDTracking Ultra-Fast Tailwind Clean Slate Theme */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    color-scheme: dark;
    --bg-main: #0b0f19;
    --bg-surface: #111827;
    --bg-card: #1f2937;
    --bg-card-hover: #374151;
    
    --border: #1f2937;
    --border-light: #374151;

    --text: #f9fafb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --primary: #10b981;
    --primary-hover: #059669;

    --radius: 8px;
    --radius-lg: 12px;
}

/* Date & Time Picker Controls (Dark Theme) */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
    color-scheme: dark !important;
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' x2='16' y1='2' y2='6'%3E%3C/line%3E%3Cline x1='8' x2='8' y1='2' y2='6'%3E%3C/line%3E%3Cline x1='3' x2='21' y1='10' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
    filter: none !important;
    width: 20px !important;
    height: 20px !important;
    padding: 2px !important;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
    filter: none !important;
    width: 20px !important;
    height: 20px !important;
    padding: 2px !important;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover,
input[type="week"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1 !important;
    transform: scale(1.1);
    background-color: rgba(96, 165, 250, 0.15) !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: #34d399;
}

/* Base Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

.sidebar {
    width: 250px;
    background: #111827;
    border-right: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transition: transform 0.2s ease;
}

.sidebar-brand {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid #1f2937;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.sidebar-nav {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-category {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 14px 10px 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #9ca3af;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: #1f2937;
}

.nav-link.active {
    color: #ffffff;
    background: #10b981;
}

.nav-link.active svg {
    color: #ffffff;
}

.sidebar-user {
    padding: 14px;
    border-top: 1px solid #1f2937;
    background: #0b0f19;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img,
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.72rem;
    color: #6b7280;
}

.main-wrapper {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: clip;
}

.top-bar {
    height: 64px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.page-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.page-header-info h1,
.page-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-header-info p,
.page-header-subtitle {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-header-subtitle:empty {
    display: none;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
}

.shell {
    padding: 24px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: clip;
}

/* Auth Cards */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0b0f19;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header .brand-icon {
    margin: 0 auto 12px;
    width: 40px;
    height: 40px;
}

.auth-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #ffffff;
}

.auth-header p {
    margin: 0;
    font-size: 0.82rem;
    color: #9ca3af;
}

/* Components */
.panel {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 0.68rem;
    color: #10b981;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.15s ease;
}

.stat-card:hover {
    border-color: #374151;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 20px; height: 20px; }

.stat-icon-total { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.stat-icon-available { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.stat-icon-expiring { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.stat-icon-errors { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }

.stat-content span {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
}

.stat-content strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.button svg { width: 15px; height: 15px; }

.button-primary {
    background: #10b981;
    color: #ffffff;
}

.button-primary:hover {
    background: #059669;
    color: #ffffff;
}

.button-secondary {
    background: #1f2937;
    color: #f9fafb;
    border: 1px solid #374151;
}

.button-secondary:hover {
    background: #374151;
    color: #ffffff;
}

.button-ghost {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #1f2937;
}

.button-ghost:hover {
    background: #1f2937;
    color: #ffffff;
}

.button-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.button-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.button-small {
    padding: 5px 10px;
    font-size: 0.78rem;
}

.hero-actions, .action-stack, .inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Forms & Inputs */
.domain-form {
    display: grid;
    gap: 16px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left !important;
}

label span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: left !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    background: #0b0f19;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 9px 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #10b981;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.switch-row {
    display: grid;
    gap: 10px;
}

.switch-card {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px;
    background: #0b0f19;
    border-radius: 6px;
    border: 1px solid #374151;
    cursor: pointer;
}

.switch-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
    margin: 0;
}

/* Custom Toggle Switch (Nút gạt) */
.toggle-switch-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer;
    font-size: 0.85rem;
    color: #e5e7eb;
    user-select: none;
    padding: 4px 0;
}

.toggle-switch-label span:not(.toggle-switch-slider) {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
}

.toggle-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-switch-slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    background-color: #374151;
    border-radius: 22px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.toggle-switch-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-switch-input:checked + .toggle-switch-slider {
    background-color: #10b981;
}

.toggle-switch-input:checked + .toggle-switch-slider::before {
    transform: translateX(18px);
}

/* Settings Page 2-Column Responsive Layout & Tabs */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.settings-left-col {
    order: 2;
    min-width: 0;
    width: 100%;
}

.settings-right-col {
    order: 1;
    min-width: 0;
    width: 100%;
}

@media (min-width: 992px) {
    .settings-grid {
        grid-template-columns: 1.25fr 1fr;
        gap: 24px;
    }

    .settings-left-col {
        order: 1;
    }

    .settings-right-col {
        order: 2;
    }
}

.settings-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

.settings-tab-pane {
    display: none;
}

.settings-tab-pane.active {
    display: block;
}

/* User Profile Overview Card */
.user-avatar-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 0;
}

.avatar-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Avatar Uploader Component */
.avatar-uploader-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #0b0f19;
    border: 1px solid #1f2937;
    border-radius: 10px;
    margin-bottom: 4px;
}

.avatar-uploader-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.avatar-uploader-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-uploader-info {
    flex: 1;
    min-width: 0;
}

.avatar-uploader-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.avatar-uploader-hint {
    color: #6b7280;
    font-size: 0.75rem;
    display: block;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .avatar-uploader-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.user-avatar-hero h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
}

.user-avatar-hero p {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.profile-details-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-detail-item .detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-detail-item small {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
}

.profile-detail-item strong {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Table */
.table-panel {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #111827;
    border: 1px solid #1f2937;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.table-panel .panel-head {
    padding: 20px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #1f2937;
}

.table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.table-wrap::-webkit-scrollbar,
.admin-table-container::-webkit-scrollbar {
    height: 6px;
}

.table-wrap::-webkit-scrollbar-track,
.admin-table-container::-webkit-scrollbar-track {
    background: #0b0f19;
    border-radius: 4px;
}

.table-wrap::-webkit-scrollbar-thumb,
.admin-table-container::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

.table-wrap::-webkit-scrollbar-thumb:hover,
.admin-table-container::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th {
    background: #0b0f19;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none; /* Sentence case */
    letter-spacing: normal;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #1f2937;
    white-space: nowrap;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid #1f2937;
    vertical-align: middle;
    color: #9ca3af;
}

.col-actions {
    white-space: nowrap;
}

.col-actions .action-stack {
    flex-wrap: nowrap;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

tbody tr:last-child td {
    border-bottom: none;
}

td strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

td small {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 2px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-ok { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-available { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-muted { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); }

/* Flashes */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.flash-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.flash-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }

.config-list { display: grid; gap: 10px; }
.config-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #0b0f19;
    border-radius: 6px;
    border: 1px solid #1f2937;
}
.config-list dt { font-size: 0.82rem; color: #9ca3af; }
.config-list dd { margin: 0; font-weight: 600; color: #ffffff; }

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: #111827;
    padding: 3px 6px;
    border-radius: 4px;
    color: #38bdf8;
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.empty-state svg,
.empty-state [data-lucide] {
    margin: 0 auto;
    display: block;
}

.empty-state p {
    text-align: center;
    margin: 0 0 16px 0;
}

.empty-state .button {
    margin: 0 auto;
}

/* Responsive Mobile Layout Fixes */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 990;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .sidebar-backdrop.active {
        display: block;
    }
    .main-wrapper {
        margin-left: 0;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        background: #1f2937;
        color: #ffffff;
        flex-shrink: 0;
    }
    .page-header-info {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        overflow: hidden;
    }
    .page-header-info h1,
    .page-header-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
        margin: 0;
    }
    .page-header-info p,
    .page-header-subtitle,
    .page-header-info > *:not(h1):not(.page-header-title) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: 56px;
        min-height: 56px;
        padding: 0 14px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .top-bar-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .top-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .top-actions .button {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .action-stack {
        flex-wrap: wrap;
        gap: 4px;
    }

    .action-stack .button {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
}

@media (max-width: 640px) {
    .shell {
        padding: 12px;
    }

    .panel {
        padding: 14px;
        border-radius: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 6px;
    }

    .stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .stat-content span {
        font-size: 0.7rem;
    }

    .stat-content strong {
        font-size: 1.2rem;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 20px 16px;
    }
}

/* Domain Details Modal Styling */
.domain-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    will-change: opacity;
}

.domain-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.domain-modal-content {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: translate3d(0, 10px, 0);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.domain-modal-backdrop.active .domain-modal-content {
    transform: translate3d(0, 0, 0);
}

.domain-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0f19;
}

.modal-domain-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.modal-close-btn:hover {
    color: #ffffff;
    background: #1f2937;
}

.domain-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .modal-detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.modal-detail-item {
    background: #0b0f19;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #1f2937;
}

.modal-detail-item label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
}

.modal-detail-item strong {
    font-size: 0.92rem;
    color: #ffffff;
    display: block;
}

.modal-detail-item small {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
}

.domain-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #1f2937;
    background: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* 3-Dots Action Dropdown Menu (HTML5 Details) */
details.action-dropdown {
    position: relative;
    display: inline-block;
}

details.action-dropdown summary {
    list-style: none;
    cursor: pointer;
    outline: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

details.action-dropdown summary::-webkit-details-marker,
details.action-dropdown summary::marker {
    display: none !important;
}

details.action-dropdown summary svg,
details.action-dropdown summary [data-lucide] {
    width: 16px;
    height: 16px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

details[open].action-dropdown summary svg,
details[open].action-dropdown summary [data-lucide] {
    transform: rotate(90deg) scale(1.1);
}

details[open].action-dropdown {
    z-index: 100 !important;
}

tbody tr:has(details[open].action-dropdown) {
    position: relative;
    z-index: 100 !important;
}

/* Ensure dropdowns inside tables are never clipped by overflow containers */
.table-panel:has(details[open].action-dropdown),
.table-wrap:has(details[open].action-dropdown) {
    overflow: visible !important;
}

.dropdown-trigger {
    padding: 6px 10px;
    border-radius: 8px;
    color: #9ca3af;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-trigger:hover, details[open].action-dropdown summary {
    background: rgba(31, 41, 55, 0.9);
    color: #ffffff;
    border-color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(75, 85, 99, 0.45);
    border-radius: 10px;
    padding: 6px;
    min-width: 175px;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 100 !important;
    transform-origin: top right;
}

details[open].action-dropdown .dropdown-menu {
    display: block !important;
    animation: dropdownMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smart Dropup when placed near table/viewport bottom */
details[open].action-dropdown.dropup .dropdown-menu {
    top: auto !important;
    bottom: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    transform-origin: bottom right;
    box-shadow: 0 -16px 36px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    animation: dropupMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownMenuIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dropupMenuIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #f3f4f6;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item:hover {
    background: rgba(55, 65, 81, 0.65);
    color: #ffffff;
    transform: translateX(3px);
}

.dropdown-item:active {
    transform: scale(0.98) translateX(2px);
}

.dropdown-item.danger {
    color: #f87171;
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
    transform: translateX(3px);
}

.dropdown-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.16s ease;
}

.dropdown-item:hover svg {
    transform: scale(1.15);
}

.dropdown-divider {
    height: 1px;
    background: rgba(55, 65, 81, 0.6);
    margin: 4px 0;
}

@media (max-width: 768px) {
    /* Show domain globe icon on mobile */
    .domain-icon-wrapper {
        display: flex !important;
        width: 28px !important;
        height: 28px !important;
    }

    .col-hide-mobile {
        display: none !important;
    }

    .col-status small {
        display: none !important; /* Hide description/error text on mobile, keeping only status badge */
    }

    .table-panel {
        padding: 0;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    .table-wrap {
        overflow: visible !important;
    }

    .table-panel table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: auto;
    }

    .table-panel th, .table-panel td {
        padding: 10px 4px !important;
    }

    .table-panel th:first-child, .table-panel td:first-child {
        padding-left: 8px !important;
    }

    .table-panel th:last-child, .table-panel td:last-child {
        padding-right: 8px !important;
    }

    .button-text-desktop {
        display: none !important;
    }

    .action-stack {
        justify-content: flex-end !important;
        gap: 3px !important;
        flex-wrap: nowrap !important;
    }

    .action-stack .button {
        padding: 5px 6px !important;
    }

    .domain-name-clickable {
        color: #38bdf8 !important;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
}

@media (min-width: 769px) {
    .btn-detail-mobile {
        display: none !important;
    }
}

/* Floating Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    background: #111827;
    color: #ffffff;
    border: 1px solid #374151;
    border-left: 4px solid #10b981;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-message.error {
    border-left-color: #ef4444;
}

.spin {
    animation: spin 0.8s linear infinite !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Universal Button Loading State */
.button.is-loading,
button[type="submit"].is-loading,
.btn-loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.85 !important;
    cursor: wait !important;
}

.button.is-loading svg,
button[type="submit"].is-loading svg {
    animation: spin 0.8s linear infinite !important;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
    margin-right: 6px;
    vertical-align: middle;
}

/* Fullscreen Center Loading Overlay */
.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    will-change: opacity;
}

.global-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.global-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3.5px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.global-loading-text {
    color: #f3f4f6;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Admin Panel Responsive System & UI Enhancements
   ========================================================================== */

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 16px;
    }
}

/* Admin Stat Card */
.admin-stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card:hover {
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-card .stat-icon svg {
    width: 22px;
    height: 22px;
}

.admin-stat-card .stat-content {
    min-width: 0;
}

.admin-stat-card .stat-content small {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none; /* Sentence case strictly */
}

.admin-stat-card .stat-content strong {
    font-size: 1.5rem;
    color: #ffffff;
    display: block;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 640px) {
    .admin-stat-card {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 10px;
    }
    .admin-stat-card .stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    .admin-stat-card .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    .admin-stat-card .stat-content small {
        font-size: 0.72rem;
    }
    .admin-stat-card .stat-content strong {
        font-size: 1.25rem;
    }
}

/* Admin Quick Info Grid (API Status & CLI Cron Status) */
.admin-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 992px) {
    .admin-info-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 20px;
    }
}

/* Admin Card Header Group System */
.admin-info-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.card-header-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
}

.card-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-main {
    flex: 1;
    min-width: 0;
}

.card-header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.card-header-title-row h3,
.card-header-title-row h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.card-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #374151;
    color: #d1d5db;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.card-header-btn:hover {
    background: #1f2937;
    border-color: #4b5563;
    color: #ffffff;
}

/* Mobile: Icon sits alongside Title on Row 1, Button wraps on Row 2 directly under Title */
@media (max-width: 768px) {
    .admin-info-card {
        padding: 16px 14px;
    }

    .card-header-group {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .card-header-icon {
        width: 32px;
        height: 32px;
        margin-top: 1px;
    }

    .card-header-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .card-header-title-row h3,
    .card-header-title-row h4 {
        font-size: 0.88rem;
    }

    .card-header-btn {
        padding: 4px 10px;
        font-size: 0.74rem;
        gap: 4px;
    }
}

/* Admin Data Tables Grid (Users & Domains) */
.admin-tables-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1100px) {
    .admin-tables-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

.admin-table-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .admin-table-card {
        padding: 14px 10px !important;
    }
}

/* Admin Settings 2-Column Grid */
.admin-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 1024px) {
    .admin-settings-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* Admin Tab Navigation */
.admin-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .admin-tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        margin-bottom: 16px;
        gap: 8px;
    }
    .admin-tab-nav::-webkit-scrollbar {
        display: none;
    }
    .admin-tab-nav .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 8px 14px;
    }
}

/* Responsive Form Rows */
.form-row-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.form-row-3col {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-width: 0;
}

@media (max-width: 640px) {
    .form-row-2col,
    .form-row-3col {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

/* Admin Table Container & Styling */
.admin-table-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-radius: 8px;
    background: transparent;
    display: block;
    box-sizing: border-box;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: auto;
}

.admin-table th {
    padding: 10px 8px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: none; /* Strictly sentence case */
    border-bottom: 1px solid #1f2937;
    background: transparent;
    letter-spacing: normal;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #1f2937;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* PC / Large Screen: No horizontal scroll, display all content fully */
@media (min-width: 769px) {
    .admin-table-container {
        overflow-x: visible;
    }
    
    .admin-table {
        min-width: 100%;
    }
}

/* Mobile & Small Screens: Enable internal touch scroll */
@media (max-width: 768px) {
    .admin-table-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        touch-action: pan-x pan-y !important;
        position: relative !important;
    }

    .admin-table {
        min-width: 520px !important;
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px !important;
        white-space: nowrap !important;
    }
}

/* Admin Cron Metrics */
.admin-cron-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .admin-cron-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .admin-cron-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Health Banner Responsive */
.admin-health-banner {
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 640px) {
    .admin-health-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 12px;
    }
    .admin-health-banner .badge {
        align-self: flex-start;
    }
}

/* ==========================================================================
   Avatar Crop Modal & Cropper.js Dark Styling
   ========================================================================== */
.avatar-crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.85);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.avatar-crop-modal.active {
    display: flex;
}

.avatar-crop-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.avatar-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #1f2937;
}

.avatar-crop-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.avatar-crop-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.avatar-crop-close:hover {
    color: #ffffff;
    background: #1f2937;
}

.avatar-crop-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar-crop-container {
    width: 100%;
    height: 280px;
    background: #0b0f19;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1f2937;
}

.avatar-crop-container img {
    max-width: 100%;
    display: block;
}

/* Cropper.js Circular View Box Overlay */
.cropper-view-box {
    border-radius: 50% !important;
    outline: 2px solid #10b981 !important;
    outline-color: rgba(16, 185, 129, 0.9) !important;
}

.cropper-face {
    border-radius: 50% !important;
    background-color: transparent !important;
}

.cropper-line,
.cropper-point {
    display: none !important;
}

.cropper-bg {
    background-image: none !important;
    background-color: #0b0f19 !important;
}

.cropper-modal {
    background-color: rgba(11, 15, 25, 0.75) !important;
    opacity: 1 !important;
}

/* Toolbar & Zoom Slider */
.avatar-crop-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

.crop-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1f2937;
    border: 1px solid #374151;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crop-tool-btn:hover {
    background: #374151;
    color: #ffffff;
    border-color: #4b5563;
}

.crop-zoom-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.crop-zoom-slider {
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: #1f2937;
    outline: none;
    accent-color: #10b981;
    cursor: pointer;
}

.avatar-crop-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #1f2937;
    background: #0e1422;
}

@media (max-width: 480px) {
    .avatar-crop-card {
        max-width: 100%;
    }
    
    .avatar-crop-container {
        height: 240px;
    }
    
    .avatar-crop-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .avatar-crop-footer .button {
        width: 100%;
        justify-content: center;
    }
}

/* Status Text Helpers */
.text-success {
    color: #34d399 !important;
}

.text-info {
    color: #60a5fa !important;
}

.text-muted {
    color: #9ca3af !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.danger-text, .text-danger {
    color: #f87171 !important;
}

/* Pagination Styling */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    background: #111827;
    border: 1px solid #1f2937;
    color: #d1d5db;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.pagination-btn:hover:not(:disabled) {
    background: #1f2937;
    border-color: #374151;
    color: #ffffff;
}

.pagination-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 34px;
    color: #6b7280;
    font-size: 0.85rem;
    user-select: none;
}

/* Bulk Selection & Action Bar */
.row-select-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1px solid #4b5563;
    background: #0b0f19;
    accent-color: #10b981;
    cursor: pointer;
    vertical-align: middle;
}

.bulk-action-bar {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 92vw;
    animation: slideUpBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBar {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.bulk-action-bar-content {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bulk-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 14px;
    border-right: 1px solid #334155;
}

.bulk-badge {
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
}

.bulk-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .bulk-action-bar {
        bottom: 16px;
        width: calc(100% - 32px);
    }
    .bulk-action-bar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .bulk-selected-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #334155;
        padding-bottom: 8px;
        justify-content: space-between;
    }
    .bulk-action-buttons {
        justify-content: space-between;
    }
    .bulk-action-buttons .button {
        flex: 1;
        padding: 8px 6px;
        font-size: 0.76rem;
        justify-content: center;
    }
}

/* ==========================================================================
   Light Theme Design Tokens & Universal Component Overrides
   ========================================================================== */
[data-theme="light"] {
    color-scheme: light !important;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --primary: #10b981;
    --primary-hover: #059669;
}

[data-theme="light"] html,
[data-theme="light"] body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Headings & Brand Titles in Light Mode */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .brand-title,
[data-theme="light"] .auth-header h2,
[data-theme="light"] .auth-card h2,
[data-theme="light"] .auth-brand-title {
    color: #0f172a !important;
}

/* Universal Text Overrides for Hardcoded Light Colors */
[data-theme="light"] strong:not(.badge):not(.bulk-badge),
[data-theme="light"] .domain-name-clickable,
[data-theme="light"] .user-name {
    color: #0f172a !important;
}

[data-theme="light"] p,
[data-theme="light"] span:not(.badge):not(.bulk-badge):not(.toggle-switch-slider):not(.btn-spinner),
[data-theme="light"] label:not(.toggle-switch-label),
[data-theme="light"] small,
[data-theme="light"] .muted,
[data-theme="light"] .user-role {
    color: #475569;
}

/* Inline Dark Colors Overrides */
[data-theme="light"] [style*="color: #fff"]:not(.badge):not(.button-primary):not(.button-danger):not(.bulk-badge):not(.avatar):not(.avatar-circle):not(.btn-primary),
[data-theme="light"] [style*="color: #ffffff"]:not(.badge):not(.button-primary):not(.button-danger):not(.bulk-badge):not(.avatar):not(.avatar-circle):not(.btn-primary),
[data-theme="light"] [style*="color:#fff"]:not(.badge):not(.button-primary):not(.button-danger):not(.bulk-badge):not(.avatar):not(.avatar-circle):not(.btn-primary),
[data-theme="light"] [style*="color:#ffffff"]:not(.badge):not(.button-primary):not(.button-danger):not(.bulk-badge):not(.avatar):not(.avatar-circle):not(.btn-primary) {
    color: #0f172a !important;
}

[data-theme="light"] [style*="background: #0b0f19"],
[data-theme="light"] [style*="background: #111827"],
[data-theme="light"] [style*="background: #1f2937"],
[data-theme="light"] [style*="background:#0b0f19"],
[data-theme="light"] [style*="background:#111827"],
[data-theme="light"] [style*="background:#1f2937"] {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] [style*="border: 1px solid #1f2937"],
[data-theme="light"] [style*="border: 1px solid #1e293b"],
[data-theme="light"] [style*="border: 1px solid #374151"],
[data-theme="light"] [style*="border-color: #1f2937"],
[data-theme="light"] [style*="border-color: #1e293b"],
[data-theme="light"] [style*="border-color: #374151"],
[data-theme="light"] [style*="border-top: 1px solid #1f2937"],
[data-theme="light"] [style*="border-bottom: 1px solid #1f2937"],
[data-theme="light"] [style*="border-left: 2px solid #1f2937"],
[data-theme="light"] [style*="border: 0; border-top: 1px solid #1f2937"],
[data-theme="light"] hr,
[data-theme="light"] .section-divider {
    border-color: #e2e8f0 !important;
}

/* Sidebar in Light Mode */
[data-theme="light"] .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .sidebar-brand {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .sidebar-brand .brand-title {
    color: #0f172a !important;
}

[data-theme="light"] .nav-category {
    color: #94a3b8 !important;
}

[data-theme="light"] .nav-link {
    color: #475569 !important;
}

[data-theme="light"] .nav-link:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

[data-theme="light"] .nav-link.active {
    color: #ffffff !important;
    background: #10b981 !important;
}

[data-theme="light"] .nav-link.active svg {
    color: #ffffff !important;
}

[data-theme="light"] .sidebar-user {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Top Bar in Light Mode */
[data-theme="light"] .top-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .page-header-info h1 {
    color: #0f172a !important;
}

[data-theme="light"] .page-header-info p {
    color: #64748b !important;
}

[data-theme="light"] .mobile-toggle {
    color: #0f172a !important;
}

/* Panels & Cards in Light Mode */
[data-theme="light"] .panel,
[data-theme="light"] .admin-stat-card,
[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .panel-head h2,
[data-theme="light"] .stat-content strong {
    color: #0f172a !important;
}

[data-theme="light"] .stat-content small {
    color: #64748b !important;
}

/* Tables in Light Mode */
[data-theme="light"] .table-wrap {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

[data-theme="light"] table th,
[data-theme="light"] th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] table td,
[data-theme="light"] td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] table tbody tr:hover td,
[data-theme="light"] tbody tr:hover td {
    background: #f8fafc !important;
}

[data-theme="light"] table tbody tr:last-child td,
[data-theme="light"] tbody tr:last-child td {
    border-bottom: none !important;
}

/* Form Controls & Inputs in Light Mode */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="datetime-local"],
[data-theme="light"] input[type="time"],
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .form-control,
[data-theme="light"] .input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] .form-control:focus,
[data-theme="light"] .input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}

/* Buttons in Light Mode */
[data-theme="light"] .button-primary,
[data-theme="light"] .btn-primary {
    background: #10b981 !important;
    color: #ffffff !important;
}

[data-theme="light"] .button-primary *,
[data-theme="light"] .btn-primary * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

[data-theme="light"] .button-danger,
[data-theme="light"] .btn-danger,
[data-theme="light"] .button.button-danger,
[data-theme="light"] button.button-danger,
[data-theme="light"] a.button-danger,
[data-theme="light"] .domain-modal-footer .button-danger,
[data-theme="light"] .modal-footer .button-danger {
    background: #dc2626 !important;
    border: 1px solid #b91c1c !important;
    color: #ffffff !important;
}

[data-theme="light"] .button-danger *,
[data-theme="light"] .btn-danger *,
[data-theme="light"] .button.button-danger *,
[data-theme="light"] button.button-danger *,
[data-theme="light"] a.button-danger *,
[data-theme="light"] .domain-modal-footer .button-danger *,
[data-theme="light"] .modal-footer .button-danger * {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

[data-theme="light"] .button-danger:hover,
[data-theme="light"] .btn-danger:hover,
[data-theme="light"] .domain-modal-footer .button-danger:hover,
[data-theme="light"] .modal-footer .button-danger:hover {
    background: #b91c1c !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
}

[data-theme="light"] .button-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .button-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .button-ghost {
    color: #475569 !important;
}

[data-theme="light"] .button-ghost:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .toast-message {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #10b981 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .toast-message span {
    color: #0f172a !important;
}

[data-theme="light"] .toast-message svg {
    color: #10b981;
}

[data-theme="light"] .toast-message.error {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #fee2e2 !important;
    border-left: 4px solid #ef4444 !important;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.12) !important;
}

[data-theme="light"] .toast-message.error span {
    color: #991b1b !important;
}

[data-theme="light"] .toast-message.error svg {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
}

/* Dropdowns in Light Mode */
[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .dropdown-item {
    color: #334155 !important;
}

[data-theme="light"] .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .dropdown-divider {
    border-top: 1px solid #e2e8f0 !important;
}

/* Modals in Light Mode */
[data-theme="light"] .domain-modal-backdrop,
[data-theme="light"] .modal-backdrop {
    background: rgba(15, 23, 42, 0.45) !important;
}

[data-theme="light"] .domain-modal-content,
[data-theme="light"] .modal-content,
[data-theme="light"] .cropper-modal-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .domain-modal-header,
[data-theme="light"] .cropper-modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

[data-theme="light"] .domain-modal-header h3,
[data-theme="light"] .cropper-modal-header h3 {
    color: #0f172a !important;
}

[data-theme="light"] .domain-modal-footer,
[data-theme="light"] .cropper-modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

[data-theme="light"] .modal-close-btn {
    color: #64748b !important;
}

[data-theme="light"] .modal-close-btn:hover {
    color: #0f172a !important;
}

[data-theme="light"] .modal-detail-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .modal-detail-item strong {
    color: #0f172a !important;
}

[data-theme="light"] .modal-detail-item #modalNameservers {
    color: #1e293b !important;
}

[data-theme="light"] .modal-detail-item #modalRdapUrl {
    color: #64748b !important;
}

[data-theme="light"] .modal-detail-label {
    color: #64748b !important;
}

[data-theme="light"] .modal-detail-value {
    color: #0f172a !important;
}

/* Toolbar & Pagination in Light Mode */
[data-theme="light"] .domain-toolbar,
[data-theme="light"] #domainToolbar {
    background: transparent !important;
}

[data-theme="light"] #liveSearchInput {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] #btnToggleBulkSelect,
[data-theme="light"] .filter-dropdown summary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] #domainPaginationWrapper {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pagination-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .pagination-btn:hover:not(:disabled) {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

[data-theme="light"] .pagination-btn.active {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* Toggle Switch in Light Mode */
[data-theme="light"] .toggle-switch-slider {
    background-color: #cbd5e1 !important;
}

/* Floating Bulk Action Bar in Light Mode */
[data-theme="light"] .bulk-action-bar-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .bulk-selected-info span {
    color: #0f172a !important;
}

[data-theme="light"] .bulk-selected-info {
    border-right: 1px solid #e2e8f0 !important;
}

/* Checkbox in Light Mode */
[data-theme="light"] .row-select-checkbox {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
}

/* Empty State in Light Mode */
[data-theme="light"] .empty-state {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .empty-state p {
    color: #64748b !important;
}

/* Auth Cards in Light Mode */
[data-theme="light"] .auth-wrapper {
    background: #f8fafc !important;
}

[data-theme="light"] .auth-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

/* Settings & Profile in Light Mode */
[data-theme="light"] .settings-tabs {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .tab-btn {
    color: #64748b !important;
}

[data-theme="light"] .tab-btn:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

[data-theme="light"] .tab-btn.active {
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .avatar-uploader-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .avatar-uploader-preview {
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .avatar-uploader-info div {
    color: #0f172a !important;
}

[data-theme="light"] .avatar-uploader-hint {
    color: #64748b !important;
}

[data-theme="light"] .user-avatar-hero h3 {
    color: #0f172a !important;
}

[data-theme="light"] .user-avatar-hero p {
    color: #64748b !important;
}

[data-theme="light"] .profile-detail-item .detail-info strong {
    color: #0f172a !important;
}

[data-theme="light"] .profile-detail-item .detail-info small {
    color: #64748b !important;
}

[data-theme="light"] .profile-detail-item .detail-icon {
    background: #f1f5f9 !important;
    border: none !important;
    color: #3b82f6 !important;
}

[data-theme="light"] .stat-icon,
[data-theme="light"] .card-header-icon,
[data-theme="light"] .modal-domain-icon {
    border: none !important;
}

[data-theme="light"] .backup-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .backup-item strong {
    color: #0f172a !important;
}

[data-theme="light"] .backup-item small {
    color: #64748b !important;
}

/* Date & Time Picker SVG in Light Mode */
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="month"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="week"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' x2='16' y1='2' y2='6'%3E%3C/line%3E%3Cline x1='8' x2='8' y1='2' y2='6'%3E%3C/line%3E%3Cline x1='3' x2='21' y1='10' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
}

[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Theme Toggle Button in Light Mode (Borderless) */
[data-theme="light"] .theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #6366f1 !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    border: none !important;
    color: #4f46e5 !important;
}

/* Base Data & Backup Component Styles */
.backup-card {
    background: #0b0f19;
    border: 1px solid #1f2937;
    transition: all 0.2s ease;
}

.drop-zone {
    border: 2px dashed #374151;
    background: #0f172a;
}

.backup-duplicate-box {
    background: #0f172a;
    border: 1px solid #1e293b;
}

.settings-events-box {
    background: #0b0f19;
    border: 1px solid #1f2937;
}

/* ==========================================================================
   Admin Panel & Data/Backup Specific Light Mode Overrides
   ========================================================================== */
[data-theme="light"] .card,
[data-theme="light"] .admin-info-card,
[data-theme="light"] .admin-table-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .avatar-crop-card,
[data-theme="light"] .backup-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer,
[data-theme="light"] .avatar-crop-header,
[data-theme="light"] .avatar-crop-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Data & Backup DropZone in Light Mode */
[data-theme="light"] .drop-zone,
[data-theme="light"] #dropZone {
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
}

[data-theme="light"] .drop-zone:hover,
[data-theme="light"] #dropZone:hover {
    background: #f1f5f9 !important;
    border-color: #10b981 !important;
}

[data-theme="light"] .backup-duplicate-box,
[data-theme="light"] .settings-events-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] #selectedFileName {
    color: #0f172a !important;
}

/* Admin Tabs Navigation */
[data-theme="light"] .admin-tab-nav {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .admin-tab-nav .tab-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
}

[data-theme="light"] .admin-tab-nav .tab-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .admin-tab-nav .tab-btn.active {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

/* Provider & Mail Driver Option Cards */
[data-theme="light"] .provider-card-option,
[data-theme="light"] .mail-driver-option {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .provider-card-option:hover,
[data-theme="light"] .mail-driver-option:hover {
    background: #f8fafc !important;
}

[data-theme="light"] label.provider-card-option[style*="rgba(59, 130, 246, 0.08)"],
[data-theme="light"] label.provider-card-option[style*="rgba(16, 185, 129, 0.08)"],
[data-theme="light"] label.provider-card-option[style*="rgba(6, 182, 212, 0.08)"],
[data-theme="light"] label.provider-card-option[style*="rgba(139, 92, 246, 0.08)"] {
    background: #f0fdf4 !important;
    border-color: #10b981 !important;
}

[data-theme="light"] label.mail-driver-option[style*="rgba(59, 130, 246, 0.08)"],
[data-theme="light"] label.mail-driver-option[style*="rgba(168, 85, 247, 0.08)"] {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

/* Admin Tables */
[data-theme="light"] .admin-table {
    background: #ffffff !important;
}

[data-theme="light"] .admin-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .admin-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .admin-table tbody tr:hover td {
    background: #f8fafc !important;
}

[data-theme="light"] .admin-table tbody tr:last-child td {
    border-bottom: none !important;
}

[data-theme="light"] .admin-table tbody td strong {
    color: #0f172a !important;
}

/* Code, Pre & Terminal Logs in Admin Mode */
[data-theme="light"] pre,
[data-theme="light"] code {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] #testResultData,
[data-theme="light"] #testMailResultData {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .admin-cron-metrics > div {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .admin-cron-metrics strong {
    color: #0f172a !important;
}

[data-theme="light"] .admin-health-banner {
    border-color: #cbd5e1 !important;
}

/* Zoom Slider & Cropper Controls */
[data-theme="light"] .avatar-crop-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .crop-tool-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .crop-tool-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* CLI Command Box & Section Dividers */
.cli-command-box {
    background: #0b0f19;
    border: 1px solid #1f2937;
}

[data-theme="light"] .cli-command-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

[data-theme="light"] hr,
[data-theme="light"] .section-divider {
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    opacity: 0.8 !important;
}

/* Bulk Delete Modal Names List */
.bulk-delete-names-list {
    background: #0b0f19;
    border: 1px solid #1f2937;
    color: #d1d5db;
}

[data-theme="light"] .bulk-delete-names-list {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

/* ==========================================================================
   TDTracking High-Converting Modern Landing Page Styles
   ========================================================================== */

.landing-body {
    background-color: var(--bg-main);
    color: var(--text);
    overflow-x: clip;
    position: relative;
    padding-top: 72px;
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Ambient Glows */
.landing-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

.glow-orb-1 {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 450px;
    background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
}

.glow-orb-2 {
    top: 800px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
}

.glow-orb-3 {
    top: 1800px;
    right: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
}

/* Navigation Bar */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.96);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.landing-navbar.scrolled {
    background: rgba(11, 15, 25, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: #374151;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.45));
}

.brand-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-nav-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.landing-nav-item:hover {
    color: #10b981;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-nav-login {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5e7eb;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.landing-nav-login:hover {
    color: #10b981;
    background: rgba(255, 255, 255, 0.05);
}

.landing-btn-cta, .landing-btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.mobile-menu-toggle:focus,
.mobile-menu-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-menu-toggle:hover {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.3);
        color: #34d399;
    }
}

.mobile-menu-toggle:active {
    transform: scale(0.9);
}

.mobile-menu-toggle.is-active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
}

.mobile-menu-toggle svg,
.mobile-menu-toggle i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: inherit;
}

.mobile-menu-toggle.is-active svg,
.mobile-menu-toggle.is-active i {
    transform: rotate(90deg);
    color: #34d399 !important;
}

.mobile-menu-toggle .mobile-toggle-icon-menu {
    display: inline-block !important;
}

.mobile-menu-toggle .mobile-toggle-icon-close {
    display: none !important;
}

.mobile-menu-toggle.is-active .mobile-toggle-icon-menu {
    display: none !important;
}

.mobile-menu-toggle.is-active .mobile-toggle-icon-close {
    display: inline-block !important;
}

/* Mobile Drawer with Smooth Slide & Blur */
.mobile-nav-drawer {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid #1f2937;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.25s ease, 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-nav-drawer.open {
    max-height: 480px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-drawer-inner {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-item {
    font-size: 1rem;
    font-weight: 500;
    color: #e5e7eb;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    transform: translateX(-12px);
    opacity: 0;
}

.mobile-nav-item:hover {
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
    transform: translateX(4px);
}

.mobile-nav-item-icon {
    width: 18px;
    height: 18px;
    color: #10b981;
}

.mobile-nav-drawer.open .mobile-nav-item {
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav-drawer.open .mobile-nav-item:nth-child(1) { transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.05s; }
.mobile-nav-drawer.open .mobile-nav-item:nth-child(2) { transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.10s; }
.mobile-nav-drawer.open .mobile-nav-item:nth-child(3) { transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }
.mobile-nav-drawer.open .mobile-nav-item:nth-child(4) { transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.20s; }

.mobile-nav-auth {
    opacity: 0;
    transform: translateY(8px);
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-drawer.open .mobile-nav-auth { 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.22s; 
    opacity: 1; 
    transform: translateY(0); 
}

.mobile-nav-divider {
    height: 1px;
    background: #1f2937;
    margin: 8px 0;
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 995;
    will-change: opacity;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 80px 0 60px;
    text-align: center;
}

.hero-badge-wrap {
    margin-bottom: 24px;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-headline {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 22px 0;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.button-large {
    padding: 13px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
}

.hero-trust-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-check-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Interactive Domain Scanner Widget */
.hero-scanner-card {
    max-width: 820px;
    margin: 48px auto 0;
    background: #111827;
    border: 1px solid rgba(55, 65, 81, 0.8);
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    text-align: left;
}

.scanner-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.scanner-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 0.01em;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.scanner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.35;
}

.scanner-badge-protocol {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.scanner-input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: stretch;
}

.scanner-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.scanner-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 5;
    transition: color 0.2s ease;
}

.scanner-input-wrap:focus-within .scanner-input-icon {
    color: #10b981;
}

input.scanner-text-field,
.scanner-input-wrap input[type="text"],
.scanner-text-field {
    width: 100% !important;
    height: 48px !important;
    padding-left: 48px !important;
    padding-right: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #0b0f19 !important;
    border: 1px solid #374151 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-family: 'JetBrains Mono', monospace !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}

input.scanner-text-field::placeholder,
.scanner-input-wrap input[type="text"]::placeholder,
.scanner-text-field::placeholder {
    color: var(--text-dim) !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 0.9rem !important;
    opacity: 0.85 !important;
}

input.scanner-text-field:focus,
.scanner-input-wrap input[type="text"]:focus,
.scanner-text-field:focus {
    outline: none !important;
    border-color: #10b981 !important;
    background: #111827 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

.scanner-btn-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 26px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.scanner-btn-submit:hover {
    background: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.scanner-btn-submit:active {
    transform: translateY(0);
}

.btn-check-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: #ffffff;
}

.btn-check-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    color: #ffffff;
}

.btn-check-content[style*="display: none"],
.btn-check-content[style*="display:none"] {
    display: none !important;
}

.btn-check-loading[style*="display: none"],
.btn-check-loading[style*="display:none"] {
    display: none !important;
}

.btn-check-loading[style*="display: inline-flex"],
.btn-check-loading[style*="display:inline-flex"],
.btn-check-loading[style*="display: flex"],
.btn-check-loading[style*="display:flex"] {
    display: inline-flex !important;
}

.scanner-btn-submit.is-loading .btn-check-content {
    display: none !important;
}

.scanner-btn-submit.is-loading .btn-check-loading {
    display: inline-flex !important;
}

.btn-check-content svg,
.btn-check-loading svg,
.btn-check-content i,
.btn-check-loading i {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    color: #ffffff !important;
}

.quick-chips-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-chips-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    flex-shrink: 0;
}

.quick-chips-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.quick-chip-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #34d399;
}

/* Scanner Results Pane */
.scanner-result-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(55, 65, 81, 0.6);
}

.result-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.result-domain-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-status-icon {
    width: 28px;
    height: 28px;
    color: #10b981;
    flex-shrink: 0;
}

.result-domain-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
}

.result-domain-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.result-metric-card {
    background: #0b0f19;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 12px 14px;
}

.metric-card-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.metric-card-val {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
}

.result-cta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.result-footer-text i {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Key Metrics Section */
.stats-section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.4);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 16px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Section Shared Headers */
.features-section,
.how-it-works-section,
.preview-section,
.faq-section {
    padding: 96px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.section-pill-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #10b981;
    padding: 4px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 9999px;
    margin-bottom: 14px;
}

.section-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 14px 0;
}

.section-subheading {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.feature-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(55, 65, 81, 0.7);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.feature-icon-wrap i {
    width: 24px;
    height: 24px;
}

.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.feature-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #374151;
    transform: translateY(-4px);
}

.step-number-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.06);
}

.step-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.step-icon-circle i {
    width: 26px;
    height: 26px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.step-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* Dashboard Mockup Showcase */
.dashboard-mockup-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.mockup-chrome-header {
    background: #0b0f19;
    border-bottom: 1px solid #1f2937;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chrome-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.chrome-url-bar {
    background: #1f2937;
    border-radius: 6px;
    padding: 5px 18px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 480px;
    min-width: 0;
    overflow: hidden;
}

.chrome-url-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-lock-icon {
    width: 13px;
    height: 13px;
    color: #10b981;
    flex-shrink: 0;
}

.chrome-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.live-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mockup-content-body {
    padding: 28px;
}

.mockup-top-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mini-stat-box {
    background: #0b0f19;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.mini-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 3px;
    color: #ffffff;
}

.mockup-table-container {
    background: #0b0f19;
    border: 1px solid #1f2937;
    border-radius: 12px;
    overflow-x: auto;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.mockup-table th {
    padding: 12px 16px;
    background: #111827;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 1px solid #1f2937;
}

.mockup-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #1f2937;
}

.mockup-table tr.row-warning {
    background: rgba(245, 158, 11, 0.04);
}

.mock-tag {
    background: rgba(55, 65, 81, 0.5);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #d1d5db;
}

/* FAQ Accordion */
.faq-accordion-wrap {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item.active {
    border-color: #374151;
}

.faq-question-btn {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.02rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.15s ease;
}

.faq-question-btn:hover {
    color: #34d399;
}

.faq-arrow-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow-icon {
    transform: rotate(180deg);
    color: #10b981;
}

.faq-answer-pane {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer-pane {
    padding-bottom: 20px;
}

.faq-answer-pane p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Final CTA Section */
.final-cta-section {
    padding: 80px 0;
}

.final-cta-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 26px;
    padding: 68px 32px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.cta-card-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.cta-headline {
    font-size: clamp(2rem, 4.2vw, 2.7rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.cta-subtext {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin: 0 0 36px 0;
    line-height: 1.65;
}

.cta-action-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
.landing-footer {
    background: #080c14;
    border-top: 1px solid var(--border);
    padding: 72px 0 32px;
    position: relative;
    z-index: 1;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 16px 0 20px;
    max-width: 340px;
}

.footer-system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 14px;
    border-radius: 9999px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.footer-col-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-link-list a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link-list a:hover {
    color: #10b981;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(31, 41, 55, 0.6);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.86rem;
    color: var(--text-dim);
}

.footer-badges {
    display: flex;
    gap: 8px;
}

.footer-tech-badge {
    font-size: 0.76rem;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 6px;
}

/* ==========================================================================
   Legal & Information Pages (Terms, Privacy, Security, Support)
   ========================================================================== */

.legal-hero {
    padding: 130px 0 50px;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.legal-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.legal-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.legal-breadcrumb a:hover {
    color: #10b981;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.legal-subtitle {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 0 28px 0;
}

.legal-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-dim);
    padding-top: 16px;
    border-top: 1px solid rgba(31, 41, 55, 0.8);
}

.legal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-meta-item svg {
    width: 15px;
    height: 15px;
    color: #10b981;
}

.legal-main-section {
    padding: 60px 0 100px;
    position: relative;
    z-index: 1;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-toc-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.legal-toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-toc-title svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-toc-link {
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
}

.legal-toc-link:hover,
.legal-toc-link.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
    border-left-color: #10b981;
    font-weight: 600;
}

.legal-help-card {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 20px;
}

.legal-help-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.legal-help-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.legal-article {
    min-width: 0;
}

.legal-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.legal-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-section-icon svg {
    width: 18px;
    height: 18px;
}

.legal-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.legal-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.legal-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.legal-card:hover {
    border-color: #374151;
    transform: translateY(-2px);
}

.legal-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-card-title svg {
    width: 18px;
    height: 18px;
    color: #10b981;
}

.legal-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.legal-callout {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10b981;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.legal-callout-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-callout-title svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.legal-callout-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.legal-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-check-item svg {
    width: 16px;
    height: 16px;
    color: #10b981;
    margin-top: 4px;
    flex-shrink: 0;
}

.legal-nav-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.legal-nav-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-nav-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    background: rgba(16, 185, 129, 0.04);
}

.legal-nav-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 500;
}

.legal-nav-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-nav-title svg {
    width: 16px;
    height: 16px;
    color: #10b981;
    transition: transform 0.2s ease;
}

.legal-nav-card:hover .legal-nav-title svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Homepage Auth Modal Popup (Login, Register, Forgot Password)
   ========================================================================== */

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(5, 8, 16, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s;
    will-change: opacity;
}

.auth-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    transform: translate3d(0, 12px, 0);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 32px 32px 28px;
    box-sizing: border-box;
    will-change: transform;
    backface-visibility: hidden;
}

.auth-modal-backdrop.active .auth-modal-card {
    transform: translate3d(0, 0, 0);
}

.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}

.auth-modal-close:hover {
    background: #1f2937;
    color: #ffffff;
    border-color: #4b5563;
    transform: rotate(90deg);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-modal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.auth-modal-logo {
    width: 32px;
    height: 32px;
}

.auth-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.auth-modal-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.auth-modal-tabs {
    display: flex;
    background: #0b0f19;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}

.auth-modal-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-modal-tab-btn:hover {
    color: #ffffff;
}

.auth-modal-tab-btn.active {
    background: #1f2937;
    color: #10b981;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.auth-modal-view {
    display: none;
}

.auth-modal-view.active {
    display: block;
    animation: fadeInModalView 0.2s ease;
}

@keyframes fadeInModalView {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left !important;
}

.auth-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left !important;
    width: 100%;
}

.auth-input-group label span {
    text-align: left !important;
}

.auth-input-wrap {
    position: relative;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input-field {
    width: 100% !important;
    height: 44px !important;
    padding: 0 40px 0 42px !important;
    background: #0b0f19 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.auth-input-field:focus {
    outline: none !important;
    border-color: #10b981 !important;
    background: #111827 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #10b981;
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.auth-pwd-toggle:hover {
    color: #ffffff;
}

.auth-modal-footer-link {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-modal-footer-link a,
.auth-modal-footer-link button {
    color: #10b981;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.auth-modal-footer-link a:hover,
.auth-modal-footer-link button:hover {
    color: #34d399;
    text-decoration: underline;
}

.auth-forgot-link {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    font-size: 0.84rem !important;
}

.auth-forgot-link:hover {
    color: #10b981 !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   Landing Page Light Theme Overrides
   ========================================================================== */

[data-theme="light"] .landing-body {
    background-color: #f8fafc;
    color: #0f172a;
}

[data-theme="light"] .landing-navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .landing-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-bottom-color: #cbd5e1;
}

[data-theme="light"] .brand-logo-text {
    color: #0f172a !important;
}

[data-theme="light"] .landing-nav-login {
    color: #334155;
}

[data-theme="light"] .landing-nav-login:hover {
    color: #059669;
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mobile-menu-toggle {
    color: #0f172a;
}

[data-theme="light"] .mobile-nav-drawer {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .mobile-nav-item {
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .mobile-nav-divider {
    background: #e2e8f0;
}

[data-theme="light"] .hero-headline {
    color: #0f172a !important;
}

[data-theme="light"] .hero-scanner-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .scanner-title,
[data-theme="light"] .result-domain-title,
[data-theme="light"] .metric-card-val,
[data-theme="light"] .result-footer-text,
[data-theme="light"] .stat-value,
[data-theme="light"] .section-heading,
[data-theme="light"] .feature-title,
[data-theme="light"] .step-title,
[data-theme="light"] .mini-stat-val,
[data-theme="light"] .plan-name,
[data-theme="light"] .price-amount,
[data-theme="light"] .reviewer-name,
[data-theme="light"] .faq-question-btn,
[data-theme="light"] .cta-headline,
[data-theme="light"] .footer-col-title {
    color: #0f172a !important;
}

[data-theme="light"] input.scanner-text-field,
[data-theme="light"] .scanner-input-wrap input[type="text"],
[data-theme="light"] .scanner-text-field {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] input.scanner-text-field:focus,
[data-theme="light"] .scanner-input-wrap input[type="text"]:focus,
[data-theme="light"] .scanner-text-field:focus {
    background: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .quick-chip-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

[data-theme="light"] .quick-chip-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #059669;
}

[data-theme="light"] .result-metric-card,
[data-theme="light"] .mini-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .stats-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .feature-card,
[data-theme="light"] .step-card,
[data-theme="light"] .faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .step-number-badge {
    color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dashboard-mockup-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mockup-chrome-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .chrome-url-bar {
    background: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .mockup-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .mockup-table th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .mockup-table td {
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

[data-theme="light"] .mockup-table td.text-white {
    color: #0f172a !important;
}

[data-theme="light"] .mock-tag {
    background: #f1f5f9;
    color: #475569;
}

[data-theme="light"] .final-cta-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .landing-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .footer-bottom-row {
    border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .footer-tech-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
}

[data-theme="light"] .footer-system-status {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #059669;
}

[data-theme="light"] .hero-pill-badge {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .scanner-badge-protocol {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
    color: #2563eb;
}

[data-theme="light"] .scanner-result-box {
    border-top-color: #e2e8f0;
}

[data-theme="light"] .section-pill-tag {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .live-pill {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

[data-theme="light"] .faq-item.active {
    border-color: #cbd5e1;
}

[data-theme="light"] .landing-navbar {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .landing-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: #cbd5e1;
}

[data-theme="light"] .mobile-menu-toggle {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

@media (hover: hover) and (pointer: fine) {
    [data-theme="light"] .mobile-menu-toggle:hover {
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
        color: #059669;
    }
}

[data-theme="light"] .mobile-menu-toggle.is-active {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #059669 !important;
}

[data-theme="light"] .mobile-menu-toggle.is-active svg,
[data-theme="light"] .mobile-menu-toggle.is-active i {
    color: #059669 !important;
}

[data-theme="light"] .mobile-nav-drawer {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mobile-nav-item {
    color: #334155;
}

[data-theme="light"] .mobile-nav-item:hover {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .mobile-nav-divider {
    background: #e2e8f0;
}

[data-theme="light"] .legal-hero {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 65%);
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .legal-title,
[data-theme="light"] .legal-toc-title,
[data-theme="light"] .legal-help-title,
[data-theme="light"] .legal-section-title,
[data-theme="light"] .legal-card-title,
[data-theme="light"] .legal-callout-title,
[data-theme="light"] .legal-nav-title {
    color: #0f172a !important;
}

[data-theme="light"] .legal-toc-card,
[data-theme="light"] .legal-card,
[data-theme="light"] .legal-nav-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .legal-toc-link {
    color: #64748b;
}

[data-theme="light"] .legal-toc-link:hover,
[data-theme="light"] .legal-toc-link.active {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

[data-theme="light"] .legal-help-card {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .legal-callout {
    background: rgba(16, 185, 129, 0.06);
    border-left-color: #059669;
}

[data-theme="light"] .legal-text,
[data-theme="light"] .legal-card-desc,
[data-theme="light"] .legal-callout-text,
[data-theme="light"] .legal-check-item,
[data-theme="light"] .legal-help-desc {
    color: #475569 !important;
}

[data-theme="light"] .auth-modal-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .auth-modal-close {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .auth-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .auth-modal-title {
    color: #0f172a !important;
}

[data-theme="light"] .auth-modal-tabs {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .auth-modal-tab-btn {
    color: #64748b;
}

[data-theme="light"] .auth-modal-tab-btn.active {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-input-group label {
    color: #334155;
}

[data-theme="light"] .auth-input-field {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .auth-input-field:focus {
    background: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .auth-forgot-link {
    color: #64748b !important;
}

[data-theme="light"] .auth-forgot-link:hover {
    color: #059669 !important;
}

[data-theme="light"] .global-loading-overlay {
    background: rgba(248, 250, 252, 0.82);
}

[data-theme="light"] .global-loading-text {
    color: #0f172a;
    text-shadow: none;
}

/* ==========================================================================
   Responsive Breakpoints for Landing Page
   ========================================================================== */

@media (max-width: 992px) {
    .landing-nav-links,
    .landing-nav-login,
    .landing-btn-cta,
    .landing-btn-dashboard {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .mockup-top-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-toc-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-scanner-card {
        padding: 18px 16px;
        margin: 32px 0 0;
        border-radius: 14px;
    }

    .scanner-card-header {
        gap: 8px;
        margin-bottom: 14px;
    }

    .scanner-header-top-row {
        gap: 8px;
    }

    .live-indicator {
        font-size: 0.72rem;
    }

    .scanner-badge-protocol {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .scanner-title {
        font-size: 1.12rem;
        line-height: 1.35;
    }

    .scanner-input-box {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    .scanner-input-wrap {
        width: 100%;
    }

    input.scanner-text-field,
    .scanner-input-wrap input[type="text"],
    .scanner-text-field {
        height: 46px !important;
        font-size: 0.88rem !important;
        padding-left: 44px !important;
        padding-right: 14px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .scanner-input-icon {
        left: 14px;
        width: 16px;
        height: 16px;
    }

    .scanner-btn-submit {
        width: 100% !important;
        height: 46px !important;
        justify-content: center !important;
        padding: 0 16px !important;
        font-size: 0.92rem !important;
    }

    .quick-chips-wrap {
        gap: 6px;
        margin-top: 12px;
    }

    .quick-chips-label {
        font-size: 0.78rem;
    }

    .quick-chip-btn {
        padding: 3px 8px;
        font-size: 0.74rem;
    }

    .result-metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .result-cta-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .result-cta-footer .button {
        width: 100%;
        justify-content: center;
    }

    .dashboard-mockup-wrapper {
        border-radius: 14px;
    }

    .mockup-chrome-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .chrome-dots {
        gap: 5px;
    }

    .dot {
        width: 9px;
        height: 9px;
    }

    .chrome-url-bar {
        padding: 4px 8px;
        font-size: 0.72rem;
        gap: 5px;
    }

    .live-pill {
        font-size: 0.68rem;
        padding: 2px 7px;
    }

    .mockup-content-body {
        padding: 16px;
    }

    .mockup-top-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .mockup-table {
        min-width: 580px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .features-section,
    .how-it-works-section,
    .preview-section,
    .faq-section {
        padding: 60px 0;
    }

    .final-cta-card {
        padding: 40px 20px;
    }

    .toast-container {
        top: 14px;
        right: 14px;
        left: 14px;
        align-items: stretch;
    }

    .toast-message {
        font-size: 0.85rem;
        padding: 10px 14px;
        transform: translateY(-20px);
        width: 100%;
        box-sizing: border-box;
    }

    .toast-message.show {
        transform: translateY(0);
    }

    .legal-hero {
        padding: 100px 0 36px;
    }

    .legal-meta-row {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-toc-list {
        grid-template-columns: 1fr;
    }

    .legal-nav-cards {
        grid-template-columns: 1fr;
    }
}



