:root {
    --bg: #f6f8f7;
    --surface: #ffffff;
    --surface-muted: #eef7f0;
    --text: #15231a;
    --text-soft: #4d6354;
    --border: rgba(22, 163, 74, 0.12);
    --accent: #16a34a;
    --accent-dark: #15803d;
    --accent-light: #dcfce7;
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(22, 34, 27, 0.14);
    --radius-md: 18px;
    --radius-lg: 28px;
    --navbar-height: 88px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.35s ease, color 0.35s ease;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
        transform 0.3s ease, box-shadow 0.3s ease;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
        transform 0.3s ease, box-shadow 0.3s ease;
}

header,
main,
footer {
    width: 100%;
}

.navbar,
.hero-content,
.slider-section,
.features-section,
.site-footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.navbar {
    min-height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent-dark);
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent-dark);
}

.btn,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
}

.btn {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.2);
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(21, 128, 61, 0.24);
}

.theme-toggle {
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid rgba(22, 163, 74, 0.16);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: #c9f4d5;
    transform: translateY(-2px);
}

.hero-section {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    padding: 4rem 0 3rem;
    background:
        radial-gradient(circle at top left, rgba(134, 239, 172, 0.48), transparent 34%),
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.28), transparent 30%),
        linear-gradient(180deg, #f3fff6 0%, #e7f9ec 45%, #f8fcf8 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.2rem;
    padding: 3rem 1rem;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.hero-content p {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: var(--text-soft);
    max-width: 38rem;
}

.slider-section {
    padding: 2rem 0 1rem;
}

.slider-wrapper {
    position: relative;
    min-height: clamp(280px, 52vw, 580px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #dff4e4;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.3));
}

.slide.active {
    display: block;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 1.5rem;
}

.slider-overlay .btn {
    min-width: 180px;
}

.features-section {
    padding: 4.5rem 0 5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease,
        border-color 0.3s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.card-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.8rem;
    background: var(--accent-light);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.card p {
    color: var(--text-soft);
    font-size: 1rem;
}

.site-footer {
    text-align: center;
    padding: 1.75rem 1rem 2.5rem;
    color: var(--text-soft);
    background: rgba(22, 163, 74, 0.05);
    border-top: 1px solid rgba(22, 163, 74, 0.08);
}

.announcement-bar {
    overflow: hidden;
    padding: 0.8rem 0;
    color: #f0fdf4;
    background: #14532d;
}

.announcement-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: ticker 18s linear infinite;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

body.dark {
    --bg: #111827;
    --surface: #182233;
    --surface-muted: #132032;
    --text: #f3f4f6;
    --text-soft: #c5d0dc;
    --border: rgba(148, 163, 184, 0.18);
    --accent-light: rgba(22, 163, 74, 0.18);
    --shadow-sm: 0 14px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.36);
}

body.dark .navbar {
    background: rgba(17, 24, 39, 0.88);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body.dark .logo {
    color: #86efac;
}

body.dark .nav-links a {
    color: var(--text-soft);
}

body.dark .nav-links a:hover,
body.dark .nav-links a:focus-visible {
    color: #bbf7d0;
}

body.dark .hero-section {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.12), transparent 24%),
        linear-gradient(180deg, #0f172a 0%, #111827 55%, #0b1220 100%);
}

body.dark .theme-toggle {
    color: #dcfce7;
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(134, 239, 172, 0.2);
}

body.dark .theme-toggle:hover,
body.dark .theme-toggle:focus-visible {
    background: rgba(22, 163, 74, 0.28);
}

body.dark .card {
    background: var(--surface);
    border-color: var(--border);
}

body.dark .card-icon {
    background: rgba(22, 163, 74, 0.14);
}

body.dark .site-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem 0;
    }

    .nav-links,
    .nav-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section {
        min-height: auto;
        padding-top: 5rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .navbar,
    .hero-content,
    .slider-section,
    .features-section,
    .site-footer {
        width: min(100% - 1.25rem, 1120px);
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .btn,
    .theme-toggle {
        width: 100%;
    }

    .nav-actions {
        width: 100%;
    }

    .hero-content {
        padding: 2.5rem 0.25rem;
    }

    .hero-content h1 {
        font-size: clamp(2.3rem, 10vw, 3.6rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .slider-wrapper {
        min-height: 240px;
        border-radius: 22px;
    }

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

    .card {
        padding: 1.7rem 1.25rem;
    }
}

.signup-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(134, 239, 172, 0.35), transparent 28%),
        linear-gradient(180deg, #f3fff6 0%, #eef8f0 46%, #f6f8f7 100%);
}

.signup-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

.signup-intro {
    padding: 1rem 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
    font-weight: 600;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--accent);
}

.signup-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.signup-intro h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.signup-copy {
    max-width: 34rem;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.signup-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 163, 74, 0.12);
    border-radius: 32px;
    padding: 1.6rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.role-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem;
    border-radius: 20px;
    background: var(--surface-muted);
}

.role-tab {
    min-height: 52px;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    color: var(--text-soft);
    font-weight: 700;
}

.role-tab.active {
    background: var(--surface);
    color: var(--accent-dark);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.panel-header {
    margin-bottom: 1.4rem;
}

.panel-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.panel-header p {
    color: var(--text-soft);
}

.form-panel,
.verification-panel {
    display: none;
}

.form-panel.active,
.verification-panel:not([hidden]) {
    display: block;
}

.signup-form,
.verification-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.field span {
    font-size: 0.96rem;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #94a3b8;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(22, 163, 74, 0.52);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field-full {
    grid-column: 1 / -1;
}

.form-submit,
.verification-actions .btn {
    width: 100%;
}

.verification-actions {
    display: flex;
}

.signup-card.is-verifying .role-tabs {
    display: none;
}

body.dark .signup-page {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.2), transparent 24%),
        linear-gradient(180deg, #0f172a 0%, #111827 48%, #0b1220 100%);
}

body.dark .signup-card {
    background: rgba(24, 34, 51, 0.92);
    border-color: rgba(148, 163, 184, 0.16);
}

body.dark .signup-eyebrow,
body.dark .role-tabs {
    background: rgba(22, 163, 74, 0.14);
}

body.dark .role-tab {
    color: var(--text-soft);
}

body.dark .role-tab.active {
    background: rgba(255, 255, 255, 0.05);
    color: #bbf7d0;
    box-shadow: none;
}

body.dark .field input,
body.dark .field textarea {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
    color: var(--text);
}

body.dark .field input::placeholder,
body.dark .field textarea::placeholder {
    color: #94a3b8;
}

@media (max-width: 900px) {
    .signup-shell {
        grid-template-columns: 1fr;
    }

    .signup-intro {
        text-align: center;
    }

    .signup-copy {
        margin: 0 auto;
    }

    .back-link,
    .signup-eyebrow {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .signup-page {
        padding: 1rem 0.75rem;
    }

    .signup-card {
        padding: 1rem;
        border-radius: 24px;
    }

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

    .role-tabs {
        grid-template-columns: 1fr;
    }
}

.signup-shell-single {
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.wallet-panel {
    display: none;
}

.wallet-panel.active {
    display: block;
}

.form-message {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(22, 163, 74, 0.08);
    color: var(--accent-dark);
    font-weight: 600;
}

.form-footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-soft);
}

.form-footer a {
    color: var(--accent-dark);
    font-weight: 700;
}

.form-footer a:hover,
.form-footer a:focus-visible {
    color: var(--accent);
}

.dashboard-page {
    min-height: 100vh;
    padding: 2rem 1rem 7rem;
    background:
        radial-gradient(circle at top left, rgba(134, 239, 172, 0.28), transparent 26%),
        linear-gradient(180deg, #f3fff6 0%, #f5f8f6 48%, #eef2ef 100%);
}

.dashboard-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-kicker {
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.dashboard-header h1,
.section-copy h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.dashboard-logout {
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.dashboard-logout:hover,
.dashboard-logout:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card,
.waste-card,
.activity-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card {
    padding: 1.4rem;
}

.stat-icon,
.waste-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.4rem;
    background: var(--accent-light);
    margin-bottom: 0.9rem;
}

.stat-card p,
.wallet-meta,
.wallet-trend p,
.activity-item p {
    color: var(--text-soft);
}

.stat-card h2 {
    font-size: 2rem;
    line-height: 1.1;
}

.wallet-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 45%, #0f8f3a 100%);
    box-shadow: 0 28px 60px rgba(22, 163, 74, 0.28);
}

.wallet-label {
    margin-bottom: 0.4rem;
    font-weight: 600;
    opacity: 0.9;
}

.wallet-balance-card h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    margin-bottom: 0.55rem;
}

.wallet-meta {
    color: rgba(255, 255, 255, 0.78);
}

.wallet-trend {
    text-align: right;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
    color: #14532d;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.88);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(22, 163, 74, 0.2);
}

.action-button:hover,
.action-button:focus-visible {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.action-button-secondary {
    background: var(--surface);
    color: var(--accent-dark);
    border: 1px solid rgba(22, 163, 74, 0.16);
    box-shadow: var(--shadow-sm);
}

.action-button-secondary:hover,
.action-button-secondary:focus-visible {
    background: var(--accent-light);
}

.waste-section,
.activity-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.waste-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.waste-card {
    padding: 1.3rem;
    text-align: center;
}

.waste-icon {
    margin: 0 auto 0.9rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
}

.activity-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.activity-item span {
    white-space: nowrap;
    color: var(--accent-dark);
    font-weight: 700;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 1.5rem));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.7rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(22, 163, 74, 0.08);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.bottom-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 18px;
    color: var(--text-soft);
    font-weight: 700;
}

