:root {
    color-scheme: light;
    --ink: #193133;
    --muted: #587072;
    --paper: #f6f8f5;
    --paper-strong: #edf2ed;
    --surface: #f5f7f9;
    --surface-soft: #f8fafb;
    --border: #d6dfd9;
    --border-soft: #e3e8ed;
    --text-main: #193133;
    --text-primary: #193133;
    --text-muted: #587072;
    --sun: #14ec91;
    --sky: #ebfff5;
    --sea: #193133;
    --accent: #14ec91;
    --accent-hover: #10cf7f;
    --accent-light: #ebfff5;
    --stroke: #d6dfd9;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(25, 49, 51, 0.10);
    --shadow-sm: 0 8px 24px rgba(25, 49, 51, 0.08);
    --gradient-hero: linear-gradient(135deg, #193133 0%, #223e41 60%, #193133 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #eef5ef 100%);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.4rem;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --font-heading: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

body {
    color-scheme: light;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Global transitions */
a, .button, .product-card, .product-tile, .feature-card,
.bundle-card, .category-card, .testimonial-card, .mega-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(25, 49, 51, 0.12);
}

/* ===== LAYOUT ===== */

.main-content {
    padding: 0 6vw 6rem;
}

/* ===== ANNOUNCEMENT BANNER ===== */

.announcement {
    background: var(--sea);
    color: #ffffff;
    padding: 0.6rem 6vw;
    font-size: 0.9rem;
}

.announcement-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.announcement-pill {
    background: var(--accent);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
}

.announcement-link {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.announcement-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.4rem;
    line-height: 1;
    transition: color var(--transition-base);
}

.announcement-close:hover {
    color: #ffffff;
}

/* ===== TRUST STRIP ===== */

.trust-strip {
    background: var(--paper-strong);
    border-bottom: 1px solid var(--stroke);
    padding: 0.6rem 6vw;
    font-size: 0.85rem;
    color: var(--muted);
}

.trust-inner {
    display: grid;
    gap: 0.75rem 2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ===== SITE HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #071820;
    background-image: url("/images/footer-gradient.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(20, 236, 145, 0.12);
}

.header-inner {
    --header-block-padding: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: var(--header-block-padding) 6vw;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 8rem;
    height: auto;
    overflow: visible;
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-title {
    font-size: 5rem;
    line-height: 1;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

a.nav-pill,
button.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 1.1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.nav-pill.nav-pill-primary {
    background: #aaee22;
    border-color: #aaee22;
    color: #071820;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    border-width: 1px;
    border-style: solid;
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-pill.nav-pill-primary:hover,
.nav-pill.nav-pill-primary.active {
    background: #99dd11;
    border-color: #99dd11;
    color: #071820;
}

.nav-pill.nav-pill-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    border-width: 1px;
    border-style: solid;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-pill.nav-pill-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.nav-pill.nav-pill-secondary.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.nav-pill.nav-pill-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.48rem 0.6rem;
    border-width: 1px;
    border-style: solid;
}

.nav-pill.nav-pill-icon:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Dropdown wrapper for MegaMenu */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-wrapper .mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 700px;
    z-index: 30;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-dropdown-wrapper:hover .mega-menu {
    display: block;
    opacity: 1;
}

/* Hamburger button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ===== MEGA MENU ===== */

.mega-menu {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mega-inner {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.5rem;
}

.mega-card {
    background: var(--paper);
    border: 1px solid var(--stroke);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.mega-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* ===== MOBILE MENU ===== */

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 100;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-drawer a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--stroke);
    font-size: 1.05rem;
}

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

.mobile-drawer .button {
    margin-top: 1rem;
    text-align: center;
}

/* ===== HERO ===== */

.hero {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
    padding: 4rem 6vw 3rem;
    background: var(--gradient-hero);
    color: #ffffff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0 -6vw 2rem;
    width: calc(100% + 12vw);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    margin: 0.4rem 0 1rem;
    line-height: 1.15;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 2rem;
}

.hero .button.primary {
    background: var(--accent);
    color: #ffffff;
}

.hero .button.primary:hover {
    background: var(--accent-hover);
}

.hero .button.ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero .button.ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== HERO METRICS ===== */

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hero-metrics strong,
.animated-counter strong {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    display: block;
}

.hero-metrics span,
.animated-counter span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.animated-counter {
    text-align: left;
}

/* ===== HERO CARDS / CAROUSEL ===== */

.hero-cards {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.carousel-slide {
    min-width: 100%;
    padding: 0.25rem;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 0;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--transition-base);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    padding: 0;
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* ===== BUTTONS ===== */

.button {
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.button.primary {
    background: var(--accent);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 236, 145, 0.22);
}

.button.primary:active {
    transform: translateY(0);
}

.button.ghost {
    border-color: var(--stroke);
    color: var(--ink);
    background: #ffffff;
}

.button.ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ===== BADGES ===== */

.badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge.soft {
    background: var(--accent-light);
    color: var(--accent-hover);
}

/* ===== PRODUCT CARD (hero cards) ===== */

.product-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.product-card-body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.product-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0.6rem 0 0.4rem;
    font-size: 1.05rem;
    color: var(--ink);
}

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* ===== PLACEHOLDER IMAGE ===== */

.placeholder-image {
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
}

.placeholder-image svg {
    opacity: 0.5;
}

.placeholder-image span {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.placeholder-default {
    background: linear-gradient(135deg, #f1fbf5 0%, #dff8ea 100%);
    color: var(--accent-hover);
}

.placeholder-blue {
    background: linear-gradient(135deg, #193133 0%, #223e41 100%);
    color: rgba(255, 255, 255, 0.8);
}

.placeholder-cyan {
    background: linear-gradient(135deg, #14ec91 0%, #10cf7f 100%);
    color: rgba(255, 255, 255, 0.8);
}

.placeholder-navy {
    background: linear-gradient(135deg, #193133 0%, #223e41 100%);
    color: rgba(255, 255, 255, 0.8);
}

.product-card .placeholder-image {
    border-radius: 0;
}

/* ===== BUNDLE GRID ===== */

.bundle-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 2rem 0 3rem;
}

.bundle-card {
    background: var(--gradient-hero);
    color: #ffffff;
    padding: 1.6rem;
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.8rem;
}

.bundle-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0;
}

.bundle-card p {
    opacity: 0.85;
    font-size: 0.95rem;
    margin: 0;
}

.bundle-card .button.ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.bundle-card .button.ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bundle-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-icon svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

/* ===== SECTIONS ===== */

.section {
    margin: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0.3rem 0 0.4rem;
}

/* ===== PRODUCT GRID & TILES ===== */

.product-grid,
.feature-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-tile,
.feature-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 0;
    border: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.product-tile:hover,
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.tile-body,
.feature-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-tile h4,
.feature-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0;
}

.product-tile p,
.feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.tile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1.2rem 1.2rem;
    margin-top: auto;
}

.feature-card-body .feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

/* ===== CONSULTATION CALLOUT ===== */

.consult-callout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    background: var(--paper-strong);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
}

.consult-callout h2 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.consult-panel {
    display: grid;
    gap: 1rem;
}

.panel-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--stroke);
    transition: border-color var(--transition-base);
}

.panel-card:hover {
    border-color: var(--accent);
}

.panel-card h4 {
    font-family: var(--font-heading);
    margin: 0 0 0.3rem;
}

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

/* ===== TESTIMONIALS ===== */

.testimonial-row {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.6rem;
    border: 1px solid var(--stroke);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
}

.testimonial-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
    flex: 1;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.testimonial-footer span {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* ===== LOGO STRIP ===== */

.logo-strip {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.logo-strip span {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all var(--transition-base);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.logo-strip span:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--accent);
}

/* ===== FAQ ===== */

.faq-grid {
    display: grid;
    gap: 0.75rem;
}

.faq-grid details {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    transition: border-color var(--transition-base);
}

.faq-grid details:hover {
    border-color: var(--accent);
}

.faq-grid details[open] {
    border-color: var(--accent);
}

.faq-grid details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    gap: 1rem;
}

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

.faq-grid details summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 400;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-grid details[open] summary::after {
    transform: rotate(45deg);
}

.faq-grid details p {
    margin: 0.8rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== NEWSLETTER ===== */

.newsletter {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--stroke);
}

.newsletter h2 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.newsletter p {
    color: var(--muted);
}

.newsletter-form {
    display: grid;
    gap: 0.8rem;
    align-content: center;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.newsletter-form input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ===== PAGE HERO ===== */

.page-hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    padding: 3rem 2rem 1.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.page-hero-card {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.page-hero-card h3 {
    font-family: var(--font-heading);
    margin: 0 0 0.6rem;
}

/* ===== CATEGORY GRID ===== */

.category-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 2rem 0;
}

.category-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 0;
    border: 1px solid var(--stroke);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.category-card-body {
    padding: 1.2rem;
}

.category-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}

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

/* ===== HEADER ACTIONS ROW ===== */

.header-actions-row {
    background: var(--paper-strong);
    border-bottom: 1px solid var(--stroke);
}

.header-actions-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 6vw;
}

.header-actions-inner h3 {
    margin: 0 0 0.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.header-actions-inner p {
    margin: 0;
    color: var(--muted);
}

.header-actions-controls {
    display: inline-flex;
    gap: 0.8rem;
    align-items: center;
}

/* ===== CONTACT FORM ===== */

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 720px;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

label {
    display: grid;
    gap: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== SITE FOOTER ===== */

.site-footer {
    background: var(--sea);
    color: #ffffff;
    padding: 3rem 6vw 2rem;
}

.footer-inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0 0 0.8rem;
}

.footer-links a {
    display: block;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-badges span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== CART BUTTON ===== */

.cart-button {
    border-radius: 999px;
    border: 1px solid var(--stroke);
    padding: 0.5rem 0.9rem;
    background: #ffffff;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.cart-button:hover {
    border-color: var(--accent);
}

.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.cart-icon-svg {
    width: 20px;
    height: 20px;
    color: var(--ink);
}

a.cart-button {
    text-decoration: none;
    color: inherit;
}

/* ===== FLOATING CONTACT ===== */

.floating-contact {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(20, 236, 145, 0.2);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 50;
    transition: background var(--transition-base), transform var(--transition-base);
    animation: pulse 2s infinite;
}

.floating-contact:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.floating-contact svg {
    width: 20px;
    height: 20px;
}

@keyframes pulse {
    0%, 100% {
    box-shadow: 0 8px 24px rgba(20, 236, 145, 0.2), 0 0 0 0 rgba(20, 236, 145, 0.3);
    }
    70% {
    box-shadow: 0 8px 24px rgba(20, 236, 145, 0.2), 0 0 0 12px rgba(20, 236, 145, 0);
    }
}

/* ===== UTILITY CLASSES ===== */

.text-link {
    color: var(--accent);
    font-weight: 600;
    transition: color var(--transition-base);
}

.text-link:hover {
    color: var(--accent-hover);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-heading);
}

/* ===== SCROLL REVEAL ===== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FOCUS ACCESSIBILITY ===== */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== CART PAGE ===== */

.cart-layout,
.checkout-layout,
.confirmation-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 380px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    transition: border-color var(--transition-base);
}

.cart-item:hover {
    border-color: var(--accent);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
    border: 1px solid var(--stroke);
    background: #ffffff;
}

.cart-item-details h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.cart-item-details .price {
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--paper-strong);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.qty-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.qty-value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.cart-item-total {
    font-size: 1rem;
    font-weight: 600;
    min-width: 5rem;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-base), background var(--transition-base);
}

.cart-item-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* ===== CART SUMMARY SIDEBAR ===== */

.cart-summary {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.invoice-viewer-page {
    display: grid;
    gap: 1.5rem;
}

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

.invoice-viewer-shell {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.invoice-viewer-frame {
    width: 100%;
    min-height: 80vh;
    border: 0;
    display: block;
    background: #f8fafc;
}

.cart-summary h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 1rem;
}

.cart-summary hr {
    border: none;
    border-top: 1px solid var(--stroke);
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.summary-total {
    font-weight: 700;
    font-size: 1.1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.summary-item + .summary-item {
    border-top: 1px solid var(--paper-strong);
}

/* ===== EMPTY CART ===== */

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart svg {
    color: var(--muted);
    margin-bottom: 1rem;
}

.empty-cart h3 {
    font-family: var(--font-heading);
    margin: 0 0 0.5rem;
}

.empty-cart p {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

/* ===== CHECKOUT FORM ===== */

.checkout-form {
    min-width: 0;
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1rem;
}

.checkout-form input {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.checkout-address-options {
    display: grid;
    gap: 0.85rem;
}

.checkout-address-option {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: start;
    margin-bottom: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.checkout-address-option.selected {
    border-color: rgba(46, 125, 107, 0.3);
    box-shadow: 0 0 0 3px rgba(20, 236, 145, 0.08);
    background: rgba(235, 255, 245, 0.65);
}

.checkout-address-option input[type="radio"] {
    width: 1rem;
    height: 1rem;
    margin: 0.15rem 0 0;
}

.checkout-address-option-copy {
    display: grid;
    gap: 0.2rem;
}

.checkout-address-option-copy strong {
    color: var(--text-primary);
    font-size: 0.96rem;
}

.checkout-address-option-copy span {
    color: var(--text-muted);
    line-height: 1.45;
}

.checkout-address-option-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(20, 236, 145, 0.14);
    color: var(--sea);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== ORDER CONFIRMATION ===== */

.confirmation-details {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.confirmation-details h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 1rem;
}

.confirmation-details p {
    color: var(--muted);
    line-height: 1.7;
}

/* ===== RESPONSIVE: MOBILE (default / < 768px) ===== */

@media (max-width: 767px) {
    .main-content {
        padding: 0 4vw 5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 4vw;
        margin: 0 -4vw 2rem;
        width: calc(100% + 8vw);
        gap: 2rem;
    }

    .hero-cards {
        max-width: 100%;
    }

    .header-inner {
        --header-block-padding: 0.8rem;
        padding: var(--header-block-padding) 4vw;
    }

    .hamburger-btn {
        display: flex;
    }

    .header-nav.desktop-only {
        display: none !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero {
        grid-template-columns: 1fr;
    }

    .consult-callout {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .floating-contact {
        left: 1rem;
        right: 1rem;
        text-align: center;
        justify-content: center;
    }

    .button {
        min-height: 44px;
        padding: 0.85rem 1.6rem;
    }

    .trust-strip {
        overflow-x: auto;
        padding: 0.6rem 4vw;
    }

    .trust-inner {
        display: flex;
        gap: 1.5rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .announcement {
        padding: 0.6rem 4vw;
        font-size: 0.8rem;
    }

    .carousel-controls {
        padding: 0.5rem 0 0;
    }

    .header-actions-inner {
        grid-template-columns: 1fr;
        padding: 0.9rem 4vw;
    }

    .header-actions-controls {
        justify-self: start;
    }

    .cart-layout,
    .checkout-layout,
    .confirmation-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr auto auto;
        gap: 0.75rem;
    }

    .cart-item .placeholder-image,
    .cart-item .cart-item-image {
        display: none;
    }

    .cart-item-total {
        text-align: left;
    }

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

/* ===== RESPONSIVE: TABLET (768px+) ===== */

@media (min-width: 768px) {
    .hamburger-btn {
        display: none;
    }

    .header-nav.desktop-only {
        display: flex;
    }

    .product-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .testimonial-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== RESPONSIVE: DESKTOP (1024px+) ===== */

@media (min-width: 1024px) {
    .product-grid,
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bundle-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonial-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== RESPONSIVE: WIDE (1280px+) ===== */

@media (min-width: 1280px) {
    .portal-body-shell:has(.cart-sticky-summary) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 1.5rem;
        align-items: start;
        padding-right: 2rem;
    }

    .portal-content {
        min-width: 0;
    }

    .cart-sticky-summary {
        display: block;
        position: sticky;
        top: 7rem;
        padding-top: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-content {
        padding: 0 8vw 6rem;
    }
}

/* ===== ADMIN ===== */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    padding: 1.2rem;
    font-weight: 600;
    transition: border-color var(--transition-base);
}

.admin-card:hover {
    border-color: var(--accent);
}

.admin-form {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.admin-form h3 {
    margin: 0;
    font-family: var(--font-heading);
}

.admin-table {
    margin-top: 2rem;
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--stroke);
}

.admin-table th {
    background: var(--paper-strong);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.form-actions {
    display: inline-flex;
    gap: 0.8rem;
}

label.checkbox {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

/* ───────────── Auth & Account ───────────── */
.auth-form-container {
    max-width: 440px;
    margin: 0 auto;
}

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

.auth-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links .divider {
    margin: 0 0.5rem;
    color: var(--border);
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-error p {
    margin: 0;
}

.form-error ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
}

.form-error li + li {
    margin-top: 0.25rem;
}

.form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-success svg {
    flex-shrink: 0;
    color: #16a34a;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text-main);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 236, 145, 0.12);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

/* Account breadcrumb */
.account-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.account-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.account-breadcrumb a:hover {
    text-decoration: underline;
}

.account-breadcrumb span {
    margin: 0 0.3rem;
}

/* Account dashboard */
.account-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(25, 49, 51, 0.08);
}

.dashboard-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 236, 145, 0.12), rgba(25, 49, 51, 0.06));
    color: var(--accent);
}

.dashboard-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.dashboard-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Account form pages */
.account-form-container {
    max-width: 560px;
}

.account-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-form-container .form-group {
    margin-bottom: 1rem;
}

/* Order cards */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    background: var(--surface);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-card-header .order-number {
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    font-size: 0.9rem;
}

.order-card-header .order-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.order-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.pagination-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-processing { background: #e0e7ff; color: #3730a3; }
.status-invoiced { background: #dbeafe; color: #1d4ed8; }
.status-payment-pending { background: #fef3c7; color: #92400e; }
.status-payment-sent { background: #fce7f3; color: #9d174d; }
.status-payment-received { background: #dcfce7; color: #166534; }
.status-shipped { background: #d1fae5; color: #065f46; }
.status-completed { background: #ecfdf5; color: #047857; }
.status-overdue-payment { background: #fee2e2; color: #991b1b; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-refunded { background: #ede9fe; color: #5b21b6; }

/* Order detail */
.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.order-detail-main h3 {
    margin: 1.5rem 0 0.8rem;
    font-size: 1rem;
}

.order-detail-main h3:first-child {
    margin-top: 0;
}

.order-detail-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.order-item-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.order-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.order-item-info .item-name {
    font-weight: 600;
}

.order-item-info .item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-totals {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.order-detail-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.order-detail-sidebar h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.order-detail-sidebar p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.order-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Address cards */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.address-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    background: var(--surface);
    position: relative;
}

.address-card.default {
    border-color: var(--accent);
}

.address-card .badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(135deg, rgba(20, 236, 145, 0.14), rgba(25, 49, 51, 0.08));
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.address-card h4 {
    margin: 0 0 0.5rem;
}

.address-card p {
    margin: 0.15rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.address-card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.address-card-actions button.danger {
    color: #dc2626;
}

.address-form-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    max-width: 560px;
}

.address-form-panel .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.address-form-panel .form-group {
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Checkout sign-in prompt */
.checkout-signin-prompt {
    background: linear-gradient(135deg, rgba(20, 236, 145, 0.08), rgba(25, 49, 51, 0.04));
    border: 1px solid rgba(20, 236, 145, 0.22);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.checkout-signin-prompt a {
    color: var(--accent);
    font-weight: 600;
}

/* Header auth links */
.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-main);
    transition: background 0.2s, color 0.2s;
}

.header-icon-link:hover {
    background: rgba(20, 236, 145, 0.1);
    color: var(--accent);
}

.header-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 0.45rem 1.15rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    transition: color 0.2s, border-color 0.2s;
}

.header-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
}

/* Admin Orders */
.admin-orders-filters {
    margin-bottom: 1.5rem;
}

.admin-orders-filters select {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--surface);
    color: var(--text-main);
}

.admin-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-order-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}

.admin-order-header {
    display: grid;
    grid-template-columns: 160px 1fr 1fr 100px 100px 80px 30px;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.88rem;
}

.admin-order-header:hover {
    background: rgba(20, 236, 145, 0.05);
}

.admin-order-header .order-number {
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
}

.admin-order-header .expand-icon {
    text-align: center;
    color: var(--text-muted);
}

.admin-order-detail {
    padding: 1rem 1.2rem 1.2rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.admin-order-detail h4 {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.admin-order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
    padding: 0.3rem 0;
}

.admin-order-shipping p {
    margin: 0.15rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.admin-order-status-update {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-order-status-update select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
}

/* Button variants */
.button.small {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
}

.button.outline.small {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
}

.text-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link.danger {
    color: #dc2626;
}

.muted {
    color: var(--text-muted);
}

/* Responsive: account pages */
@media (max-width: 768px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-order-header {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .admin-order-detail {
        grid-template-columns: 1fr;
    }

    .account-form-container .form-row,
    .auth-form-container .form-row,
    .address-form-panel .form-row {
        grid-template-columns: 1fr;
    }

    .account-dashboard {
        grid-template-columns: 1fr;
    }
}

/* ===== Effira-Inspired Visual Refinement ===== */

:root {
    --font-heading: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --radius-md: 1.2rem;
    --radius-lg: 1.8rem;
}

html {
    font-size: 16px;
}

body {
    line-height: 1.6;
    letter-spacing: -0.01em;
    background:
        radial-gradient(circle at top left, rgba(20, 236, 145, 0.05), transparent 28%),
        linear-gradient(180deg, #f7faf7 0%, #f3f7f4 100%);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.035em;
    color: var(--sea);
}

p, li, label, input, textarea, select, button {
    font-family: var(--font-body);
}

.main-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 3.5vw 6rem;
    flex: 1 0 auto;
}

.header-inner,
.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.site-header {
    background-color: #071820;
    background-image: url("/images/footer-gradient.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(20, 236, 145, 0.12);
    backdrop-filter: none;
}

.header-inner {
    gap: 2.5rem;
    --header-block-padding: 1.1rem;
    padding: var(--header-block-padding) 3.5vw;
}

.site-header .header-inner {
    align-items: flex-start;
    gap: 2rem;
    --header-block-padding: 1.9rem;
    padding: var(--header-block-padding) 3.5vw 1.2rem;
}

.site-header .brand {
    align-items: flex-start;
    gap: 0.72rem;
    font-size: 1rem;
    letter-spacing: 0;
}

.site-header .brand-logo {
    width: 5.35rem;
}

.site-header .brand-text {
    gap: 0.12rem;
    padding-top: 0.08rem;
}

.site-header .brand-title {
    font-size: clamp(3rem, 5vw, 3.65rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.site-header .brand-subtitle {
    font-size: 0.64rem;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

.site-header .header-right {
    gap: 0.9rem;
    padding-top: 0.15rem;
}

.site-header .header-nav {
    gap: 0.9rem;
}

.site-header a.nav-pill,
.site-header button.nav-pill {
    min-height: 2.7rem;
    padding: 0 1.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(2, 20, 20, 0.18);
}

.site-header .nav-pill.nav-pill-primary {
    min-width: 5.45rem;
    justify-content: center;
    background: #14ec91;
    border-color: #14ec91;
    color: #064138;
    box-shadow: 0 16px 30px rgba(20, 236, 145, 0.22);
}

.site-header .nav-pill.nav-pill-primary:hover,
.site-header .nav-pill.nav-pill-primary.active {
    background: #14ec91;
    border-color: #14ec91;
    color: #064138;
}

.site-header .nav-pill.nav-pill-secondary {
    min-width: 6.05rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(20, 236, 145, 0.7);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.site-header .nav-pill.nav-pill-secondary:hover,
.site-header .nav-pill.nav-pill-secondary.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(20, 236, 145, 0.95);
    color: #ffffff;
}

.site-header .cart-button {
    position: relative;
    width: 2.7rem;
    height: 2.7rem;
    min-width: 2.7rem;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(20, 236, 145, 0.72);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 28px rgba(2, 20, 20, 0.18);
    backdrop-filter: blur(14px);
}

.site-header .cart-button:hover {
    border-color: rgba(20, 236, 145, 0.95);
    background: rgba(255, 255, 255, 0.12);
}

.site-header .cart-icon-svg {
    width: 1.1rem;
    height: 1.1rem;
    color: currentColor;
}

.site-header .cart-count-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    font-size: 0.62rem;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.brand-logo {
    display: block;
    width: 8rem;
    height: auto;
    filter: none;
    overflow: visible;
    flex: 0 0 auto;
}

.brand-title {
    display: inline-block;
    font-size: 5rem;
    line-height: 1;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-link {
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(20, 236, 145, 0.22);
    border-radius: 999px;
    background: rgba(20, 236, 145, 0.06);
    color: var(--sea);
}

.header-link:hover {
    background: rgba(20, 236, 145, 0.12);
}

.hero,
.page-hero {
    box-shadow: 0 24px 44px rgba(25, 49, 51, 0.06);
}

.hero {
    gap: 4rem;
    padding: 5rem 4rem 4rem;
    border-radius: 0 0 2rem 2rem;
}

.hero-content h1,
.page-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 4.5vw, 4.25rem);
    line-height: 1.02;
}

.page-hero h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.1rem;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
}

.hero .lead,
.page-hero .lead {
    max-width: 62ch;
    font-size: 1.05rem;
}

.section {
    margin-top: 2rem;
}

.section-header {
    margin-bottom: 1.4rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(25, 49, 51, 0.08);
}

.section-header h2 {
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    line-height: 1.1;
}

.button {
    min-height: 2.8rem;
    padding: 0.8rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.button.primary {
    box-shadow: 0 10px 24px rgba(20, 236, 145, 0.18);
}

.button.ghost {
    border-color: rgba(25, 49, 51, 0.12);
    background: rgba(255, 255, 255, 0.88);
}

.product-tile,
.product-card,
.category-card,
.admin-card,
.order-card,
.admin-order-card,
.address-card,
.page-hero-card,
.admin-form,
.auth-form-container,
.account-form-container,
.admin-table,
.address-form-panel {
    border-radius: 1.4rem;
    border-color: rgba(25, 49, 51, 0.08);
    box-shadow: 0 18px 38px rgba(25, 49, 51, 0.04);
}

.product-tile,
.product-card,
.category-card,
.admin-card,
.order-card,
.address-card {
    background: rgba(255, 255, 255, 0.94);
}

.product-tile,
.product-card {
    overflow: hidden;
}

.product-tile .tile-body,
.product-card .card-body {
    padding-top: 0.25rem;
}

.product-tile h4,
.product-card h3,
.admin-card,
.order-card .order-number {
    letter-spacing: -0.03em;
}

.auth-form-container,
.account-form-container,
.admin-form,
.address-form-panel {
    max-width: 760px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.96);
}

.admin-form {
    margin-bottom: 1.5rem;
}

.admin-table {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
}

.admin-table table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th,
.admin-table td {
    padding: 1rem 1rem;
}

.admin-table th {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(25, 49, 51, 0.58);
    background: #f7faf7;
}

.admin-card {
    padding: 1.35rem 1.45rem;
    font-weight: 700;
    color: var(--sea);
    background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(25, 49, 51, 0.08);
}

.account-dashboard,
.admin-grid {
    gap: 1.2rem;
}

input,
textarea,
select {
    min-height: 2.9rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(25, 49, 51, 0.12);
    background: rgba(248, 251, 248, 0.9);
    color: var(--sea);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

textarea {
    min-height: 7rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(20, 236, 145, 0.7);
    box-shadow: 0 0 0 4px rgba(20, 236, 145, 0.12);
    background: #ffffff;
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(25, 49, 51, 0.88);
}

.badge,
.status-badge {
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
}

.status-badge {
    background: rgba(20, 236, 145, 0.12);
    color: var(--sea);
    border: 1px solid rgba(20, 236, 145, 0.18);
}

.site-footer {
    background: #193133;
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    gap: 2rem;
    padding: 0 3.5vw 2rem;
}

.site-footer h3,
.site-footer h4 {
    color: #ffffff;
}

.footer-brand-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.6rem;
}

.footer-logo {
    height: 1.8rem;
    filter: brightness(0) invert(1);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: #14ec91;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 3.5vw 2rem;
}

@media (max-width: 900px) {
    .hero {
        padding: 3rem 1.5rem 2.5rem;
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 2rem 1.25rem 1.25rem;
        grid-template-columns: 1fr;
    }

    .header-inner,
    .footer-inner,
    .footer-bottom {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(20, 236, 145, 0.12), transparent 28%),
        linear-gradient(180deg, #f4f8f6 0%, #eff5f2 100%);
}

.auth-shell-content {
    flex: 1 0 auto;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 2rem;
}

.auth-shell-content-standalone {
    min-height: 100vh;
}

.auth-login-page {
    width: min(100%, 1120px);
    margin: auto;
}

.auth-register-page {
    width: min(100%, 1380px);
    margin: auto;
}

.auth-login-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    min-height: 680px;
    border: 1px solid rgba(25, 49, 51, 0.08);
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 70px rgba(25, 49, 51, 0.1);
    backdrop-filter: blur(10px);
}

.auth-login-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 4rem;
    background:
        linear-gradient(160deg, rgba(25, 49, 51, 0.98) 0%, rgba(25, 49, 51, 0.94) 60%, rgba(33, 66, 68, 0.92) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.auth-login-intro .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.auth-login-intro h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.98;
}

.auth-login-intro .lead {
    margin: 0;
    max-width: 24rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.auth-login-note {
    margin: 0;
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.auth-login-form {
    max-width: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 3.5rem;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.96);
}

.auth-login-form form {
    width: 100%;
    gap: 1.1rem;
}

.auth-login-form .auth-links {
    width: 100%;
    margin-top: 1.75rem;
}

.auth-register-panel {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    min-height: auto;
}

.auth-register-intro {
    justify-content: flex-start;
}

.auth-register-step-summary {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-register-step-summary h3,
.auth-register-step-summary p,
.auth-register-step-summary ul {
    margin: 0;
}

.auth-register-step-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
}

.auth-register-step-summary ul {
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
}

.auth-register-step-summary li + li {
    margin-top: 0.5rem;
}

.auth-register-callout {
    display: grid;
    gap: 0.45rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-register-callout p {
    margin: 0;
}

.auth-register-form {
    max-width: none;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .auth-shell-content {
        padding: 1.25rem;
    }

    .auth-login-page,
    .auth-register-page {
        width: 100%;
    }

    .auth-login-panel,
    .auth-register-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-login-intro,
    .auth-login-form {
        padding: 2.5rem 2rem;
    }

    .auth-login-intro {
        justify-content: flex-start;
    }

    .auth-login-intro .lead,
    .auth-login-note {
        max-width: none;
    }
}

.auth-logout-form {
    text-align: center;
    align-items: center;
}

.auth-logout-copy {
    display: grid;
    gap: 0.75rem;
    max-width: 24rem;
}

.auth-logout-copy h2 {
    margin: 0;
}

.auth-logout-copy p {
    margin: 0;
}

.auth-logout-actions {
    width: min(100%, 22rem);
}

.auth-logout-actions .button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .auth-shell-content {
        padding: 1rem;
    }

    .auth-login-panel {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 1.5rem;
    }

    .auth-login-intro,
    .auth-login-form {
        padding: 2rem 1.5rem;
    }

    .product-browse-toolbar {
        grid-template-columns: 1fr;
    }

    .product-browse-toolbar .checkbox {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .auth-shell-content {
        padding: 0.75rem;
    }

    .auth-shell-content-standalone {
        min-height: auto;
    }

    .auth-login-page,
    .auth-register-page {
        width: 100%;
    }

    .auth-login-panel {
        border-radius: 1.1rem;
    }

    .auth-login-intro,
    .auth-login-form {
        padding: 1.4rem 1rem;
    }

    .auth-login-intro {
        gap: 0.75rem;
    }

    .auth-login-intro h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
        line-height: 1.02;
    }

    .auth-login-intro .lead {
        font-size: 0.98rem;
    }

    .auth-login-note {
        line-height: 1.45;
        font-size: 0.92rem;
    }

    .auth-login-logo {
        width: min(100%, 12rem);
        max-height: 4rem;
        margin-bottom: 0.35rem;
    }

    .auth-links {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        align-items: center;
    }

    .auth-links .divider {
        display: none;
    }

    .auth-register-step-summary {
        gap: 0.75rem;
    }

    .auth-register-step-summary h3 {
        font-size: 1.08rem;
    }

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

    .registration-progress-step {
        padding: 0.8rem;
    }

    .registration-progress-step strong {
        font-size: 0.94rem;
    }

    .registration-progress-step small {
        font-size: 0.8rem;
    }

    .registration-step-card,
    .registration-checkbox,
    .registration-checkbox-stack,
    .registration-upload-panel,
    .registration-multiselect-group,
    .registration-help-panel {
        padding: 0.9rem;
    }

    .registration-choice-row .registration-choice-card,
    .registration-check-list .registration-check-card {
        align-items: flex-start;
        padding: 0.75rem 0.8rem;
    }

    .registration-choice-row .registration-choice-card {
        flex-direction: column;
        gap: 0.4rem;
    }

    .registration-choice-row .registration-choice-card input[type="radio"] {
        width: 1rem;
        height: 1rem;
    }

    .checkbox-group-item {
        gap: 0.65rem;
    }

    .checkbox-group-item input[type="checkbox"] {
        margin-top: 0.15rem;
    }

    .registration-step-header h2 {
        font-size: 1.45rem;
    }

    .registration-actions {
        gap: 0.65rem;
    }

    .registration-actions .button {
        min-width: 0;
    }

    .auth-logout-actions {
        width: 100%;
    }
}

/* ===== B2B Portal Shell ===== */

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f7f4;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    padding: 0;
    background-color: #071820;
    background-image: url("/images/footer-gradient.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
}

.portal-brand-logo-wrap {
    width: 3.4rem;
    height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 246, 0.92) 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.portal-brand-logo {
    width: 2.15rem;
    height: auto;
}

.portal-brand-copy {
    min-width: 0;
}

.portal-brand-kicker {
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
}

.portal-brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.portal-brand-subtitle {
    margin-top: 0.3rem;
    max-width: 16rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.64);
}

.portal-topbar-primary {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}

.portal-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.portal-topbar .portal-brand-kicker {
    color: rgba(25, 49, 51, 0.46);
}

.portal-topbar .portal-brand-title {
    color: var(--sea);
}

.portal-topbar .portal-brand-subtitle {
    color: rgba(25, 49, 51, 0.62);
}

.portal-topnav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.portal-topnav a {
    padding: 0 0.95rem;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-topnav a.active,
.portal-topnav a:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.portal-topbar-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-left: auto;
    justify-content: flex-end;
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(25, 49, 51, 0.06);
    color: var(--sea);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
}

.portal-signout-button {
    min-width: 7.5rem;
    justify-content: center;
    border-color: rgba(25, 49, 51, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--sea);
    box-shadow: 0 10px 24px rgba(25, 49, 51, 0.05);
}

.portal-signout-button:hover {
    border-color: rgba(25, 49, 51, 0.18);
    background: #ffffff;
}

.portal-content {
    padding: 1.5rem 2rem 2rem;
}

.portal-body-shell {
    width: 100%;
    flex: 1 0 auto;
    background: var(--surface-soft);
}

.cart-sticky-summary {
    display: none;
}

.cart-summary-compact {
    padding: 1.25rem;
}

.cart-summary-items {
    display: grid;
    gap: 0;
    max-height: min(22rem, calc(100vh - 22rem));
    overflow-y: auto;
}

.summary-item-editable {
    display: grid;
    gap: 0.6rem;
    align-items: start;
}

.summary-item-copy {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.summary-item-name {
    color: var(--ink);
    line-height: 1.4;
}

.summary-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-item-quantity-compact {
    padding: 0.2rem 0.4rem;
}

.cart-summary-remove {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.cart-summary-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

.cart-summary-remove svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

@media (min-width: 900px) {
    .portal-body-shell:has(.cart-sticky-summary) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 1.5rem;
        align-items: start;
        padding-right: 2rem;
    }

    .portal-content {
        min-width: 0;
    }

    .cart-sticky-summary {
        display: block;
        position: sticky;
        top: 7rem;
        padding-top: 1.5rem;
    }
}

.portal-section {
    margin-top: 1.5rem;
}

.portal-content .page-hero h1,
.portal-content .page-hero .lead {
    max-width: none;
}

.portal-content .account-form-container,
.portal-content .address-form-panel,
.portal-content .admin-form,
.portal-content .admin-table {
    width: 100%;
    max-width: none;
}

.portal-content .account-form-container,
.portal-content .address-form-panel,
.portal-content .admin-form {
    padding: 2rem 2.25rem;
}

.product-browse-panel {
    display: grid;
    gap: 1.5rem;
}

.product-search-card,
.product-results-card {
    width: 100%;
}

.product-browse-summary {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: rgba(25, 49, 51, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
}

.product-browse-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
    gap: 1rem;
    align-items: end;
}

.product-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-tile-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.profile-tabs-panel {
    display: grid;
    gap: 1.5rem;
}

.profile-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(25, 49, 51, 0.08);
}

.profile-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== Dashboard / Workspace ===== */

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: 1.2rem;
    align-items: stretch;
}

.dashboard-panel {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
    border: 1px solid rgba(25, 49, 51, 0.08);
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 18px 38px rgba(25, 49, 51, 0.04);
}

.dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: #f7faf7;
    border: 1px solid rgba(25, 49, 51, 0.06);
}

.dashboard-stat span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(25, 49, 51, 0.52);
}

.dashboard-stat strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--sea);
}

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

.dashboard-card {
    display: block;
    padding: 1.35rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(25, 49, 51, 0.08);
    box-shadow: 0 18px 38px rgba(25, 49, 51, 0.04);
}

.dashboard-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.dashboard-card p {
    margin: 0;
    color: var(--muted);
}

.dashboard-card-emphasis {
    background: linear-gradient(135deg, rgba(20, 236, 145, 0.08), rgba(255, 255, 255, 0.98));
}

.dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-table-card {
    padding-bottom: 1rem;
}

.mini-order-list {
    display: flex;
    flex-direction: column;
}

.mini-order-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(25, 49, 51, 0.08);
    color: var(--sea);
}

.mini-order-row:first-child {
    border-top: 0;
}

.mini-order-number {
    font-weight: 700;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.2rem;
}

.quick-action-list a,
.quick-action-list .button {
    justify-content: flex-start;
}

/* ===== Catalogue ===== */

.catalogue-workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.catalogue-filters .dashboard-card {
    position: sticky;
    top: 1.5rem;
}

.catalogue-results-header {
    margin-bottom: 0.8rem;
}

.catalogue-table {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(25, 49, 51, 0.08);
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(25, 49, 51, 0.04);
}

.catalogue-table-head,
.catalogue-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 0.65fr 0.55fr 0.55fr 220px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
}

.catalogue-table-head {
    background: #f7faf7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(25, 49, 51, 0.5);
}

.catalogue-row {
    border-top: 1px solid rgba(25, 49, 51, 0.08);
}

.catalogue-row p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.catalogue-row.compact {
    grid-template-columns: 1fr auto;
}

.catalogue-link {
    font-weight: 700;
    color: var(--sea);
}

.catalogue-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* ===== Product ===== */

.product-workspace {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-main-card {
    padding: 1.75rem;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(25, 49, 51, 0.08);
    box-shadow: 0 18px 38px rgba(25, 49, 51, 0.04);
}

.product-heading-block {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 320px;
    gap: 1.2rem;
}

.product-heading-block h1 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.product-meta-grid {
    display: grid;
    gap: 0.75rem;
}

.product-meta-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #f7faf7;
    border: 1px solid rgba(25, 49, 51, 0.06);
}

.product-meta-grid span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(25, 49, 51, 0.52);
}

.product-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 320px;
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-action-panel .dashboard-card {
    position: sticky;
    top: 1.5rem;
}

.product-detail-page {
    display: grid;
    gap: 1rem;
}

.product-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(320px, 420px);
    justify-content: center;
    border: 1px solid var(--stroke);
    border-radius: 0.55rem;
    overflow: hidden;
    background: #ffffff;
}

.product-detail-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(340px, 36vw, 520px);
    padding: clamp(1rem, 2vw, 1.75rem);
    background: #ffffff;
}

.product-detail-media .product-visual {
    flex: none;
    width: min(100%, 520px);
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 1rem;
    background: #ffffff;
    border: 0;
}

.product-detail-media .product-visual-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: clamp(0.75rem, 1.8vw, 1.5rem);
    background: transparent;
    box-shadow: none;
}

.product-detail-summary {
    padding: clamp(1rem, 2vw, 1.6rem);
    display: grid;
    gap: 1rem;
    background: #ffffff;
    min-width: 0;
}

.product-detail-header h1 {
    margin: 0.45rem 0 0.3rem;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.product-category-pill {
    margin: 0;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 125, 107, 0.35);
    background: rgba(46, 125, 107, 0.08);
    color: #0f2f35;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    font-weight: 700;
}

.product-detail-sku {
    margin: 0;
    color: rgba(25, 49, 51, 0.6);
    font-size: 0.82rem;
}

.product-starting-price {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--stroke);
    border-radius: 0.4rem;
    background: #ffffff;
    display: grid;
    gap: 0.35rem;
}

.product-starting-price span {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: rgba(25, 49, 51, 0.6);
}

.product-starting-price strong {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.15rem);
    line-height: 1;
}

.product-starting-price strong small {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(25, 49, 51, 0.75);
}

.product-starting-price p {
    margin: 0;
    color: rgba(25, 49, 51, 0.7);
    font-size: 0.78rem;
}

.product-key-values {
    border: 1px solid var(--stroke);
    border-radius: 0.4rem;
    overflow: hidden;
    background: #fff;
}

.product-key-values > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.72rem 0.85rem;
    font-size: 0.9rem;
}

.product-key-values > div + div {
    border-top: 1px solid var(--stroke);
}

.product-key-values > div span {
    color: rgba(25, 49, 51, 0.72);
}

.product-key-values > div strong {
    color: #0f2f35;
    text-align: right;
    overflow-wrap: anywhere;
}

.product-add-to-cart {
    width: fit-content;
    max-width: 100%;
    min-width: 12rem;
    align-self: start;
    border-radius: 999px;
    min-height: 2.3rem;
    padding-block: 0.55rem;
    padding-inline: 1.35rem;
    background: #2f7f69;
    border-color: #2f7f69;
}

.product-add-to-cart:hover {
    background: #286f5c;
    border-color: #286f5c;
}

.product-detail-summary-copy {
    margin: 0;
    padding-top: 0.7rem;
    border-top: 1px solid var(--stroke);
    color: rgba(25, 49, 51, 0.74);
    font-size: 0.85rem;
}

.product-detail-accordion {
    border: 1px solid var(--stroke);
    border-radius: 0.55rem;
    overflow: hidden;
    background: #fff;
}

.product-detail-accordion details {
    border-top: 1px solid var(--stroke);
    padding: 0;
}

.product-detail-accordion details:first-child {
    border-top: none;
}

.product-detail-accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.product-detail-accordion summary::-webkit-details-marker {
    display: none;
}

.product-detail-accordion details > p,
.product-detail-grid-rows,
.product-tier-cards,
.product-detail-shipping,
.product-documents-list {
    padding: 0 1.1rem 1rem;
    margin: 0;
}

.product-detail-grid-rows {
    display: grid;
    gap: 0.6rem;
}

.product-detail-grid-rows > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(25, 49, 51, 0.1);
}

.product-detail-grid-rows > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-detail-grid-rows span {
    color: rgba(25, 49, 51, 0.7);
    font-size: 0.88rem;
}

.product-detail-grid-rows strong {
    color: #0f2f35;
    font-size: 0.9rem;
}

.product-tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.product-tier-overview {
    padding: 0 1.1rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.product-tier-overview-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(25, 49, 51, 0.12);
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #fbfcfc 0%, #f1f5f3 100%);
    display: grid;
    gap: 0.35rem;
}

.product-tier-overview-card.accent {
    background: linear-gradient(135deg, #102d39 0%, #173f42 100%);
    border-color: #102d39;
    color: #fff;
}

.product-tier-overview-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(25, 49, 51, 0.6);
}

.product-tier-overview-card.accent .product-tier-overview-label {
    color: rgba(255, 255, 255, 0.72);
}

.product-tier-overview-card strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
}

.product-tier-overview-card p {
    margin: 0;
    color: rgba(25, 49, 51, 0.74);
    font-size: 0.86rem;
}

.product-tier-overview-card.accent p {
    color: rgba(255, 255, 255, 0.82);
}

.product-tier-card {
    border: 1px solid rgba(25, 49, 51, 0.12);
    border-radius: 0.85rem;
    padding: 0.95rem;
    display: grid;
    gap: 0.9rem;
    background: linear-gradient(180deg, #fbfcfc 0%, #f5f8f7 100%);
    box-shadow: 0 16px 32px rgba(16, 45, 57, 0.06);
}

.product-tier-card.is-entry {
    border-color: rgba(47, 127, 105, 0.35);
    background: linear-gradient(180deg, rgba(47, 127, 105, 0.08) 0%, #fbfcfc 100%);
}

.product-tier-card.is-highlight {
    background: #102d39;
    border-color: #102d39;
    color: #fff;
    box-shadow: 0 20px 36px rgba(16, 45, 57, 0.18);
}

.product-tier-card-header {
    min-height: 1.2rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.product-tier-badge {
    width: fit-content;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(20, 236, 145, 0.12);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #14c980;
}

.product-tier-badge.neutral {
    background: rgba(25, 49, 51, 0.08);
    color: rgba(25, 49, 51, 0.7);
}

.product-tier-card.is-highlight .product-tier-badge {
    background: rgba(20, 236, 145, 0.16);
    color: #7ef8c3;
}

.product-tier-card.is-highlight .product-tier-badge.neutral {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.product-tier-quantity,
.product-tier-price-block {
    display: grid;
    gap: 0.18rem;
}

.product-tier-qty {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1;
}

.product-tier-unit,
.product-tier-per {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(25, 49, 51, 0.7);
}

.product-tier-card.is-highlight .product-tier-unit,
.product-tier-card.is-highlight .product-tier-per {
    color: rgba(255, 255, 255, 0.78);
}

.product-tier-price {
    margin: 0;
    font-size: 1.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.product-tier-savings {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(25, 49, 51, 0.1);
    color: rgba(25, 49, 51, 0.76);
    font-size: 0.82rem;
    line-height: 1.45;
}

.product-tier-card.is-highlight .product-tier-savings {
    border-top-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
}

.product-detail-shipping {
    display: grid;
    gap: 0.8rem;
}

.product-batch-information {
    padding: 0 1.1rem 1rem;
    display: grid;
    gap: 1rem;
}

.product-batch-copy {
    margin: 0;
    color: rgba(25, 49, 51, 0.74);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 72ch;
}

.product-batch-standard {
    border: 1px solid rgba(25, 49, 51, 0.1);
    border-radius: 0.8rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, #fbfcfc 0%, #f5f8f7 100%);
}

.product-batch-standard h4 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    color: #0f2f35;
}

.product-batch-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.product-batch-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #0f2f35;
    font-size: 0.88rem;
    line-height: 1.5;
}

.product-batch-checklist li::before {
    content: "\2713";
    color: #2f7f69;
    font-weight: 700;
    flex-shrink: 0;
}

.product-detail-shipping > div {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(25, 49, 51, 0.1);
}

.product-detail-shipping > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-detail-shipping h4,
.product-document-row h4 {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-family: var(--font-heading);
}

.product-detail-shipping p,
.product-document-row p,
.product-detail-accordion details > p {
    margin: 0;
    color: rgba(25, 49, 51, 0.74);
    font-size: 0.83rem;
    line-height: 1.55;
}

.product-documents-list {
    display: grid;
    gap: 0.75rem;
}

.product-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--stroke);
    border-radius: 0.45rem;
    padding: 0.65rem 0.75rem;
    background: #fafcfb;
}

/* ===== Responsive portal ===== */

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalogue-table-head,
    .catalogue-row {
        grid-template-columns: minmax(0, 1.4fr) 0.7fr 0.6fr 0.7fr 180px;
    }
}

@media (max-width: 980px) {
    .portal-brand-logo-wrap {
        width: 3rem;
        height: 3rem;
    }

    .portal-topbar,
    .portal-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .portal-topbar-primary {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-topnav,
    .portal-topbar-actions {
        width: 100%;
    }

    .dashboard-hero,
    .dashboard-split,
    .catalogue-workspace,
    .product-heading-block,
    .product-content-grid {
        grid-template-columns: 1fr;
    }

    .catalogue-table-head {
        display: none;
    }

    .catalogue-row,
    .mini-order-row {
        grid-template-columns: 1fr;
    }

    .catalogue-row-actions {
        justify-content: flex-start;
    }

    .product-detail-hero {
        grid-template-columns: 1fr;
    }

    .product-detail-media {
        min-height: 300px;
        padding: 0;
    }

    .product-detail-media .product-visual {
        width: min(100%, 420px);
        min-height: 0;
        max-height: none;
    }

    .product-detail-media .product-visual-photo {
        padding: clamp(0.75rem, 3vw, 1.25rem);
        object-fit: contain;
    }

    .product-detail-header h1 {
        font-size: 2rem;
    }

    .product-tier-overview {
        grid-template-columns: 1fr;
    }

    .product-detail-grid-rows > div {
        grid-template-columns: 1fr;
    }

    .product-key-values > div {
        flex-direction: column;
    }

    .product-key-values > div strong {
        text-align: left;
    }

    .product-add-to-cart {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .product-detail-summary {
        gap: 0.85rem;
    }

    .product-detail-media {
        min-height: 240px;
    }

    .product-detail-accordion summary,
    .product-detail-accordion details > p,
    .product-tier-cards,
    .product-tier-overview,
    .product-detail-shipping,
    .product-documents-list,
    .product-batch-information {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .product-document-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Effira Structural Pass ===== */

:root {
    --effira-mist: #f5f8f5;
    --effira-panel: rgba(255, 255, 255, 0.98);
    --effira-border: rgba(25, 49, 51, 0.1);
    --effira-soft: rgba(20, 236, 145, 0.08);
    --effira-shadow: 0 10px 24px rgba(25, 49, 51, 0.035);
}

body {
    background:
        linear-gradient(180deg, #f7faf7 0%, #f2f6f3 42%, #eef4f0 100%);
}

.portal-topbar {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: rgba(247, 250, 247, 0.94);
    border-bottom: 1px solid rgba(25, 49, 51, 0.09);
    box-shadow: 0 8px 18px rgba(25, 49, 51, 0.025);
}

.portal-topbar-primary {
    gap: 1.4rem;
}

.portal-topbar-brand {
    flex: 0 0 auto;
}

.portal-brand-logo-wrap {
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6f3 100%);
    box-shadow: 0 8px 18px rgba(25, 49, 51, 0.08);
}

.portal-topnav {
    flex: 1 1 auto;
    gap: 0.4rem;
}

.portal-topnav a {
    position: relative;
    padding: 0.72rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.89rem;
    letter-spacing: -0.01em;
}

.portal-topnav a.active,
.portal-topnav a:hover {
    border-color: rgba(20, 236, 145, 0.16);
    background: rgba(20, 236, 145, 0.1);
}

.portal-topbar-actions {
    flex: 0 0 auto;
}

.portal-chip {
    border: 1px solid rgba(25, 49, 51, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.portal-signout-button {
    min-width: auto;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    border-radius: 999px;
    box-shadow: none;
}

.portal-content {
    padding-top: 2rem;
}

.page-hero {
    padding: 2.8rem 2rem 2rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(20, 236, 145, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 245, 0.98) 100%);
    border: 1px solid var(--effira-border);
    box-shadow: var(--effira-shadow);
}

.page-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.25rem, 3.4vw, 3.8rem);
    line-height: 1;
}

.page-hero .lead {
    max-width: 56ch;
    color: rgba(25, 49, 51, 0.72);
}

.section {
    margin-top: 1.5rem;
}

.header-actions-row {
    border: 1px solid var(--effira-border);
    border-radius: 1.7rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(25, 49, 51, 0.98) 0%, rgba(32, 62, 64, 0.96) 54%, rgba(38, 72, 73, 0.94) 100%);
    box-shadow: var(--effira-shadow);
}

.header-actions-inner {
    padding: 1.15rem 1.4rem;
}

.header-actions-inner h3 {
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.header-actions-inner p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 52ch;
}

.header-actions-controls .button.ghost {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.header-actions-controls .button.primary {
    box-shadow: none;
}

.section-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(25, 49, 51, 0.09);
}

.section-header h2,
.profile-tab-header h2 {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.02;
}

.product-tile,
.product-card,
.category-card,
.admin-card,
.order-card,
.admin-order-card,
.address-card,
.page-hero-card,
.admin-form,
.auth-form-container,
.account-form-container,
.admin-table,
.address-form-panel,
.dashboard-card {
    background: var(--effira-panel);
    border: 1px solid var(--effira-border);
    box-shadow: var(--effira-shadow);
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.product-tile {
    min-height: 100%;
    padding: 0;
}

.product-tile .tile-body {
    padding: 1.4rem 1.4rem 0.55rem;
}

.product-tile .tile-bottom {
    padding: 0 1.4rem 1.35rem;
}

.product-tile h4 {
    font-size: 1.08rem;
    margin-bottom: 0.45rem;
}

.product-tile p,
.product-card p,
.dashboard-card p,
.order-card-body,
.address-card p,
.empty-cart p {
    color: rgba(25, 49, 51, 0.68);
}

.dashboard-card,
.admin-card {
    padding: 1.45rem;
}

.dashboard-card-emphasis,
.address-card.default,
.status-badge {
    background:
        linear-gradient(135deg, rgba(20, 236, 145, 0.09), rgba(255, 255, 255, 0.98));
}

.account-form-container,
.admin-form,
.address-form-panel {
    border-radius: 1.7rem;
    padding: 2rem 2.1rem;
}

.profile-tab-nav {
    gap: 0.65rem;
}

.profile-tab-nav .button {
    min-height: 2.55rem;
    padding: 0.65rem 1rem;
}

.form-actions {
    gap: 0.65rem;
}

.order-card,
.address-card {
    padding: 1.3rem 1.4rem;
}

.order-card-header {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(25, 49, 51, 0.07);
}

.order-card-body {
    margin-top: 0.9rem;
}

.order-card-actions {
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(25, 49, 51, 0.07);
}

.empty-cart {
    padding: 2rem 1.5rem;
    border: 1px dashed rgba(25, 49, 51, 0.14);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.72);
}

.admin-table th {
    background: #f4f7f4;
}

.button.primary {
    border-radius: 999px;
}

.button.ghost,
.button.outline {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
}

.auth-login-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 245, 0.95) 100%);
}

.auth-login-intro {
    background:
        radial-gradient(circle at top right, rgba(20, 236, 145, 0.16), transparent 28%),
        linear-gradient(160deg, rgba(25, 49, 51, 0.99) 0%, rgba(28, 56, 58, 0.97) 58%, rgba(34, 69, 70, 0.94) 100%);
}

@media (max-width: 980px) {
    .portal-topbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .portal-topnav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.15rem;
    }

    .header-actions-inner {
        grid-template-columns: 1fr;
    }

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

/* ===== Effira Brand Guide Alignment ===== */

:root {
    --primary: #2E7D6B;
    --text-primary: #1F2933;
    --text-secondary: #6B7280;
    --background: #FFFFFF;
    --surface: #F5F7F9;
    --surface-soft: #F8FAFB;
    --border-soft: #E3E8ED;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
    --shadow-sm: 0 2px 10px rgba(31, 41, 51, 0.04);
    --font-heading: "IBM Plex Sans", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    --ink: var(--text-primary);
    --muted: var(--text-secondary);
    --paper: var(--background);
    --paper-strong: var(--surface);
    --sea: var(--text-primary);
    --accent: var(--primary);
    --accent-hover: #276a5b;
    --accent-light: rgba(46, 125, 107, 0.08);
    --stroke: var(--border-soft);
    --card: var(--background);
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

html,
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--surface);
}

body {
    letter-spacing: 0;
    line-height: 1.65;
    background:
        linear-gradient(180deg, #f8fafb 0%, #f5f7f9 45%, #f3f6f8 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.portal-brand-title,
.portal-topbar-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

p,
li,
label,
input,
textarea,
select,
button {
    font-family: var(--font-body);
}

.portal-topbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.header-inner,
.portal-topbar {
    max-width: 1200px;
    margin: 0 auto;
}

.header-inner {
    --header-block-padding: 1.35rem;
    padding-top: var(--header-block-padding);
    padding-bottom: var(--header-block-padding);
}

.main-nav a,
.portal-topnav a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover,
.portal-topnav a.active,
.portal-topnav a:hover {
    color: var(--text-primary);
}

.main-nav a.active {
    background: #f4f7f4;
}

.portal-topnav a {
    border-radius: 0;
    padding: 0 0.9rem;
    border: 1px solid transparent;
}

.portal-topnav a.active,
.portal-topnav a:hover {
    background: rgba(46, 125, 107, 0.06);
    border-color: rgba(46, 125, 107, 0.14);
}

.portal-brand-logo-wrap,
.brand-logo {
    box-shadow: none;
}

.portal-topbar .portal-brand-kicker,
.eyebrow,
.portal-topbar-label,
.portal-nav-group-label,
.admin-table th {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.eyebrow::before {
    opacity: 0.3;
}

.portal-chip,
.header-link,
.badge,
.status-badge {
    border-radius: 999px;
}

.portal-chip {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    box-shadow: none;
}

.button {
    min-height: 2.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
}

.button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: none;
}

.button.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button.ghost,
.button.outline,
.portal-signout-button {
    background: #ffffff;
    border-color: var(--border-soft);
    color: var(--text-primary);
}

.button.outline.danger {
    background: #fff5f5;
    border-color: rgba(220, 38, 38, 0.22);
    color: #b91c1c;
}

.button.ghost:hover,
.button.outline:hover,
.portal-signout-button:hover {
    background: var(--surface-soft);
    border-color: #cfd6dd;
}

.button.outline.danger:hover {
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.32);
    color: #991b1b;
}

.page-hero,
.hero,
.header-actions-row,
.product-tile,
.product-card,
.category-card,
.admin-card,
.order-card,
.admin-order-card,
.address-card,
.page-hero-card,
.admin-form,
.auth-form-container,
.account-form-container,
.admin-table,
.address-form-panel,
.dashboard-card,
.auth-login-panel {
    background: var(--background);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.page-hero,
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: none;
}

.page-hero {
    padding: 2.5rem 2rem 1.8rem;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    max-width: 16ch;
}

.page-hero .lead,
.hero .lead {
    max-width: 58ch;
    color: var(--text-secondary);
    font-size: 1rem;
}

.section {
    margin-top: 2.25rem;
}

.section-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-soft);
}

