/* SobiDot theme: Deep Teal primary, Maroon complementary accent */
:root {
    --color-primary: #0B4F4A;
    --color-primary-dark: #073A36;
    --color-primary-light: #0F6E66;
    --color-primary-lighter: #E4F1EF;

    --color-accent: #7B2D26;
    --color-accent-dark: #5E211C;
    --color-accent-light: #9C3A31;

    --color-bg: #F6FAF9;
    --color-surface: #FFFFFF;
    --color-text: #1B2624;
    --color-text-muted: #5B6B68;
    --color-border: #E1EAE8;

    --font-heading: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;

    --radius-sm: 7px;
    --radius-md: 11px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(17, 33, 31, 0.06), 0 1px 1px rgba(17, 33, 31, 0.04);
    --shadow-md: 0 12px 28px -8px rgba(7, 58, 54, 0.28);

    /* Radzen theme variable overrides */
    --rz-primary: var(--color-primary);
    --rz-primary-dark: var(--color-primary-dark);
    --rz-primary-light: var(--color-primary-light);
    --rz-primary-lighter: var(--color-primary-lighter);
    --rz-secondary: var(--color-accent);
    --rz-secondary-dark: var(--color-accent-dark);
    --rz-secondary-light: var(--color-accent-light);
    --rz-base-background-color: var(--color-bg);
    --rz-text-color: var(--color-text);
    --rz-border-radius: var(--radius-sm);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-body);
    background: var(--color-bg) !important;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand, .auth-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

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

a:hover {
    color: var(--color-accent);
}

.content {
    padding: 0 0 3rem;
}

/* ---------- Layout shell ---------- */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
}