.bottom-nav-link.active {
    background: var(--accent);
    color: #ffffff;
}

body.dark .form-message {
    background: rgba(22, 163, 74, 0.16);
    color: #dcfce7;
}

body.dark .dashboard-page {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.18), transparent 22%),
        linear-gradient(180deg, #0f172a 0%, #111827 45%, #0b1220 100%);
}

body.dark .dashboard-logout,
body.dark .stat-card,
body.dark .waste-card,
body.dark .activity-item,
body.dark .action-button-secondary,
body.dark .bottom-nav {
    background: var(--surface);
    border-color: var(--border);
}

body.dark .bottom-nav-link {
    color: var(--text-soft);
}

body.dark .bottom-nav-link.active {
    color: #ffffff;
}

@media (max-width: 900px) {
    .signup-shell-single {
        grid-template-columns: 1fr;
    }

    .dashboard-stats,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .waste-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-balance-card,
    .dashboard-header,
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-trend {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .dashboard-page {
        padding: 1rem 0.75rem 6.5rem;
    }

    .dashboard-shell {
        gap: 1rem;
    }

    .dashboard-header h1,
    .section-copy h2 {
        font-size: 1.55rem;
    }

    .dashboard-stats,
    .waste-grid {
        grid-template-columns: 1fr;
    }

    .wallet-balance-card,
    .stat-card,
    .waste-card,
    .activity-item {
        border-radius: 22px;
    }

    .bottom-nav {
        gap: 0.45rem;
        padding: 0.5rem;
    }

    .bottom-nav-link {
        min-height: 46px;
        font-size: 0.9rem;
    }
}

.auth-page,
.utility-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(134, 239, 172, 0.3), transparent 25%),
        linear-gradient(180deg, #f3fff6 0%, #f5f8f6 48%, #eef2ef 100%);
}