.section-header h2,
.profile-tab-header h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.header-actions-row {
    background: var(--text-primary);
    border-color: rgba(31, 41, 51, 0.1);
}

.header-actions-inner {
    padding: 1rem 1.25rem;
}

.header-actions-inner h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.header-actions-inner p {
    color: rgba(255, 255, 255, 0.74);
}

.header-actions-controls .button.ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.product-grid,
.account-dashboard,
.admin-grid {
    gap: 1rem;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-tile,
.product-card,
.dashboard-card,
.admin-card,
.order-card,
.address-card {
    box-shadow: none;
}

.product-tile .tile-body,
.product-tile .tile-bottom,
.dashboard-card,
.admin-card,
.order-card,
.address-card,
.address-form-panel,
.admin-form,
.account-form-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.product-tile .tile-body {
    padding-top: 1.35rem;
}

.product-tile .tile-bottom {
    padding-bottom: 1.35rem;
}

.product-tile h4,
.product-card h3,
.dashboard-card h3,
.order-card .order-number {
    letter-spacing: -0.02em;
}

.product-tile p,
.product-card p,
.dashboard-card p,
.order-card-body,
.address-card p,
.empty-cart p,
.profile-tab-header p,
.product-browse-summary {
    color: var(--text-secondary);
}

input,
textarea,
select {
    min-height: 2.85rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: none;
}

textarea {
    min-height: 6.5rem;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(46, 125, 107, 0.55);
    box-shadow: 0 0 0 3px rgba(46, 125, 107, 0.08);
    background: #ffffff;
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-tab-nav {
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.profile-tab-nav .button {
    min-height: 2.45rem;
    border-radius: var(--radius-md);
}

.status-badge {
    background: rgba(46, 125, 107, 0.08);
    border: 1px solid rgba(46, 125, 107, 0.12);
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 700;
}

.order-card-header,
.order-card-actions {
    border-color: var(--border-soft);
}

.empty-cart {
    background: #ffffff;
    border: 1px dashed #d7dde3;
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.auth-shell {
    background: linear-gradient(180deg, #f7fafb 0%, #f3f6f8 100%);
}

.auth-login-panel {
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(31, 41, 51, 0.08);
}

.auth-login-intro {
    background: linear-gradient(180deg, #009966 0%, #193133 100%);
}

.auth-login-intro .eyebrow,
.auth-login-note,
.auth-login-intro .lead {
    color: rgba(255, 255, 255, 0.78);
}

.auth-login-logo {
    width: min(100%, 18rem);
    max-width: 100%;
    height: auto;
    max-height: 7rem;
    margin-bottom: 1rem;
    display: block;
}

.site-footer {
    background: #1F2933;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: #ffffff;
}

@media (max-width: 980px) {
    .header-inner,
    .portal-topbar,
    .portal-content,
    .main-content,
    .footer-inner,
    .footer-bottom {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .header-actions-inner {
        grid-template-columns: 1fr;
    }

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

/* ===== Portal Menu Behavior ===== */

.portal-topbar {
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.portal-topbar-primary {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 1.75rem 0 1.5rem;
}

.portal-topbar-brand {
    gap: 0;
    flex: 0 0 auto;
    align-self: center;
    padding: 1.15rem 0;
}

.portal-topbar-brand,
.portal-topbar-brand img {
    display: flex;
    align-items: center;
}

.portal-brand-copy {
    display: none;
}

.portal-brand-logo {
    width: 8rem;
    height: auto;
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.portal-brand-logo-wrap {
    display: contents;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.portal-topnav {
    justify-self: center;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    overflow: visible;
}

.portal-topbar-actions {
    justify-self: end;
    align-self: stretch;
    margin-left: auto;
    display: flex;
    align-items: stretch;
}

.portal-topbar-actions > :not(.portal-topnav) {
    align-self: center;
}

@media (max-width: 980px) {
    .portal-topbar {
        padding: 0;
    }

    .portal-topbar-primary {
        display: flex;
        padding: 1.35rem 1.25rem;
    }

    .portal-topnav {
        margin-left: 0;
    }
}

/* ===== Theme Palette ===== */

:root {
    --primary: #2E7D6B;
    --primary-soft: rgba(46, 125, 107, 0.08);
    --primary-border: rgba(46, 125, 107, 0.18);
    --text-primary: #1F2933;
    --text-secondary: #6B7280;
    --background: #FFFFFF;
    --surface: #F5F7F9;
    --surface-soft: #F8FAFB;
    --surface-strong: #EEF3F6;
    --border-soft: #E3E8ED;
    --header-bg: #071820;
    --card-bg: #FFFFFF;
    --muted-strong: rgba(31, 41, 51, 0.72);
    --shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
    --shadow-sm: 0 2px 10px rgba(31, 41, 51, 0.04);
}

html,
body {
    background: var(--surface);
    color: var(--text-primary);
}

body {
    background: linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 48%, var(--surface-strong) 100%);
}

.site-header,
.portal-topbar,
.site-footer,
.page-hero,
.hero,
.header-actions-row,
.product-tile,
.product-card,
.category-card,
.admin-card,
.order-card,
.admin-order-card,
.address-card,
.page-hero-card,
.admin-form,
.auth-form-container,
.account-form-container,
.admin-table,
.address-form-panel,
.dashboard-card,
.auth-login-panel,
.empty-cart,
.portal-chip,
.button.ghost,
.button.outline,
.portal-signout-button,
input,
textarea,
select {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header,
.portal-topbar {
    background-color: #071820;
    background-image: url("/images/footer-gradient.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
}

.page-hero,
.hero,
.product-tile,
.product-card,
.category-card,
.admin-card,
.order-card,
.admin-order-card,
.address-card,
.page-hero-card,
.admin-form,
.auth-form-container,
.account-form-container,
.admin-table,
.address-form-panel,
.dashboard-card,
.auth-login-panel,
.empty-cart {
    background: var(--card-bg);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.header-actions-row {
    background: linear-gradient(90deg, var(--text-primary) 0%, color-mix(in srgb, var(--text-primary) 92%, var(--primary) 8%) 100%);
}

.portal-chip,
.button.ghost,
.button.outline,
.portal-signout-button {
    background: color-mix(in srgb, var(--card-bg) 92%, var(--surface) 8%);
    border-color: var(--border-soft);
    color: var(--text-primary);
}

.button.primary {
    background: var(--primary);
    border-color: var(--primary);
}

.button.primary:hover {
    background: color-mix(in srgb, var(--primary) 88%, black 12%);
    border-color: color-mix(in srgb, var(--primary) 88%, black 12%);
}

.portal-topnav a,
.main-nav a,
.portal-topbar .portal-brand-kicker,
.eyebrow,
.product-tile p,
.product-card p,
.dashboard-card p,
.order-card-body,
.address-card p,
.empty-cart p,
.product-browse-summary,
.header-actions-inner p,
.page-hero .lead,
.hero .lead {
    color: var(--text-secondary);
}

.portal-topnav a.active,
.portal-topnav a:hover {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--text-primary);
}

.portal-topbar .portal-brand-title,
h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.portal-topbar-title,
label {
    color: var(--text-primary);
}

input,
textarea,
select,
.portal-chip {
    background: color-mix(in srgb, var(--card-bg) 96%, var(--surface) 4%);
    border-color: var(--border-soft);
    color: var(--text-primary);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-border);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.status-badge {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary);
}

.portal-topbar-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    background: rgba(20, 236, 145, 0.12);
}

.inline-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(20, 236, 145, 0.25);
    border-radius: var(--radius-md);
    color: var(--text);
    background: rgba(20, 236, 145, 0.12);
}

.portal-signout-button {
    width: 2.9rem;
    min-width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    white-space: nowrap;
}

.portal-signout-button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    display: block;
    flex: 0 0 auto;
    pointer-events: none;
}

.portal-signout-button > :not(svg) {
    display: none !important;
}

.admin-products-page {
    display: grid;
    gap: 1.25rem;
}

.admin-products-header,
.admin-products-header-actions,
.admin-products-overview,
.admin-products-toolbar-meta,
.admin-products-bulkbar,
.admin-products-bulkbar-actions,
.admin-product-preview-tags {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-products-header,
.admin-products-bulkbar,
.admin-product-preview-tags {
    justify-content: space-between;
}

.admin-products-header-actions,
.admin-products-toolbar-meta,
.admin-products-bulkbar-actions,
.admin-product-preview-tags {
    flex-wrap: wrap;
}

.admin-products-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-products-stat span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(25, 49, 51, 0.48);
}

.admin-products-stat strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.5rem;
    line-height: 1;
}

.admin-products-toolbar {
    display: grid;
    gap: 1rem;
}

.admin-products-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 200px 200px;
    gap: 1rem;
    margin-bottom: 0;
}

.admin-product-editor-form,
.admin-product-editor-sidebar,
.admin-product-checklist ul {
    display: grid;
    gap: 0.85rem;
}

.admin-product-preview h4 {
    margin: 0;
}

.admin-product-editor {
    display: grid;
    gap: 0.9rem;
}

.admin-editor-section .section-header {
    margin-bottom: 0;
}

.admin-editor-section.has-error {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.14);
}

.admin-editor-grid-two,
.admin-editor-grid-three {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-editor-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-editor-toggles {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-toggle-card {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: #f7faf7;
    border: 1px solid rgba(25, 49, 51, 0.06);
}

.admin-toggle-card input {
    margin: 0.15rem 0 0;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.admin-toggle-card span {
    display: block;
    font-weight: 700;
}

.admin-toggle-card small {
    display: block;
    margin-top: 0.25rem;
    color: rgba(25, 49, 51, 0.62);
    line-height: 1.45;
}

.admin-product-checklist ul {
    margin: 0;
    padding-left: 1.1rem;
}

.admin-product-checklist li {
    color: rgba(25, 49, 51, 0.72);
    line-height: 1.5;
}

.admin-product-checklist li.is-complete {
    color: #145f4e;
    font-weight: 600;
}

.admin-products-table-categories,
.admin-products-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

@media (max-width: 1100px) {
    .admin-products-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .admin-products-filters,
    .admin-editor-grid-two,
    .admin-editor-grid-three,
    .admin-editor-toggles {
        grid-template-columns: 1fr;
    }
}

.portal-topbar .portal-topnav a:not(.nav-pill) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.88);
}

.portal-topbar .portal-topnav a.active:not(.nav-pill),
.portal-topbar .portal-topnav a:hover:not(.nav-pill) {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.product-search-card,
.product-results-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 248, 0.98) 100%);
    border-color: rgba(46, 125, 107, 0.14);
    box-shadow: 0 24px 60px rgba(31, 41, 51, 0.08), 0 2px 8px rgba(46, 125, 107, 0.05);
}

.product-tile {
    border: 1px solid rgba(46, 125, 107, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 20px 42px rgba(31, 41, 51, 0.06);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 125, 107, 0.24);
    box-shadow: 0 28px 58px rgba(31, 41, 51, 0.1);
}

.product-tile .placeholder-image {
    background: radial-gradient(circle at top left, rgba(54, 237, 147, 0.22), transparent 48%),
        linear-gradient(135deg, #f4fff8 0%, #dcf8e8 100%);
}

.product-tile .button.primary {
    box-shadow: 0 14px 28px rgba(46, 125, 107, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.product-tile .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(46, 125, 107, 0.28);
}

.product-tile .button.ghost {
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.product-tile .button.ghost:hover {
    transform: translateY(-1px);
}

/* ===== Catalogue Refresh ===== */

.catalogue-page {
    display: grid;
    gap: 1.5rem;
}

.catalogue-hero,
.catalogue-filter-card,
.catalogue-featured,
.catalogue-results {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 248, 0.98) 100%);
    border: 1px solid rgba(46, 125, 107, 0.14);
    border-radius: 1.75rem;
    box-shadow: 0 24px 60px rgba(31, 41, 51, 0.08), 0 2px 8px rgba(46, 125, 107, 0.05);
}

.catalogue-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 2rem;
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(54, 237, 147, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(46, 125, 107, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 246, 0.98) 100%);
}

.catalogue-hero-copy {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.catalogue-kicker,
.catalogue-featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(46, 125, 107, 0.78);
}

.catalogue-kicker::before,
.catalogue-featured-tag::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: rgba(46, 125, 107, 0.35);
}

.catalogue-hero h1 {
    margin: 0;
    max-width: 12ch;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.catalogue-hero-description {
    margin: 0;
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(31, 41, 51, 0.76);
}

.catalogue-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.6rem;
}

.catalogue-hero-metrics div,
.catalogue-featured-details div {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(46, 125, 107, 0.1);
}

.catalogue-hero-metrics span,
.catalogue-featured-details span,
.catalogue-product-price span {
    color: rgba(31, 41, 51, 0.56);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.catalogue-hero-metrics strong,
.catalogue-featured-details strong,
.catalogue-product-price strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.catalogue-hero-visual {
    display: grid;
    place-items: center;
    min-height: 100%;
}

.catalogue-filter-card,
.catalogue-featured,
.catalogue-results {
    padding: 2rem;
}

.catalogue-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.8fr);
    gap: 1rem;
}

.catalogue-filter-pills {
    margin-top: 1.25rem;
}

.catalogue-intro-copy {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
    max-width: 78ch;
}

.catalogue-intro-copy p {
    margin: 0;
    color: rgba(31, 41, 51, 0.72);
    font-size: 0.98rem;
    line-height: 1.65;
}

.catalogue-carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(31, 41, 51, 0.64);
    font-weight: 700;
}

.catalogue-featured-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: center;
    padding: 1.4rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 250, 247, 0.9) 100%);
    border: 1px solid rgba(46, 125, 107, 0.12);
}

