/* ============================================================
   USC-PLAN — Design System & Main Styles
   ============================================================ */

/* === CSS Variables === */
:root {
    --color-primary:        #1A56DB;
    --color-primary-light:  #EBF5FF;
    --color-primary-dark:   #1239A5;
    --color-primary-rgb:    26, 86, 219;
    --color-white:          #FFFFFF;
    --color-bg:             #F8FAFC;
    --color-text:           #1A202C;
    --color-text-muted:     #64748B;
    --color-text-light:     #94A3B8;
    --color-border:         #E2E8F0;
    --color-success:        #22C55E;
    --color-success-light:  #F0FDF4;
    --color-warning:        #F59E0B;
    --color-warning-light:  #FFFBEB;
    --color-danger:         #EF4444;
    --color-danger-light:   #FEF2F2;
    --color-manual:         #3B82F6;
    --color-manual-light:   #EFF6FF;
    --color-empty:          #CBD5E1;
    --color-empty-bg:       #F8FAFC;
    --radius-sm:            4px;
    --radius-md:            8px;
    --radius-lg:            12px;
    --radius-xl:            16px;
    --shadow-sm:            0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:            0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg:            0 8px 24px rgba(0,0,0,0.12);
    --sidebar-width:        260px;
    --navbar-height:        60px;
    --transition-fast:      150ms ease;
    --transition-base:      250ms ease;
    --transition-slow:      400ms ease;
}

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

/* === Typography === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-text);
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

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

/* === Layout: Admin con Sidebar === */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--color-white);
    border-right: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header img {
    height: 32px;
    width: 32px;
}

.sidebar-header .app-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-primary);
}

.sidebar-event-name {
    padding: 12px 24px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.sidebar-nav a.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    padding: 32px;
    max-width: 100%;
    transition: margin-left var(--transition-base);
}

/* === Collapsed Sidebar (Desktop) === */
.layout.collapsed .sidebar { width: 68px; }
.layout.collapsed .main-content { margin-left: 68px; }
.layout.collapsed .sidebar-header { padding: 16px 0; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.layout.collapsed .sidebar-header .sidebar-logo-section { display: flex; justify-content: center; width: 100%; }
.layout.collapsed .sidebar-header .sidebar-toggle { margin-left: 0 !important; }
.layout.collapsed .sidebar-header .app-name { display: none; }
.layout.collapsed .sidebar-event-name { display: none; }
.layout.collapsed .sidebar-nav a { padding: 10px 0; justify-content: center; }
.layout.collapsed .sidebar-nav a span { display: none; }
.layout.collapsed .sidebar-footer { flex-direction: column; justify-content: center; gap: 16px; padding: 16px 0; }
.layout.collapsed .sidebar-footer .nav-label { display: none; }
.layout.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.desktop-only { display: block; }

/* === Top Navbar (mobile + public pages) === */
.navbar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 32px;
    width: 32px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar-links a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.hamburger svg {
    width: 24px;
    height: 24px;
    color: var(--color-text);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* === Page header === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.5rem;
}

.page-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === Grid utilities === */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Settings page 2-col layout */
.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* === Text utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-small { font-size: 0.8125rem; }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-primary { color: var(--color-primary); }
.font-bold { font-weight: 600; }

/* === Spacing === */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* === Landing page === */
.landing-page {
    min-height: 100vh;
}
.landing-page #theme-toggle {
    display: none;
}

.hero {
    background: linear-gradient(135deg, #1A56DB 0%, #1239A5 100%);
    color: #ffffff;
    padding: 80px 24px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.section {
    padding: 64px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 48px;
    color: var(--color-text);
}

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

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.step-card h3 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

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

.feature-card {
    padding: 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card h4 {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* === Auth pages === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--color-bg);
}

.auth-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--color-border);
}

.auth-card h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-size: 0.9375rem;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* === Footer === */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* === Step indicator === */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-indicator-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-indicator-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.step-indicator-item.active .step-indicator-dot {
    background: var(--color-primary);
    color: #ffffff;
}

.step-indicator-item.completed .step-indicator-dot {
    background: var(--color-success);
    color: #ffffff;
}

.step-indicator-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.step-indicator-item.active .step-indicator-label {
    color: var(--color-primary);
}

.step-indicator-line {
    width: 40px;
    height: 2px;
    background: var(--color-border);
    align-self: center;
}

.step-indicator-item.completed + .step-indicator-line {
    background: var(--color-success);
}

/* === Shift colors === */
.shift-auto {
    background: var(--color-success-light) !important;
    border-left: 3px solid var(--color-success);
}

.shift-manual {
    background: var(--color-manual-light) !important;
    border-left: 3px solid var(--color-manual);
}

.shift-empty {
    background: var(--color-empty-bg) !important;
    border-left: 3px solid var(--color-empty);
    color: var(--color-text-light);
}