.auth-shell,
.utility-shell {
    width: min(1100px, 100%);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: 2rem;
    align-items: start;
}

.auth-shell-login {
    align-items: center;
}

.auth-shell-wide {
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.auth-intro {
    padding: 1rem 0.5rem;
}

.auth-card,
.context-action-card,
.referral-card,
.category-card,
.phrase-word,
.role-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 163, 74, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.auth-card {
    padding: 1.6rem;
}

.auth-form,
.wallet-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.flow-step {
    display: none;
}

.flow-step.active {
    display: block;
}

.role-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.role-card {
    width: 100%;
    padding: 1.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
        background-color 0.3s ease;
}

.role-card:hover,
.role-card.active {
    transform: translateY(-4px);
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

.role-card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--accent-light);
    font-size: 1.4rem;
}

.role-card small {
    color: var(--text-soft);
    line-height: 1.5;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.field select {
    appearance: none;
}

.password-strength-box,
.secret-phrase-card {
    padding: 1rem;
    border-radius: 20px;
    background: var(--surface-muted);
    border: 1px solid rgba(22, 163, 74, 0.1);
}

.password-strength-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.strength-label {
    font-size: 0.95rem;
}

.strength-label.weak {
    color: #dc2626;
}

.strength-label.medium {
    color: #f59e0b;
}

.strength-label.strong {
    color: #16a34a;
}

.strength-meter {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.strength-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar.weak {
    background: #dc2626;
}

.strength-bar.medium {
    background: #f59e0b;
}

.strength-bar.strong {
    background: #16a34a;
}

.strength-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.strength-checklist span.valid {
    color: var(--accent-dark);
    font-weight: 700;
}

.section-mini-header {
    margin-bottom: 0.85rem;
}

.section-mini-header h3 {
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
}

.section-mini-header p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.role-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 5rem;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 700;
}

.secret-phrase-grid,
.confirm-words-grid,
.category-grid,
.transaction-list {
    display: grid;
    gap: 1rem;
}

.secret-phrase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phrase-word {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phrase-word span {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.confirm-words-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #14532d;
    box-shadow: none;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0.25rem 0 0.5rem;
}

.page-subtitle {
    color: var(--text-soft);
    max-width: 42rem;
}

.category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.category-card {
    padding: 1.3rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-4px);
    border-color: rgba(22, 163, 74, 0.24);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.8rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--accent-light);
    font-size: 1.4rem;
}