.catalogue-featured-media {
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 1rem;
    border-radius: 1.3rem;
    background:
        radial-gradient(circle at top left, rgba(54, 237, 147, 0.18), transparent 32%),
        linear-gradient(180deg, #fbfefd 0%, #eef7f1 100%);
}

.catalogue-featured-copy {
    display: grid;
    gap: 1rem;
}

.catalogue-featured-copy h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.04em;
}

.catalogue-featured-description {
    margin: 0;
    color: rgba(31, 41, 51, 0.74);
    line-height: 1.7;
}

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

.catalogue-featured-points {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(31, 41, 51, 0.8);
    display: grid;
    gap: 0.55rem;
}

.catalogue-featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.catalogue-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.catalogue-product-card {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(46, 125, 107, 0.14);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(31, 41, 51, 0.06);
}

.catalogue-product-card:hover {
    border-color: rgba(46, 125, 107, 0.24);
    box-shadow: 0 28px 58px rgba(31, 41, 51, 0.1);
}

.catalogue-product-card-header,
.catalogue-product-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.catalogue-product-card-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.catalogue-product-visual-shell {
    padding: 0.9rem;
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at top left, rgba(54, 237, 147, 0.14), transparent 34%),
        linear-gradient(180deg, #fdfefe 0%, #f0f7f2 100%);
}

