@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;700;800&display=swap');

:root {
    --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    --bg-1: #f7fbff;
    --bg-2: #eaf3ff;
    --ink: #081120;
    --muted: #5b6b82;
    --line: rgba(123, 145, 175, 0.2);
    --card: rgba(255, 255, 255, 0.82);
    --shadow: 0 24px 60px rgba(16, 28, 52, 0.12);
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    color-scheme: light;
}

body.admin-app {
    background:
        radial-gradient(circle at 15% 18%, rgba(96, 165, 250, 0.2), transparent 22%),
        radial-gradient(circle at 84% 15%, rgba(250, 204, 21, 0.18), transparent 18%),
        radial-gradient(circle at 78% 78%, rgba(59, 130, 246, 0.12), transparent 20%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.admin-shell {
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card,
.admin-card,
.admin-stat-card,
.admin-action-card,
.admin-sidebar,
.admin-header {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.auth-card {
    width: min(1160px, 100%);
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.auth-hero {
    position: relative;
    padding: 56px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30%),
        radial-gradient(circle at 22% 18%, rgba(245, 158, 11, 0.14), transparent 20%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 244, 255, 0.72));
}

.auth-panel {
    padding: 56px;
    background: rgba(255, 255, 255, 0.92);
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-chip,
.admin-chip,
.admin-tone,
.admin-sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-chip,
.admin-chip {
    padding: 8px 12px;
    color: #fff;
}

.sky {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.emerald {
    background: linear-gradient(135deg, #34d399, #059669);
}

.amber {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.indigo {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
}

.rose {
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.slate {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.auth-title {
    margin: 22px 0 14px;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.auth-copy,
.auth-note,
.dashboard-note,
.admin-description {
    color: #64748b;
    line-height: 1.7;
}

.auth-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
}

.admin-stat-card {
    border-radius: 24px;
    padding: 22px;
}

.auth-stat-value {
    margin-top: 12px;
    font-size: 2.25rem;
    font-weight: 900;
    color: #0f172a;
}

.auth-heading {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    color: #020617;
}

.auth-subtitle,
.admin-subtitle {
    margin: 8px 0 0;
    color: #475569;
}

.auth-alert {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(251, 113, 133, 0.25);
    background: rgba(254, 226, 226, 0.72);
    color: #be123c;
    font-weight: 600;
}

.auth-form {
    margin-top: 28px;
    display: grid;
    gap: 20px;
}

.auth-field {
    display: grid;
    gap: 10px;
}

.admin-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.admin-input {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.94);
    padding: 15px 16px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.auth-check input {
    width: 16px;
    height: 16px;
}

.admin-button,
.admin-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.w-full {
    width: 100%;
}

.admin-button {
    border: 0;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.admin-button-secondary {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
}

.admin-button:hover,
.admin-button-secondary:hover {
    transform: translateY(-1px);
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 288px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.76);
}

.sidebar-brand {
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.sidebar-brand h2 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 1;
}

.sidebar-brand p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.sidebar-nav {
    display: grid;
    gap: 12px;
    flex: 1;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    color: #0f172a;
}

.admin-sidebar-link.is-active {
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(239, 246, 255, 0.96);
}

.admin-sidebar-badge,
.admin-tone {
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    color: #fff;
}

.admin-sidebar-badge {
    background: rgba(148, 163, 184, 0.14);
    color: #334155;
}

.sidebar-footer {
    padding-top: 8px;
}

.dashboard-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.78);
}

.header-title {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 900;
    color: #020617;
}

.header-label {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #64748b;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-pill {
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(239, 246, 255, 0.9);
    padding: 10px 16px;
    font-weight: 700;
    color: #1d4ed8;
}

.dashboard-content {
    padding: 24px;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
}

.dashboard-stats {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-label {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.stat-value {
    margin-top: 12px;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    color: #020617;
}

.dashboard-main {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr 0.8fr;
}

.admin-card {
    border-radius: 28px;
    padding: 24px;
}

.section-heading {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #020617;
}

.section-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-actions {
    margin-top: 24px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-action-card {
    border-radius: 24px;
    padding: 18px;
}

.admin-action-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.dashboard-notes {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.note-item {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    line-height: 1.6;
}

.sidebar-toggle {
    display: none;
}

.auth-page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(1180px, 100%);
    border-radius: 36px;
    overflow: hidden;
    grid-template-columns: 1.05fr 0.95fr;
}

.auth-hero {
    padding: 56px;
    background:
        radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.18), transparent 24%),
        radial-gradient(circle at 76% 18%, rgba(250, 204, 21, 0.12), transparent 22%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(235, 244, 255, 0.72));
}

.auth-panel {
    padding: 56px;
    background: rgba(255, 255, 255, 0.9);
    border-left: 1px solid var(--line);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.auth-logo {
    width: min(82%, 320px);
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.auth-title,
.section-heading,
.header-title,
.hero-title,
.customer-name {
    font-family: var(--font-display);
    letter-spacing: -0.04em;
}

.auth-title {
    margin: 18px 0 14px;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.94;
}

.auth-copy,
.auth-note,
.dashboard-note,
.admin-description,
.hero-subtitle,
.tip-copy,
.feed-item p,
.action-copy,
.customer-subtitle {
    color: var(--muted);
    line-height: 1.7;
}

.auth-grid {
    margin-top: 34px;
}

.auth-stat-value {
    font-family: var(--font-display);
    letter-spacing: -0.04em;
}

.auth-heading,
.section-heading {
    font-family: var(--font-display);
}

.auth-heading {
    margin: 0;
}

.auth-subtitle {
    margin-bottom: 24px;
}

.auth-hero .auth-brand {
    min-height: 480px;
}

.admin-input {
    border-radius: 18px;
    border-color: rgba(123, 145, 175, 0.28);
    background: rgba(255, 255, 255, 0.96);
    padding: 15px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
    transform: translateY(-1px);
}

.admin-button {
    border-radius: 18px;
    padding: 15px 18px;
    font-family: var(--font-display);
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
}

.customer-dashboard {
    display: flex;
    justify-content: center;
    width: 100%;
}

.customer-shell {
    position: relative;
    width: min(520px, 100%);
    padding: 18px 18px 22px;
    border-radius: 38px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(241, 247, 255, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 28px 80px rgba(10, 22, 40, 0.14);
    overflow: hidden;
}

.customer-shell::before {
    content: "";
    position: absolute;
    inset: 12px 18px auto;
    height: 220px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.12), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.customer-topbar,
.customer-profile,
.customer-hero-copy,
.customer-guidance,
.customer-tip-card,
.customer-actions,
.customer-feed {
    position: relative;
    z-index: 1;
}

.customer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.customer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #0f4c81, #0b67c2);
    font-weight: 800;
}

.customer-name {
    margin: 0;
    font-size: 1.05rem;
    color: #0b1120;
}

.customer-subtitle {
    margin: 2px 0 0;
    font-size: 0.86rem;
}

.customer-icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.customer-bell {
    width: 14px;
    height: 14px;
    border: 2px solid #1f2937;
    border-bottom: 0;
    border-radius: 10px 10px 4px 4px;
    position: relative;
}

.customer-bell::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1f2937;
    transform: translateX(-50%);
}

.customer-hero-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.customer-weather {
    position: relative;
    height: 116px;
    margin-bottom: 4px;
}

.weather-sun {
    position: absolute;
    top: 10px;
    left: 18px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 36%, #fff9c9 0%, #ffd86b 42%, #ffb648 72%, rgba(255, 182, 72, 0) 73%);
    box-shadow: 0 18px 34px rgba(255, 190, 82, 0.34);
}

.weather-cloud {
    position: absolute;
    top: 34px;
    left: 18px;
    width: 76px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f2f6fb);
    box-shadow: 18px 8px 28px rgba(15, 23, 42, 0.08);
}

.weather-cloud::before,
.weather-cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.weather-cloud::before {
    width: 30px;
    height: 30px;
    top: -14px;
    left: 6px;
}

.weather-cloud::after {
    width: 40px;
    height: 40px;
    top: -18px;
    right: 8px;
}

.customer-hero-copy {
    display: grid;
    gap: 4px;
}

.hero-date,
.guidance-badge,
.guidance-label,
.section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #64748b;
}

.hero-date {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.hero-title {
    margin: 4px 0 0;
    font-size: clamp(2rem, 8vw, 3rem);
    color: #0b1120;
}

.hero-subtitle {
    margin: 0;
    font-size: 0.95rem;
}

.customer-guidance {
    display: grid;
    gap: 12px;
}

.guidance-grid,
.action-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guidance-card,
.action-card,
.customer-tip-card,
.feed-item,
.bottom-link,
.bottom-fab {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.guidance-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    min-height: 90px;
}

.guidance-card strong {
    font-size: 1rem;
    color: #0b1120;
    font-family: var(--font-display);
}

.tone-sky {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(255, 255, 255, 0.95));
}

.tone-emerald {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(255, 255, 255, 0.95));
}

.tone-amber {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(255, 255, 255, 0.95));
}

.tone-indigo {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.18), rgba(255, 255, 255, 0.95));
}

.tone-rose {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(255, 255, 255, 0.95));
}

.tone-slate {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(255, 255, 255, 0.95));
}

.customer-tip-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 22px;
}

