@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
@import url('/assets/fontawesome/css/solid.min.css');
@import url('/assets/fontawesome/css/regular.min.css');
@import url('/assets/fontawesome/css/fontawesome.min.css');

/* ── Design tokens ──────────────────────────────────────────────────── */
:root {
    /* Core palette (unchanged) */
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #11131a;
    --muted: #525866;
    --border: #e2e5ed;
    --primary: #0f6df2;
    --primary-dark: #0b4eb3;
    --accent: #11a27f;
    --warning: #f3b21c;
    --danger: #d64550;

    /* Elevation */
    --shadow-xs: 0 1px 3px rgba(17, 19, 26, 0.06), 0 1px 2px rgba(17, 19, 26, 0.04);
    --shadow-sm: 0 2px 8px rgba(17, 19, 26, 0.08), 0 1px 3px rgba(17, 19, 26, 0.04);
    --shadow-md: 0 8px 24px rgba(17, 19, 26, 0.10), 0 3px 8px rgba(17, 19, 26, 0.05);
    --shadow-lg: 0 24px 64px rgba(17, 19, 26, 0.16), 0 8px 24px rgba(17, 19, 26, 0.08);

    /* Motion */
    --ease: 0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    text-decoration: underline;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.brand-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(15, 109, 242, 0.85);
    background: rgba(15, 109, 242, 0.09);
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(15, 109, 242, 0.18);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.main-nav a {
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--ease), background var(--ease);
}

.main-nav a:hover {
    color: var(--text);
    background: var(--bg);
    text-decoration: none;
}

.main-nav a.active {
    color: var(--primary);
    background: rgba(15, 109, 242, 0.08);
}

.nav-app-builder {
    margin-right: 0.5rem;
}

.settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.55rem;
    min-width: 34px;
    font-size: 16px;
}

.nav-divider {
    display: inline-block;
    width: 1px;
    height: 1.1em;
    background: var(--border, rgba(128,128,128,0.3));
    opacity: 0.5;
    margin-right: 0.5rem;
    align-self: center;
}

/* ── Nav dropdowns ────────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    transition: color var(--ease), background var(--ease);
    white-space: nowrap;
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
    color: var(--text);
    background: var(--bg);
}

.nav-dropdown-btn.active {
    color: var(--primary);
    background: rgba(15, 109, 242, 0.08);
}

.nav-dropdown-btn svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    opacity: 0.6;
}

.nav-dropdown.open .nav-dropdown-btn svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 188px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    box-shadow: var(--shadow-md);
    padding: 0.375rem;
    z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-section {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    padding: 0.5rem 0.75rem 0.2rem;
    opacity: 0.7;
}

.nav-dropdown-section:not(:first-child) {
    margin-top: 0.25rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 0.4rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}

.nav-dropdown-menu a.active {
    color: var(--primary);
    background: rgba(15, 109, 242, 0.08);
}

.user-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-name {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Content ─────────────────────────────────────────────────────────── */
.content {
    padding: 2rem;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    background-image: linear-gradient(135deg, rgba(15, 109, 242, 0.04) 0%, transparent 55%);
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-xs);
}

.hero h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    letter-spacing: -0.025em;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── App grid ────────────────────────────────────────────────────────── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.125rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
    position: relative;
    overflow: hidden;
}

.app-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--ease);
}

.app-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(15, 109, 242, 0.2);
}

.app-card:hover::after {
    opacity: 1;
}

.app-card-body {
    padding: 1.4rem 1.4rem 0.75rem;
}

.app-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.app-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.app-status {
    margin: 1rem 0 0.5rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(17, 162, 127, 0.1);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.75;
    flex-shrink: 0;
}

.status-pill.warning {
    background: rgba(243, 178, 28, 0.14);
    color: var(--warning);
}

.status-pill.critical {
    background: rgba(214, 69, 80, 0.12);
    color: var(--danger);
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.app-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--bg);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid var(--border);
}

.app-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.4rem 1.4rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    transition: background var(--ease), box-shadow var(--ease), border-color var(--ease), color var(--ease);
    text-decoration: none !important;
}

.btn:active {
    transform: scale(0.98);
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 109, 242, 0.28);
}

.btn.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(15, 109, 242, 0.38);
    text-decoration: none !important;
}

.btn.secondary {
    background: rgba(17, 162, 127, 0.1);
    color: var(--accent);
    border: 1px solid rgba(17, 162, 127, 0.2);
}

.btn.secondary:hover {
    background: rgba(17, 162, 127, 0.18);
    border-color: rgba(17, 162, 127, 0.3);
}

.btn.secondary.disabled,
.btn.secondary[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.danger {
    background: rgba(214, 69, 80, 0.08);
    color: var(--danger);
    border: 1px solid rgba(214, 69, 80, 0.25);
}

.btn.danger:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 10px rgba(214, 69, 80, 0.32);
    border-color: var(--danger);
}

.btn.ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn.ghost:hover {
    background: var(--bg);
    color: var(--text);
    border-color: #cdd1db;
}

.btn.link {
    background: transparent;
    color: var(--primary);
    padding: 0;
    box-shadow: none;
}

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-warning {
    background: rgba(243, 178, 28, 0.1);
    color: #7a5100;
    border: 1px solid rgba(243, 178, 28, 0.35);
}

.alert-success {
    background: rgba(17, 162, 127, 0.1);
    color: #0a4535;
    border: 1px solid rgba(17, 162, 127, 0.3);
}