.catalogue-product-description {
    margin: 0;
    color: rgba(31, 41, 51, 0.74);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalogue-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.catalogue-product-spec {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.95rem;
    background: rgba(46, 125, 107, 0.08);
    min-width: 0;
}

.catalogue-product-spec-label {
    color: rgba(31, 41, 51, 0.54);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.catalogue-product-spec strong {
    margin: 0;
    color: rgba(31, 41, 51, 0.88);
    line-height: 1.3;
    font-size: 0.92rem;
}

.catalogue-product-footer {
    display: grid;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(46, 125, 107, 0.12);
}

.catalogue-product-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.catalogue-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.catalogue-product-actions .button,
.catalogue-card-quantity {
    flex: 1 1 0;
}

.catalogue-card-quantity {
    justify-content: center;
}

.product-visual {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
}

.product-visual.compact {
    width: min(100%, 280px);
    min-height: 0;
}

.product-visual-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
    background: #ffffff;
    box-shadow: 0 24px 40px rgba(31, 41, 51, 0.12);
}

.product-visual-glow {
    position: absolute;
    inset: auto 6% 0;
    height: 28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 125, 107, 0.14) 0%, rgba(46, 125, 107, 0) 72%);
    filter: blur(8px);
}

.product-visual-box,
.product-visual-vial,
.product-visual-pen {
    position: absolute;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ef 100%);
    box-shadow: 0 24px 40px rgba(31, 41, 51, 0.10);
}