.context-action-card,
.referral-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem;
}

.wallet-balance-card-large {
    margin-bottom: 1.4rem;
}

.transaction-list {
    grid-template-columns: 1fr;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.transaction-item p {
    color: var(--text-soft);
}

.transaction-item span {
    color: var(--accent-dark);
    font-weight: 700;
    white-space: nowrap;
}

body.dark .auth-page,
body.dark .utility-page {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.18), transparent 22%),
        linear-gradient(180deg, #0f172a 0%, #111827 45%, #0b1220 100%);
}

body.dark .auth-card,
body.dark .context-action-card,
body.dark .referral-card,
body.dark .category-card,
body.dark .phrase-word,
body.dark .role-card,
body.dark .transaction-item {
    background: var(--surface);
    border-color: var(--border);
}

body.dark .password-strength-box,
body.dark .secret-phrase-card {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(148, 163, 184, 0.16);
}

body.dark .field input,
body.dark .field textarea,
body.dark .field select {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.22);
    color: var(--text);
}

body.dark .toggle-password {
    background: rgba(22, 163, 74, 0.18);
    color: #dcfce7;
}

.hero-shell {
    position: relative;
}

.hero-split {
    width: 100%;
    min-height: calc(100vh - var(--navbar-height));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: none;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 15, 12, 0.72) 0%, rgba(8, 15, 12, 0.4) 45%, rgba(8, 15, 12, 0.22) 100%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 6rem 0;
    color: #ffffff;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy p:not(.signup-eyebrow) {
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.24);
}

.nav-links a {
    position: relative;
    font-weight: 700;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.role-entry-section,
.about-section-premium {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0 1rem;
}

.section-copy-center {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 2rem;
}

.section-copy p {
    color: var(--text-soft);
    max-width: 44rem;
}

.role-entry-grid,
.about-grid-premium {
    display: grid;
    gap: 1.4rem;
}

.role-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-entry-card,
.info-card {
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.role-entry-card:hover,
.role-entry-card:focus-visible,
.info-card:hover,
.info-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.role-entry-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 1rem;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--accent-light);
    font-size: 1.5rem;
}

.role-entry-card h3,
.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.role-entry-card p,
.info-card p {
    color: var(--text-soft);
}

.about-grid-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
}

.features-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

body.dark .announcement-bar {
    background: #052e16;
}

body.dark .hero-media::after {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.52) 45%, rgba(2, 6, 23, 0.32) 100%);
}

body.dark .role-entry-card,
body.dark .info-card {
    background: var(--surface);
    border-color: var(--border);
}