.alert-error {
    background: rgba(214, 69, 80, 0.08);
    color: var(--danger);
    border: 1px solid rgba(214, 69, 80, 0.3);
}

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-xs);
}

.empty-state h2 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.empty-state p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Hint text ───────────────────────────────────────────────────────── */
.hint {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Auth / Login ────────────────────────────────────────────────────── */
.auth-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    background-color: #eef1fa;
    background-image:
        radial-gradient(ellipse 90% 50% at 50% -5%, rgba(15, 109, 242, 0.16) 0%, transparent 65%),
        radial-gradient(circle at 1px 1px, rgba(15, 109, 242, 0.08) 1px, transparent 0);
    background-size: 100% 100%, 28px 28px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.auth-logo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 109, 242, 0.35);
}

.auth-wordmark {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.035em;
}

.auth-panel {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 2.5rem 2.25rem;
    border: 1px solid rgba(226, 229, 237, 0.8);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.auth-panel h1,
.auth-heading {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.auth-intro {
    margin: 0 0 1.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    gap: 0.4rem;
}

.auth-form label span {
    margin-bottom: 0;
}

.auth-form input {
    margin-top: 0;
    border-radius: 0.75rem;
    border: 1.5px solid var(--border);
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--ease), box-shadow var(--ease);
    outline: none;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 109, 242, 0.12);
}

.auth-form select {
    margin-top: 0;
    border-radius: 0.75rem;
    border: 1.5px solid var(--border);
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.auth-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 109, 242, 0.12);
}

.auth-panel .btn.primary {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.95rem;
    border-radius: 0.875rem;
    margin-top: 0.35rem;
}

/* ── App detail ──────────────────────────────────────────────────────── */
.app-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow-xs);
}

.app-detail .lead {
    color: var(--muted);
}

.detail-meta dt {
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.detail-meta dd {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.tag-chip {
    display: inline-block;
    background: var(--bg);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-right: 0.3rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ── Tools card ──────────────────────────────────────────────────────── */
.tools-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-xs);
}

/* ── Delete form ─────────────────────────────────────────────────────── */
.delete-app-form {
    margin: 0;
}

.delete-app-form .btn {
    width: 100%;
}

/* ── Diagnostics ─────────────────────────────────────────────────────── */
.network-throughput {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.875rem;
    color: var(--muted);
}

.network-throughput span {
    display: flex;
    gap: 0.35rem;
    line-height: 1.4;
}

.power-rails {
    margin-top: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.power-rails li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text);
}

.power-rails li span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.power-rails li span:last-child {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

.service-item > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
}

.service-item > div:first-child strong {
    font-size: 0.95rem;
}

.service-item > div:first-child span {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 !important;
    background: rgba(17, 19, 26, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.22s ease both;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.settings-section h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.settings-section .btn {
    margin-top: 0.75rem;
}

.settings-section + .settings-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

/* ── Hamburger button (hidden on desktop) ────────────────────────────── */
.nav-toggle {
    display: none;
}

/* ── Dark theme ──────────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg: #0e1018;
    --surface: #161920;
    --text: #e6e8f0;
    --muted: #8892aa;
    --border: #252838;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.45);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.55);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.65);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.75);
}

[data-theme="dark"] .auth-body {
    background-color: #0e1018;
    background-image:
        radial-gradient(ellipse 90% 50% at 50% -5%, rgba(15,109,242,0.10) 0%, transparent 65%),
        radial-gradient(circle at 1px 1px, rgba(15,109,242,0.04) 1px, transparent 0);
}

[data-theme="dark"] .modal-backdrop {
    background: rgba(0,0,0,0.62);
}

[data-theme="dark"] .alert-warning { color: #f3b21c; }
[data-theme="dark"] .alert-success { color: var(--accent); }
[data-theme="dark"] .alert-error   { color: var(--danger); }

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.55rem;
    min-width: 34px;
}

.theme-toggle .icon-sun  { display: none; font-size: 16px; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun  { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        height: auto;
        padding: 0 1rem;
        gap: 0;
        align-items: center;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.75rem 0;
    }

    /* Hamburger button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        padding: 6px;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 0.5rem;
        flex-shrink: 0;
        order: 2;
    }

    .nav-toggle:hover {
        background: var(--bg);
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--muted);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
        transform-origin: center;
    }

    /* Animate to X when open */
    .site-header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .site-header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .site-header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .user-actions {
        flex: 0 0 auto;
        order: 3;
        padding: 0.75rem 0;
    }

    /* Nav: hidden by default, drops down when open */
    .main-nav {
        order: 4;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid var(--border);
        /* Hidden state */
        display: none;
    }

    .nav-divider { display: none; }
    .nav-app-builder { margin-right: 0; }

    /* Dropdown: inline in mobile nav */
    .nav-dropdown {
        display: contents;
    }
    .nav-dropdown-btn {
        display: none;
    }
    .nav-dropdown-section {
        padding: 0.6rem 0.75rem 0.15rem;
        font-size: 0.65rem;
    }
    .nav-dropdown-menu {
        display: contents;
    }
    .nav-dropdown-menu a {
        padding: 0.55rem 0.75rem 0.55rem 1.25rem;
        font-size: 0.875rem;
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.55rem 0.75rem;
        border-radius: 0.5rem;
    }

    .content {
        padding: 1.25rem;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .app-card-actions {
        flex-direction: column;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 2rem 1.5rem;
    }
}