.product-visual-box {
    top: 12%;
    right: 8%;
    width: 28%;
    height: 66%;
    border-radius: 1rem;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.55rem;
}

.product-visual-box-mark {
    width: 0.45rem;
    height: 3.9rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #14ec91 0%, #2E7D6B 100%);
}

.product-visual-box-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(31, 41, 51, 0.88);
}

.product-visual-box-sku {
    font-size: 0.65rem;
    color: rgba(31, 41, 51, 0.55);
    letter-spacing: 0.08em;
}

.product-visual-vial {
    left: 46%;
    top: 20%;
    width: 9%;
    height: 43%;
    border-radius: 1rem;
}

.product-visual-vial-cap {
    position: absolute;
    left: 16%;
    top: 5%;
    width: 68%;
    height: 16%;
    border-radius: 999px;
    background: linear-gradient(180deg, #eff5f1 0%, #d7e5db 100%);
}

.product-visual-vial-body {
    position: absolute;
    left: 20%;
    top: 18%;
    width: 60%;
    height: 60%;
    border-radius: 999px;
    background: linear-gradient(180deg, #fdfefe 0%, #f2f7f4 100%);
    border: 1px solid rgba(46, 125, 107, 0.15);
}

.product-visual-vial-label {
    position: absolute;
    left: 12%;
    bottom: 16%;
    width: 76%;
    height: 20%;
    border-radius: 0.4rem;
    background: linear-gradient(90deg, #14ec91 0%, #2E7D6B 100%);
    opacity: 0.8;
}

.product-visual-pen {
    left: 10%;
    bottom: 12%;
    width: 62%;
    height: 16%;
    border-radius: 999px;
    transform: rotate(-2deg);
}

.product-visual-pen-cap {
    position: absolute;
    left: -8%;
    top: 22%;
    width: 22%;
    height: 56%;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbf9 0%, #dfe9e2 100%);
}

.product-visual-pen-core {
    position: absolute;
    inset: 12% 10% 12% 20%;
    border-radius: 999px;
    border: 1px solid rgba(46, 125, 107, 0.16);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(227, 247, 235, 0.96) 100%);
}

.product-visual-pen-window {
    position: absolute;
    right: 13%;
    top: 24%;
    width: 18%;
    height: 52%;
    border-radius: 999px;
    background: linear-gradient(90deg, #14ec91 0%, #2E7D6B 100%);
    opacity: 0.85;
}

.product-visual-pen-label {
    position: absolute;
    left: 36%;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: rgba(31, 41, 51, 0.64);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-visual.compact .product-visual-box {
    width: 34%;
    height: 58%;
}

.product-visual.compact .product-visual-box-mark {
    height: 2.6rem;
}

.product-visual.compact .product-visual-pen {
    width: 68%;
    bottom: 8%;
}

.product-visual.compact .product-visual-vial {
    top: 18%;
    left: 50%;
}

@media (max-width: 980px) {
    .catalogue-hero,
    .catalogue-featured-card {
        grid-template-columns: 1fr;
    }

    .catalogue-hero {
        padding: 2rem;
    }

    .catalogue-hero h1 {
        max-width: none;
    }

    .catalogue-hero-metrics,
    .catalogue-featured-details {
        grid-template-columns: 1fr;
    }

    .catalogue-featured-media {
        min-height: 300px;
    }
}

@media (max-width: 720px) {
    .catalogue-filter-grid,
    .catalogue-product-card-header,
    .catalogue-product-footer {
        grid-template-columns: 1fr;
        display: grid;
    }

    .catalogue-hero-metrics {
        grid-template-columns: 1fr;
    }

    .catalogue-filter-card,
    .catalogue-featured,
    .catalogue-results {
        padding: 1.35rem;
    }

    .catalogue-hero {
        padding: 1.5rem;
    }

    .catalogue-product-actions {
        justify-content: stretch;
    }

    .catalogue-product-actions .button,
    .catalogue-featured-actions .button {
        width: 100%;
        justify-content: center;
    }

    .catalogue-carousel-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Registration */
.registration-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

.registration-progress-wide {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.registration-form-panel {
    max-width: none;
    width: 100%;
    margin: 0;
}

.registration-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.registration-progress-step {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(248, 250, 251, 0.9);
    min-height: 100%;
}

.registration-progress-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: var(--paper);
    color: var(--text-muted);
    font-weight: 700;
}

.registration-progress-step strong,
.registration-step-header h2,
.registration-help-panel h3,
.registration-upload-header h3 {
    font-family: var(--font-heading);
}

.registration-progress-step div {
    min-width: 0;
}

.registration-progress-step small {
    display: block;
    color: var(--text-muted);
}

.registration-progress-step.is-active {
    border-color: rgba(20, 236, 145, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, #f2fcf7 100%);
}

.registration-progress-step.is-active span,
.registration-progress-step.is-complete span {
    background: var(--accent);
    color: #fff;
}

.registration-step-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.registration-step-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(248, 250, 251, 0.72);
}

.registration-step-card-header h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.registration-step-card-header .muted {
    margin: 0;
}

.registration-step-header p {
    margin-bottom: 0.45rem;
}

.registration-step-header h2 {
    margin: 0;
}

.registration-step-header .muted {
    margin-top: 0.5rem;
}

.registration-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.registration-field-note {
    margin: -0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.registration-optional-indicator {
    color: var(--text-muted);
    font-weight: 700;
    display: inline;
    line-height: 1;
}

.registration-actions .button {
    min-width: 9rem;
}

.registration-form-row-balanced {
    align-items: start;
}

.registration-checkbox,
.registration-checkbox-stack,
.registration-upload-panel,
.registration-multiselect-group,
.registration-help-panel {
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: rgba(248, 250, 251, 0.7);
}

.registration-checkbox,
.registration-upload-panel,
.registration-help-panel {
    padding: 1rem 1.1rem;
}

.registration-checkbox-stack,
.registration-multiselect-group {
    padding: 1rem;
}

.checkbox-group-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.checkbox-group-item input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
}

.registration-checkbox-stack {
    display: grid;
    gap: 0.75rem;
}

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

.registration-binary-question {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.registration-choice-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.registration-choice-card input[type="radio"] {
    margin: 0 0 0.2rem;
    accent-color: var(--accent);
}

.registration-choice-card.is-selected {
    border-color: rgba(20, 236, 145, 0.6);
    box-shadow: 0 0 0 3px rgba(20, 236, 145, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f2fcf7 100%);
}

.registration-choice-title {
    font-weight: 700;
    color: var(--text-main);
}

.registration-choice-copy {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.registration-upload-header h3,
.registration-help-panel h3 {
    margin: 0 0 0.4rem;
}

.registration-multiselect-header {
    margin-bottom: 0.85rem;
}

.registration-multiselect-header label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.registration-check-card {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: #fff;
    cursor: pointer;
    min-height: 100%;
}

.registration-check-card input[type="checkbox"] {
    flex: 0 0 auto;
}

.registration-check-card span {
    line-height: 1.35;
}

.registration-multiselect-group-plain {
    border: 0;
    background: transparent;
    padding: 0;
}

.registration-inline-detail {
    margin-top: 0.25rem;
}

/* Step 3 single-column layout */
.registration-binary-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.registration-choice-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.registration-choice-row .registration-choice-card {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
}

.registration-choice-row .registration-choice-card input[type="radio"] {
    width: 0.875rem;
    height: 0.875rem;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.registration-choice-row .registration-choice-title {
    font-size: 0.92rem;
}

.registration-choice-row .registration-choice-copy {
    flex: 1;
    font-size: 0.92rem;
}

.registration-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.registration-check-list .registration-check-card {
    padding: 0.65rem 0.9rem;
    gap: 0.55rem;
}

.registration-check-list .registration-check-card input[type="checkbox"] {
    width: 0.875rem;
    height: 0.875rem;
    accent-color: var(--accent);
}

.registration-check-list .registration-check-card span {
    font-size: 0.92rem;
}

.registration-links {
    justify-content: flex-start;
}

.registration-help-panel {
    position: sticky;
    top: 6rem;
    width: 100%;
    margin: 0;
}

.registration-help-panel ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.registration-help-panel li + li {
    margin-top: 0.65rem;
}

.registration-help-callout {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

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

    .registration-help-panel {
        position: static;
    }

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

    .registration-binary-grid,
    .registration-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .registration-progress {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .registration-check-grid {
        grid-template-columns: 1fr;
    }

    .registration-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .registration-actions .button {
        width: 100%;
    }

    .registration-step-panel {
        gap: 1rem;
    }
}

/* About */

.about-page,
.about-section {
    padding-top: 1rem;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
}

.about-hero-copy,
.about-hero-panel,
.about-card,
.about-split-panel,
.about-closing-card {
    border: 1px solid rgba(25, 49, 51, 0.08);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(25, 49, 51, 0.08);
    backdrop-filter: blur(12px);
}

.about-hero-copy {
    padding: clamp(2rem, 4vw, 3.5rem);
    background:
        radial-gradient(circle at top right, rgba(20, 236, 145, 0.18), transparent 28%),
        linear-gradient(160deg, rgba(25, 49, 51, 0.98) 0%, rgba(33, 66, 68, 0.95) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.about-hero-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 0.96;
    color: #ffffff;
}

.about-hero-copy .lead {
    margin: 1.25rem 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.8);
}

.about-hero-copy .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.about-hero-panel {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    align-content: start;
}

.about-hero-panel-grid {
    display: grid;
    gap: 0.9rem;
}

.about-stat-card {
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    background: rgba(244, 248, 246, 0.95);
    border: 1px solid rgba(25, 49, 51, 0.08);
}

.about-stat-card strong,
.about-card h3,
.about-flow h3,
.about-closing-card h2,
.about-panel-block h2 {
    font-family: var(--font-heading);
}

.about-stat-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--sea);
    font-size: 1rem;
}

.about-stat-card p,
.about-card p,
.about-flow p,
.about-closing-card p,
.about-checklist li {
    margin: 0;
    color: var(--text-muted);
}

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

.about-card {
    padding: 1.4rem;
}

.about-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
}

.about-address-card {
    max-width: 36rem;
    padding: 1.6rem;
}

.about-address-card h2 {
    margin: 0.2rem 0 0.9rem;
    font-size: 1.55rem;
}

.about-address {
    margin: 0;
    font-style: normal;
    line-height: 1.7;
    color: var(--text-muted);
}

.about-split-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1rem;
    padding: 1rem;
}

.about-panel-block {
    padding: 1.2rem;
    border-radius: 1.3rem;
    background: rgba(248, 250, 251, 0.9);
    border: 1px solid rgba(25, 49, 51, 0.08);
}

.about-panel-muted {
    background:
        radial-gradient(circle at top right, rgba(20, 236, 145, 0.12), transparent 30%),
        rgba(244, 248, 246, 0.96);
}

.about-panel-block h2 {
    margin: 0 0 1rem;
}

.about-flow {
    display: grid;
    gap: 0.9rem;
}

.about-flow article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(25, 49, 51, 0.08);
}

.about-flow article:first-child {
    padding-top: 0;
    border-top: 0;
}

.about-flow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: var(--sea);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
}

.about-flow h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.about-checklist {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.7rem;
}

.about-closing-card {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    padding: 1.6rem 1.8rem;
}

.about-closing-card h2 {
    margin: 0 0 0.65rem;
}

@media (max-width: 980px) {
    .about-hero,
    .about-split-panel,
    .about-card-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .about-hero-copy,
    .about-hero-panel,
    .about-card,
    .about-split-panel,
    .about-closing-card {
        border-radius: 1.25rem;
    }

    .about-hero-actions {
        flex-direction: column;
    }

    .about-hero-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Portal Topbar Nav – tab style (non-pill links only) ===== */

.portal-topbar .portal-topnav a:not(.nav-pill) {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 0.95rem;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 0.97rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    box-sizing: border-box;
}

.portal-topbar .portal-topnav a.active:not(.nav-pill) {
    background: var(--surface-soft);
    color: #193133;
    font-weight: 600;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding-bottom: 0;
    box-shadow: none;
}

.portal-topbar .portal-topnav a:hover:not(.active):not(.nav-pill) {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.portal-topbar .portal-signout-button,
.portal-topbar .button.ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border-radius: 50%;
    background: #009966;
    border-color: #009966;
    color: #ffffff;
}

.portal-topbar .portal-signout-button:hover,
.portal-topbar .button.ghost:hover {
    background: #008555;
    border-color: #008555;
}

/* Effira footer refresh */

/* ===== EFFIRA FOOTER ===== */

.effira-footer {
    background-color: #071820;
    background-image: url("/images/footer-gradient.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.effira-footer a {
    color: #ffffff;
    text-decoration: none;
}

.effira-footer a:hover {
    color: #14ec91;
}

.effira-footer-stage {
    display: grid;
    grid-template-columns: minmax(28rem, 38rem) 1fr;
    min-height: 0;
    padding: 2rem 0 1.65rem clamp(2rem, 6vw, 6rem);
    position: relative;
    isolation: isolate;
}

.effira-footer-explore {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.effira-footer-heading {
    font-size: clamp(2.35rem, 2.35vw, 2.85rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.25rem;
    line-height: 1;
    font-family: var(--font-heading);
}

.effira-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
}

.effira-footer-nav a {
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
}

.effira-footer-nav a:hover {
    color: #14ec91;
}

.effira-footer-contact {
    font-size: 0.9rem;
    line-height: 1.35;
    color: #ffffff;
    font-weight: 800;
    margin-top: 0.17rem;
}

.effira-footer-contact a {
    color: #14ec91;
    font-weight: 400;
}

/* Social icons */
.effira-footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.effira-social-wa,
.effira-social-li {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    color: #14ec91;
}

.effira-social-wa {
    background: transparent;
}

.effira-social-li {
    background: transparent;
}

.effira-social-wa:hover,
.effira-social-li:hover {
    opacity: 0.8;
}

.effira-footer-social svg {
    width: 1.65rem;
    height: 1.65rem;
}

.effira-social-divider {
    color: #14ec91;
    font-size: 1.55rem;
    line-height: 1;
    user-select: none;
}

/* Decorative large logo */
.effira-footer-deco {
    position: absolute;
    top: 2.15rem;
    left: clamp(29rem, 43vw, 48rem);
    right: -16rem;
    height: clamp(13.5rem, 16.75vw, 18.75rem);
    pointer-events: none;
    z-index: 1;
}

.effira-deco-logo {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    opacity: 1;
}

.effira-footer-trust {
    display: grid;
    grid-template-columns: repeat(3, 8.25rem);
    gap: clamp(1.5rem, 2vw, 2.25rem);
    margin-top: 2.15rem;
    margin-left: -0.45rem;
}

.effira-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    padding: 0;
}

.effira-trust-icon {
    color: #ffffff;
    width: 2.5rem;
    height: 2.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.effira-trust-icon svg {
    width: 100%;
    height: 100%;
}

.effira-trust-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.effira-trust-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.14;
    color: #ffffff;
    font-weight: 800;
}

.effira-footer-disclaimer {
    width: min(100%, 31rem);
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    line-height: 1.48;
    font-weight: 400;
}

.effira-footer-whatsapp {
    width: min(100%, 31rem);
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    line-height: 1.48;
    font-weight: 400;
}

.effira-footer-whatsapp a {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .effira-footer {
        min-height: 0;
    }

    .effira-footer-stage {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem 3rem;
    }

    .effira-footer-deco {
        position: relative;
        inset: auto;
        height: 16rem;
        width: 125%;
        margin: 2.5rem 0 0 -10%;
        order: 2;
    }

    .effira-footer-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        margin: 4rem 0 0;
    }

    .effira-trust-item {
        gap: 1rem;
    }

    .effira-trust-item p {
        font-size: clamp(0.92rem, 3.1vw, 1.1rem);
    }
}

/* ===== Mobile layout pass ===== */

.portal-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.24rem;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(10, 27, 24, 0.14);
}

.portal-menu-button .hamburger-line {
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.portal-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 69;
    background: rgba(9, 19, 21, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.portal-mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.portal-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    display: grid;
    gap: 1.1rem;
    width: min(88vw, 22rem);
    height: 100vh;
    padding: 1.15rem;
    overflow-y: auto;
    background: #ffffff;
    border-left: 1px solid rgba(25, 49, 51, 0.12);
    box-shadow: -24px 0 48px rgba(10, 24, 26, 0.16);
    transform: translateX(100%);
    transition: transform 0.24s ease;
    visibility: hidden;
    pointer-events: none;
}

.portal-mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.portal-mobile-drawer-header,
.portal-mobile-drawer-links,
.checkout-actions {
    display: flex;
    gap: 0.85rem;
}

.portal-mobile-drawer-header {
    align-items: center;
    justify-content: space-between;
}

.portal-mobile-drawer-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
}

.portal-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 0.9rem;
    background: #ffffff;
    color: var(--text-primary);
}

.portal-mobile-drawer-links {
    flex-direction: column;
}

.portal-mobile-drawer-links a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.portal-mobile-drawer-links a.active {
    background: color-mix(in srgb, var(--primary) 12%, #ffffff);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border-soft));
    color: var(--primary);
}

.portal-mobile-drawer-links .portal-mobile-signout {
    justify-content: center;
    margin-top: 0.2rem;
}

.checkout-actions {
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.checkout-preferences-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.checkout-preference-item {
    gap: 0;
    margin-bottom: 0;
}

.checkout-preference-item label {
    margin: 0;
    min-height: 0;
}

.checkout-preferences-stack .form-group {
    margin-bottom: 0;
}

.checkout-actions .button {
    min-width: 11rem;
}

.order-item-actions {
    justify-content: flex-end;
    margin-top: 0;
}

@media (max-width: 980px) {
    .portal-topbar {
        padding: 0;
    }

    .portal-topbar-primary {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        padding: 1rem 1.1rem;
    }

    .portal-topbar-brand {
        min-width: 0;
    }

    .portal-topbar .portal-brand-logo {
        width: 8.5rem;
        height: auto;
    }

    .portal-topnav {
        display: none;
    }

    .portal-topbar-actions {
        width: auto;
        margin-left: auto;
        gap: 0.55rem;
        flex-wrap: nowrap;
    }

    .portal-topbar .portal-signout-button {
        display: none;
    }

    .portal-menu-button {
        display: inline-flex;
    }

    .portal-content {
        padding: 1.1rem 1rem 1.5rem;
    }

.section-header,
.admin-products-header,
.admin-products-bulkbar {
    flex-direction: column;
    align-items: stretch;
}

    .inline-status-banner,
    .admin-products-toolbar,
    .admin-products-toolbar-meta,
    .admin-products-bulkbar-actions {
        flex-wrap: wrap;
    }

    .order-detail-status {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .order-item-row {
        grid-template-columns: 60px minmax(0, 1fr) auto;
        align-items: flex-start;
    }

    .order-item-row .placeholder-image {
        grid-row: span 2;
    }

    .order-item-row .order-item-image {
        grid-row: span 2;
    }

    .order-item-info {
        min-width: min(100%, 12rem);
    }

    .order-item-actions {
        grid-column: 2 / -1;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 0.35rem;
    }

    .order-item-row .price {
        margin-left: auto;
    }

    .cart-summary {
        position: static;
        top: auto;
    }

    .checkout-actions .button {
        flex: 1 1 12rem;
    }
}

@media (max-width: 640px) {
    .portal-topbar-primary {
        padding: 0.9rem 0.9rem;
    }

    .portal-topbar .portal-brand-logo {
        width: 7.4rem;
    }

    .portal-content {
        padding: 0.95rem 0.85rem 1.35rem;
    }

.dashboard-panel,
.cart-summary,
.order-detail-sidebar {
    padding: 1rem;
}

    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table table {
        min-width: 720px;
    }

    .product-browse-summary,
    .account-breadcrumb {
        flex-wrap: wrap;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .checkout-actions .button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .summary-item {
        gap: 0.75rem;
    }

    .order-item-row .price {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
    }

    .order-item-actions .button {
        flex: 1 1 100%;
        justify-content: center;
    }

    .effira-footer {
        padding: 0;
    }

    .effira-trust-icon {
        width: 4.75rem;
        height: 4.75rem;
    }
}