.tip-icon,
.action-icon {
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tip-icon {
    width: 34px;
    height: 34px;
}

.tip-copy {
    margin: 6px 0 0;
    font-size: 0.92rem;
}

.customer-actions {
    margin-top: 6px;
    display: grid;
    gap: 12px;
}

.action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    text-align: left;
    cursor: pointer;
}

.action-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.2);
}

.action-title {
    font-weight: 800;
    color: #0b1120;
}

.action-copy {
    font-size: 0.84rem;
}

.customer-feed {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
}

.feed-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    flex: 0 0 auto;
}

.feed-item p {
    margin: 0;
    font-size: 0.9rem;
}

.customer-bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    margin-top: 16px;
    padding: 12px 8px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 251, 255, 0.94) 26%);
}

.bottom-link {
    min-height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    gap: 4px;
    color: #64748b;
}

.bottom-link span {
    font-size: 1rem;
}

.bottom-link small {
    font-size: 0.68rem;
    font-weight: 700;
}

.bottom-link.is-active {
    color: #0b1120;
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(255, 255, 255, 0.98);
}

.bottom-fab {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

@media (max-width: 1024px) {
    .auth-card,
    .dashboard-main,
    .dashboard-stats,
    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .auth-hero,
    .auth-panel {
        padding: 32px;
    }

    .customer-shell {
        width: min(100%, 620px);
    }

    .action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .auth-page,
    .dashboard-content,
    .admin-header {
        padding: 16px;
    }

    .auth-card {
        border-radius: 24px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-title {
        font-size: 2.4rem;
    }

    .auth-hero .auth-brand {
        min-height: 260px;
    }

    .customer-shell {
        padding: 14px;
        border-radius: 30px;
    }

    .customer-hero-card,
    .customer-tip-card {
        padding: 18px;
    }

    .guidance-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }

    .customer-bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