/* === Container === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Viewer specific === */
.viewer-page {
    padding-bottom: 80px; /* space for bottom nav */
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 90;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.bottom-nav a.active {
    color: var(--color-primary);
}

.bottom-nav a svg {
    width: 22px;
    height: 22px;
}

/* === Pulsing indicator === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* === Loading spinner === */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

/* === Dark Mode === */
[data-theme="dark"] {
    --color-bg:             #0D1117;
    --color-white:          #161B22;
    --color-surface-2:      #1C2333;
    --color-text:           #E6EDF3;
    --color-text-muted:     #8B949E;
    --color-text-light:     #4D5566;
    --color-border:         #30363D;
    --color-border-light:   #21262D;
    --color-primary:        #3B82F6;
    --color-primary-dark:   #2563EB;
    --color-primary-light:  rgba(59, 130, 246, 0.15);
    --color-primary-rgb:    59, 130, 246;
    --color-success-light:  rgba(34, 197, 94, 0.12);
    --color-warning-light:  rgba(245, 158, 11, 0.12);
    --color-danger-light:   rgba(239, 68, 68, 0.12);
    --color-manual-light:   rgba(59, 130, 246, 0.12);
    --color-empty-bg:       #161B22;
    --color-empty:          #4D5566;
    --shadow-sm:            0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    --shadow-md:            0 4px 16px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
    --shadow-lg:            0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Smooth theme transition */
[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
    border-color: var(--color-border);
}

[data-theme="dark"] body {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Smooth transition on theme switch */
body {
    transition: background var(--transition-base), color var(--transition-base);
}

/* === Sidebar dark === */
[data-theme="dark"] .sidebar {
    background: #161B22;
    border-right: 1px solid #30363D;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .sidebar-header {
    border-bottom-color: #30363D;
    background: #0D1117;
}

[data-theme="dark"] .sidebar-header .app-name {
    color: #3B82F6;
}

[data-theme="dark"] .sidebar-event-name {
    border-bottom-color: #30363D;
    color: #8B949E;
    background: rgba(0,0,0,0.15);
}

[data-theme="dark"] .sidebar-nav a {
    color: #8B949E;
}

[data-theme="dark"] .sidebar-nav a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #E6EDF3;
}

[data-theme="dark"] .sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border-left-color: #3B82F6;
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: #30363D;
    background: #0D1117;
}

/* === Navbar dark === */
[data-theme="dark"] .navbar {
    background: #161B22;
    border-bottom-color: #30363D;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

[data-theme="dark"] .navbar-brand {
    color: #3B82F6;
}

[data-theme="dark"] .navbar-links a {
    color: #8B949E;
}

[data-theme="dark"] .navbar-links a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #E6EDF3;
}

/* === Auth pages dark === */
[data-theme="dark"] .auth-container {
    background: var(--color-bg);
}

[data-theme="dark"] .auth-card {
    background: #161B22;
    border-color: #30363D;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* === Footer dark === */
[data-theme="dark"] .footer {
    background: #161B22;
    border-top-color: #30363D;
}

[data-theme="dark"] .bottom-nav {
    background: #161B22;
    border-top-color: #30363D;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

/* === Main content dark === */
[data-theme="dark"] .main-content {
    background: #0D1117;
}

/* === Heading colors === */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
    color: #E6EDF3;
}

/* === Links dark === */
[data-theme="dark"] a {
    color: #3B82F6;
}

/* === Scrollbar dark === */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0D1117;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #30363D;
    border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #4D5566;
}

/* === Step indicator dark === */
[data-theme="dark"] .step-card {
    background: #161B22;
    border-color: #30363D;
}

[data-theme="dark"] .feature-card {
    background: #161B22;
    border-color: #30363D;
}

/* === Theme Toggle Button === */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle { color: #8B949E; }
[data-theme="dark"] .theme-toggle:hover { background: rgba(59,130,246,0.15); color: #3B82F6; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* === Language Switcher === */
.lang-toggle {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
}

.lang-toggle:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

[data-theme="dark"] .lang-toggle {
    color: #8B949E;
}

[data-theme="dark"] .lang-toggle:hover {
    background: rgba(59,130,246,0.15);
    color: #3B82F6;
}


/* === Hidden utility === */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Mobile Navbar */
.main-content .navbar { display: none; align-items: center; justify-content: space-between; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 12px 24px; }

/* === Modern SVG Icons === */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.icon-inline {
    margin-right: 6px;
}
.icon-lg {
    width: 1.5em;
    height: 1.5em;
}
.icon-xl {
    width: 2em;
    height: 2em;
}
.icon-danger {
    color: var(--color-danger);
}

.footer-discrete {
    margin-top: auto;
    padding: 24px 0 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}
.footer-discrete a {
    color: inherit;
    text-decoration: underline;
}
.footer-discrete a:hover {
    color: var(--color-text);
}

/* === PWA Install Button & Popup === */
.pwa-install-btn[hidden] {
    display: none !important;
}
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-right: 4px;
}
.pwa-install-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

[data-theme="dark"] .pwa-install-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.4);
}
[data-theme="dark"] .pwa-install-btn:hover {
    background: #3B82F6;
    color: #ffffff;
}

[data-theme="dark"] #pwa-install-popup,
[data-theme="dark"] #ios-install-banner {
    background: #161B22 !important;
    color: #E6EDF3 !important;
    border-color: #30363D !important;
}
[data-theme="dark"] #pwa-install-popup p {
    color: #8B949E !important;
}
[data-theme="dark"] #pwa-popup-dismiss {
    border-color: #30363D !important;
    color: #C9D1D9 !important;
}