/* ---------- Top navigation ---------- */
.site-header {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.2px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: #fff;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

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

.btn-nav-login {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-nav-register {
    background: var(--color-accent);
    color: #fff !important;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-nav-register:hover {
    background: var(--color-accent-dark);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
}

.user-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-menu {
    position: relative;
}

.user-menu > summary.user-chip {
    cursor: pointer;
    list-style: none;
}

.user-menu > summary.user-chip::-webkit-details-marker {
    display: none;
}

.user-chip-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 190px;
    background: var(--color-surface, #fff);
    color: var(--color-text, #1a1a1a);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 50;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text, #1a1a1a) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
}

.user-menu-dropdown a:hover {
    background: var(--color-bg, #f2f2f2);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Hero / search ---------- */
.hero {
    position: relative;
    width: 100%;
    background: #041615;
    color: #fff;
    padding: 5rem 1.5rem 5.5rem;
    text-align: center;
    border-bottom: 3px solid var(--color-accent);
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-a {
    width: 480px;
    height: 480px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(15, 110, 102, 0.55), transparent 70%);
}

.hero-glow-b {
    width: 520px;
    height: 520px;
    bottom: -220px;
    right: -140px;
    background: radial-gradient(circle, rgba(123, 45, 38, 0.5), transparent 70%);
}

.hero-glow-c {
    width: 360px;
    height: 220px;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(15, 110, 102, 0.35), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.gradient-text {
    background: linear-gradient(100deg, #4fd1c5, #9c3a31 55%, #f2b880);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2.5rem;
}

.hero-card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    box-shadow: var(--shadow-md);
}

.hero-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 68%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 40px;
    background: linear-gradient(90deg, transparent, rgba(15, 110, 102, 0.55), rgba(123, 45, 38, 0.55), transparent);
    filter: blur(28px);
    z-index: -1;
}

.hero-tabs {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    margin-bottom: 0.6rem;
}

.hero-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

    .hero-tab.active {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        cursor: pointer;
    }

.hero-tab .soon-tag {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero .search-box {
    background: rgba(4, 22, 21, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero .search-box .rz-textbox {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
}

.hero .search-box .rz-textbox::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search-box {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.search-box .rz-button.search-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #fff !important;
    flex-shrink: 0;
}

.search-box .rz-button.search-btn:hover {
    background-color: var(--color-accent-light) !important;
    border-color: var(--color-accent-light) !important;
}

.search-box .rz-button.search-btn .rzi {
    font-size: 1.2rem;
}

/* ---------- Trust stats bar ---------- */
.trust-stats-section {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.trust-stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.trust-stat-value {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.trust-stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-sm), 0 4px 14px -4px rgba(11, 79, 74, 0.16);
    transform: translateY(-1px);
}

.testimonial-stars {
    color: var(--color-accent);
    letter-spacing: 0.15em;
    font-size: 1rem;
}

.testimonial-quote {
    color: var(--color-text);
    font-size: 0.98rem;
    line-height: 1.55;
    flex: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.testimonial-title {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

/* ---------- Sections / cards ---------- */
.page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.card-surface {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.domain-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.domain-result-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-sm), 0 4px 14px -4px rgba(11, 79, 74, 0.16);
    transform: translateY(-1px);
}

.domain-result-card .rz-button.rz-state-disabled {
    cursor: pointer !important;
}

.search-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.search-loading-more {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.domain-result-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}

.badge-available {
    background: var(--color-primary-lighter);
    color: var(--color-primary-dark);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.badge-taken {
    background: #FBEAE8;
    color: var(--color-accent-dark);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.badge-paid {
    background: var(--color-primary-lighter);
    color: var(--color-primary-dark);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-unpaid {
    background: #FBEAE8;
    color: var(--color-accent-dark);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-muted {
    background: var(--color-border);
    color: var(--color-text-muted);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price-tag {
    font-weight: 800;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

/* ---------- Customer badges ---------- */
.customer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.customer-badge-bronze {
    background: #F5E4D7;
    color: #8A5A2B;
}

.customer-badge-silver {
    background: #E7EAEC;
    color: #5A6268;
}

.customer-badge-gold {
    background: #FBF0D2;
    color: #9A7B15;
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.btn-add-cart .rzi {
    font-size: 1.05rem;
}

.btn-add-cart:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn-add-cart:disabled {
    background: transparent;
    color: #C9C9C9;
    border-color: #C9C9C9;
    cursor: not-allowed;
}

/* ---------- Offer carousel ---------- */
.offer-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--color-primary-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--color-accent);
    padding: 2.5rem;
    min-height: 220px;
    box-shadow: var(--shadow-md);
}

.offer-carousel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.offer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
}

.offer-dot.active {
    background: var(--color-accent);
}

.offer-slide h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.offer-slide p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 480px;
}

.offer-discount {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--color-accent);
    border-radius: 50%;
    text-align: center;
    line-height: 1.1;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
    gap: 2rem;
}

.footer-brand .brand {
    color: var(--color-primary-dark) !important;
    margin-bottom: 0.6rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    max-width: 320px;
    margin: 0 0 1.1rem;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.social-icon {
    box-shadow: 0 1px 3px rgba(17, 33, 31, 0.18);
}

.social-icon:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer-column h4 {
    color: var(--color-primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.9rem;
}

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

.footer-column a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.85rem;
}

.footer-newsletter-success {
    color: var(--color-primary-dark);
    font-weight: 600;
    margin: 0;
}

.footer-newsletter-error {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin: 0.4rem 0 0;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    text-align: center;
    padding: 1rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Legal pages ---------- */
.legal-updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.legal-body {
    padding: 2rem;
    max-width: 800px;
}

.legal-body h2 {
    color: var(--color-primary-dark);
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p {
    color: var(--color-text);
    line-height: 1.6;
}

.legal-disclaimer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    color: var(--color-text);
    line-height: 1.6;
    margin-top: 0.75rem;
}

#blazor-error-ui {
    background: var(--color-accent);
    color: #fff;
    bottom: 0;
    box-shadow: var(--shadow-md);
    display: none;
    left: 0;
    padding: 0.9rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.validation-message {
    color: var(--color-accent);
}

/* ---------- My Account (sidebar layout) ---------- */
.account-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.account-sidebar {
    flex: 0 0 240px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    position: sticky;
    top: 84px;
}

.account-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.account-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.account-sidebar nav a.active {
    background: var(--color-primary);
    color: #fff;
}

.account-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.account-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 800px) {
    .account-shell {
        flex-direction: column;
    }

    .account-sidebar {
        position: static;
        flex: 1 1 auto;
        width: 100%;
    }

    .account-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ---------- Dashboard stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-sm), 0 4px 14px -4px rgba(11, 79, 74, 0.16);
    transform: translateY(-1px);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-lighter);
    color: var(--color-primary-dark);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.stat-card-icon.accent {
    background: #FBEAE8;
    color: var(--color-accent-dark);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.stat-card-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Auth pages (Login / Register) ---------- */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--color-bg);
    background-image: radial-gradient(rgba(11, 79, 74, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.25rem 2rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.auth-subtitle {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

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

.auth-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.auth-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--color-bg);
    color: var(--color-text);
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px var(--color-primary-lighter);
}

.auth-field-error, .validation-message {
    color: var(--color-accent);
    font-size: 0.8rem;
}

.auth-validation-summary {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.auth-validation-summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.auth-row-between a {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-submit {
    width: 100%;
    padding: 0.7rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
}

.auth-submit:hover {
    background: var(--color-accent-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1.1rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.social-login-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-social:hover {
    background: var(--color-bg);
    border-color: var(--color-primary-light);
}

.auth-footer-link {
    text-align: center;
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-footer-link a {
    color: var(--color-accent);
    font-weight: 600;
}

.alert {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background: #FBEAE8;
    color: var(--color-accent-dark);
}

.alert-success {
    background: var(--color-primary-lighter);
    color: var(--color-primary-dark);
}

.alert-warning {
    background: #FFF6E0;
    color: #8A6100;
}

.alert-info {
    background: var(--color-primary-lighter);
    color: var(--color-primary-dark);
}

.alert p {
    margin: 0 0 0.4rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

/* ---------- Account/Manage section (Identity pages) ---------- */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary-lighter);
}

.btn-outline-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-accent-dark);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline-danger:hover {
    background: #FBEAE8;
}

.manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.manage-table {
    width: 100%;
    border-collapse: collapse;
}

.manage-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.recovery-code {
    display: inline-block;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
}

/* ---------- Admin tabs ---------- */
.admin-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-tabs a {
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.admin-tabs a:hover {
    color: var(--color-primary-dark);
}

.admin-tabs a.active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-accent);
}

/* ---------- Payment method selector ---------- */
.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.payment-method-option:hover {
    border-color: var(--color-primary-light);
}

.payment-method-option.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-lighter);
}

.payment-method-option.unavailable {
    cursor: not-allowed;
    opacity: 0.55;
}

.payment-method-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

/* ---------- Global button micro-interaction ---------- */
.rz-button {
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease, filter 0.15s ease !important;
}

.rz-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.rz-button:not(:disabled):active {
    transform: translateY(0);
}