@media (max-width: 900px) {
    .auth-shell,
    .auth-shell-wide {
        grid-template-columns: 1fr;
    }

    .role-card-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .secret-phrase-grid,
    .confirm-words-grid {
        grid-template-columns: 1fr;
    }

    .context-action-card,
    .referral-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy {
        padding: 5rem 0;
    }

    .role-entry-grid,
    .about-grid-premium {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-page,
    .utility-page {
        padding: 1rem 0.75rem;
    }

    .auth-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .role-card-grid,
    .category-grid,
    .strength-checklist {
        grid-template-columns: 1fr;
    }

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

    .transaction-item,
    .context-action-card,
    .referral-card {
        border-radius: 20px;
    }

    .hero-copy {
        width: min(100% - 1.25rem, 1120px);
        padding: 4.5rem 0;
    }

    .hero-copy h1 {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .hero-cta {
        flex-direction: column;
    }

    .role-entry-section,
    .about-section-premium,
    .features-section {
        width: min(100% - 1.25rem, 1120px);
        padding-top: 4rem;
    }
}

/* Signup Flow Premium Overrides */
.signup-card-premium {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.role-card-grid-premium {
    margin-bottom: 0.4rem;
}

.signup-details-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.signup-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(22, 163, 74, 0.12);
    background: rgba(22, 163, 74, 0.05);
}

.signup-details-header h3 {
    font-size: 1.2rem;
}

.text-button {
    color: var(--accent-dark);
    font-weight: 700;
}

.text-button:hover,
.text-button:focus-visible {
    color: var(--accent);
}

.consent-grid {
    display: grid;
    gap: 0.9rem;
}

.consent-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(22, 163, 74, 0.12);
    background: rgba(22, 163, 74, 0.05);
    color: var(--text-soft);
}

.consent-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

body.dark .signup-details-header,
body.dark .consent-item {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(148, 163, 184, 0.16);
}

@media (max-width: 900px) {
    .signup-details-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .consent-item {
        align-items: flex-start;
    }
}

.dashboard-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-duo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.status-list,
.profile-grid {
    display: grid;
    gap: 1rem;
}

.status-card,
.profile-card,
.empty-state,
.utility-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.status-pending {
    color: #92400e;
    background: #fef3c7;
}

.status-accepted {
    color: #065f46;
    background: #d1fae5;
}

.status-completed {
    color: #1d4ed8;
    background: #dbeafe;
}

.empty-state {
    padding: 1.4rem;
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 0.35rem;
}

.empty-state p,
.wallet-powered,
.profile-card p,
.status-card p {
    color: var(--text-soft);
}

.wallet-powered {
    font-weight: 600;
}

.profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card {
    padding: 1.2rem;
}

.profile-card h3 {
    margin-top: 0.25rem;
    font-size: 1.05rem;
}

body.dark .status-card,
body.dark .profile-card,
body.dark .empty-state,
body.dark .utility-card {
    background: var(--surface);
    border-color: var(--border);
}

.page-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(5, 46, 22, 0.18);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 9999;
}

.page-loader.visible {
    opacity: 1;
    pointer-events: auto;
}

.page-loader-card {
    min-width: min(92vw, 320px);
    padding: 1.25rem 1.4rem;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.page-loader-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    border: 3px solid rgba(22, 163, 74, 0.18);
    border-top-color: var(--accent);
    animation: page-spin 0.8s linear infinite;
}

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

.orders-list {
    display: grid;
    gap: 1rem;
}

.order-card {
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.order-card-top,
.order-actions,
.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.order-card-top {
    margin-bottom: 0.75rem;
}

.order-card p {
    color: var(--text-soft);
}

.order-meta {
    justify-content: flex-start;
    margin: 0.95rem 0;
}

.order-meta span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.status-paid {
    color: #065f46;
    background: #d1fae5;
}

.status-pending-payment {
    color: #92400e;
    background: #fef3c7;
}

body.dark .page-loader-card,
body.dark .order-card {
    background: var(--surface);
    border-color: var(--border);
}

.page-loader-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    margin: 0;
    padding: 0.85rem 1.1rem;
    text-align: center;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.feedback-button {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 9998;
    padding: 0.85rem 1.15rem;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.feedback-button:hover,
.feedback-button:focus-visible {
    background: var(--accent-dark);
}

body.modal-open {
    overflow: hidden;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
}

.feedback-modal-card {
    width: min(100%, 520px);
    padding: 1.35rem;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.feedback-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.feedback-close {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.feedback-close:hover,
.feedback-close:focus-visible {
    background: rgba(15, 23, 42, 0.1);
}

.feedback-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feedback-modal-actions .btn {
    min-width: 160px;
}

.feedback-modal-actions .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.feedback-modal-actions .btn-secondary:hover,
.feedback-modal-actions .btn-secondary:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
}

body.dark .feedback-modal-card {
    background: var(--surface);
    border-color: var(--border);
}

body.dark .feedback-close {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.22);
}

body.dark .feedback-close:hover,
body.dark .feedback-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

body.dark .feedback-modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.22);
}

body.dark .feedback-modal-actions .btn-secondary:hover,
body.dark .feedback-modal-actions .btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

@media (max-width: 520px) {
    .feedback-modal-actions .btn {
        width: 100%;
    }
}

.startup-error {
    position: sticky;
    top: 0;
    z-index: 9997;
    margin: 0;
    padding: 0.95rem 1.2rem;
    text-align: center;
    border-radius: 0;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dashboard-duo-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .status-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-card-top,
    .order-actions {
        align-items: flex-start;
    }
}
/* Emergency Demo Fix: Hide all feedback elements */
[id*="feedback"], 
[class*="feedback"], 
.feedback-btn, 
#feedback-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}