/* ============================================================================
   DESIGN SYSTEM & CUSTOM STYLES (iOS Light Theme - Soft Light Blue)
   ============================================================================ */

:root {
    --primary: #0284c7;
    /* Elegant Sky Blue (Rich, non-neon) */
    --primary-hover: #0369a1;
    /* Deeper Sky Blue for hover */
    --primary-light: #e0f2fe;
    /* Soft Light Blue */
    --primary-border: #bae6fd;
    /* Soft Light Blue Border */

    --bg-gradient-1: #f0f9ff;
    /* Lightest Ice Blue */
    --bg-gradient-2: #e0f2fe;
    /* Gentle Sky Blue */

    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 20px 40px -12px rgba(14, 165, 233, 0.15), 0 10px 25px -5px rgba(0, 0, 0, 0.04);

    --text-main: #0f172a;
    /* Deep Slate Navy */
    --text-muted: #64748b;
    /* Medium Slate */
    --text-light: #94a3b8;
    /* Light Muted */

    --success: #059669;
    /* Emerald Green */
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;

    --error: #dc2626;
    /* Coral Red */
    --error-bg: #fef2f2;
    --error-border: #fecaca;

    --ios-radius-lg: 28px;
    --ios-radius-md: 16px;
    --ios-radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, #f8fafc 50%, var(--bg-gradient-2) 100%);
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background animated glow orbs (iOS Light Wallpaper Style) */
.background-decor {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.35) 0%, rgba(224, 242, 254, 0.05) 70%);
    top: -120px;
    left: -120px;
    z-index: -1;
    filter: blur(70px);
    animation: float 18s ease-in-out infinite alternate;
}

.background-decor::after {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.4) 0%, rgba(240, 249, 255, 0.05) 70%);
    bottom: -150px;
    right: -150px;
    filter: blur(80px);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 40px) scale(1.05);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.98);
    }
}

/* Premium iOS Glassmorphism Card Container */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid var(--card-border);
    border-radius: var(--ios-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.2), 0 12px 30px -8px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 0.95);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-main);
}

h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* iOS Segmented Control for Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(226, 232, 240, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tab-btn:hover:not(.active) {
    color: var(--text-main);
}

/* Form Controls - iOS Clean Style */
.form-view {
    display: none;
    animation: iosFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-view.active {
    display: block;
}

@keyframes iosFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: var(--ios-radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15), 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* iOS Glass Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: var(--ios-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    width: 100%;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
}

/* Google Login Button - iOS Card Style */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--text-main);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--ios-radius-sm);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-google:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-google img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Divider */
.divider-container {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider-container::before,
.divider-container::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.divider-container::before {
    margin-right: 12px;
}

.divider-container::after {
    margin-left: 12px;
}

/* Alert Messages */
.alert-message {
    padding: 12px 16px;
    border-radius: var(--ios-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.5;
    font-weight: 500;
}

.alert-message.error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error);
}

.alert-message.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

/* Profile Section Styling */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.user-badge {
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid var(--primary-border);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* iOS Grouped List / Info Grid */
.info-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.info-item {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--ios-radius-sm);
    padding: 12px 16px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.info-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.info-value.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: #0284c7;
}

/* Code Visualizer */
.db-visualizer {
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.db-visualizer h4 {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.db-visualizer h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    margin-right: 8px;
}

.db-code-block {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--ios-radius-sm);
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    overflow-x: auto;
    color: #38bdf8;
    max-height: 200px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer & Helpers */
.footer-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

/* ============================================================================
   COMMERCE SITE LAYOUT (Header, Footer, Hero, Products)
   ============================================================================ */

/* Main Container to support navbar and full width sections */
.site-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header / Navbar (solid white full width) */
.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

/* Header User Profile Dropdown */
.user-menu-wrapper {
    position: relative;
}

.user-trigger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-trigger-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-avatar-mini-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-name-mini {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 110;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--card-border);
    margin: 6px 0;
}

/* Shared storefront navigation ------------------------------------------- */
.site-header {
    border-bottom-color: #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
}

.site-header .nav-container {
    max-width: 1120px;
    min-height: 70px;
    padding: 10px 24px;
    gap: 28px;
}

.site-header .brand-logo {
    flex: 0 0 auto;
    font-size: 1.45rem;
    letter-spacing: -.035em;
}

.site-header .nav-menu {
    margin-left: auto;
    gap: 6px;
}

.site-header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 11px;
    border-radius: 10px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease;
}

.site-header .nav-link:hover {
    color: #0f172a;
    background: #f8fafc;
}

.site-header .nav-link.active {
    color: #0f172a;
    background: #f1f5f9;
}

.site-header .nav-link.active::after {
    content: '';
    position: absolute;
    right: 11px;
    bottom: -11px;
    left: 11px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--primary);
}

.site-header .nav-link-emphasis,
.site-header .nav-link-admin {
    color: var(--primary);
}

.site-header .nav-count-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
}

.site-header .user-menu-wrapper {
    margin-left: 6px;
}

.site-header .user-trigger-btn {
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 4px 10px 4px 5px;
    color: #0f172a;
    font-family: inherit;
}

.site-header .user-trigger-btn:focus-visible,
.site-header .mobile-nav-toggle:focus-visible,
.site-header .nav-link:focus-visible,
.site-header .dropdown-item:focus-visible {
    outline: 3px solid rgba(2, 132, 199, .2);
    outline-offset: 2px;
}

.site-header .user-menu-chevron {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: transform .18s ease;
}

.site-header .user-trigger-btn[aria-expanded='true'] .user-menu-chevron {
    transform: rotate(180deg);
}

.site-header .dropdown-menu {
    top: calc(100% + 6px);
    min-width: 236px;
    margin-top: 0;
    padding: 7px;
    border-color: #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px -12px rgba(15, 23, 42, .24);
}

.site-header .dropdown-user-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 11px 11px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 5px;
}

.site-header .dropdown-user-summary strong {
    color: #0f172a;
    font-size: .9rem;
}

.site-header .dropdown-user-summary span {
    color: #94a3b8;
    font-size: .75rem;
}

.site-header .dropdown-item {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: .86rem;
    text-align: left;
    cursor: pointer;
}

.site-header .dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.site-header .dropdown-logout-form {
    margin: 0;
}

.site-header .dropdown-logout-button {
    color: #b42318;
}

.site-header .header-login-btn {
    width: auto;
    min-height: 40px;
    margin-left: 6px;
    padding: 8px 17px;
    border-radius: 10px;
    font-size: .88rem;
}

.site-header .mobile-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.site-header .mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #334155;
    transition: transform .18s ease, opacity .18s ease;
}

@media (max-width: 860px) {
    .site-header .nav-container {
        min-height: 64px;
        padding: 10px 18px;
    }

    .site-header .brand-logo {
        font-size: 1.3rem;
    }

    .site-header .mobile-nav-toggle {
        display: block;
        margin-left: auto;
    }

    .site-header .nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: none;
        max-height: calc(100vh - 84px);
        margin: 0;
        padding: 10px;
        overflow-y: auto;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 20px 45px -16px rgba(15, 23, 42, .28);
    }

    .site-header .nav-menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header .nav-link {
        justify-content: flex-start;
        min-height: 42px;
        padding: 0 12px;
    }

    .site-header .nav-link.active::after {
        top: 9px;
        right: auto;
        bottom: 9px;
        left: 0;
        width: 3px;
        height: auto;
        border-radius: 0 3px 3px 0;
    }

    .site-header .user-menu-wrapper,
    .site-header .header-login-btn {
        margin: 4px 0 0;
    }

    .site-header .user-trigger-btn,
    .site-header .header-login-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .site-header .user-menu-chevron {
        margin-left: auto;
    }

    .site-header .dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
    }

    .site-header.nav-open .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.nav-open .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .site-header .nav-container {
        padding-right: 12px;
        padding-left: 14px;
    }

    .site-header .nav-menu {
        right: 8px;
        left: 8px;
    }
}

/* Voucher center and wallet ------------------------------------------------ */
.voucher-page { max-width: 1120px; margin: 0 auto; padding: 36px 20px 72px; }
.voucher-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; padding:30px; border-radius:24px; background:linear-gradient(135deg,#eff6ff,#f0fdf4); border:1px solid #dbeafe; }
.voucher-hero h1 { margin:5px 0 8px; font-size:clamp(1.7rem,4vw,2.5rem); color:#0f172a; }
.voucher-hero p { margin:0; color:#64748b; }
.voucher-hero .btn { width:auto; min-width:180px; }
.voucher-eyebrow { color:#0284c7; font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.voucher-alert { margin-bottom:18px; padding:13px 16px; border-radius:12px; font-weight:650; }
.voucher-alert.success { color:#166534; background:#dcfce7; }.voucher-alert.error { color:#991b1b; background:#fee2e2; }
.voucher-filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px; }
.voucher-filters input,
.voucher-filters select { min-width:170px; padding:10px 14px; border:1px solid #cbd5e1; border-radius:11px; background:#fff; font:inherit; }
.voucher-filters input { flex:1 1 260px; }
.voucher-filters .btn { width:auto; }
.voucher-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.voucher-card { position:relative; display:grid; grid-template-columns:72px 1fr auto; overflow:hidden; min-height:178px; border:1px solid #e2e8f0; border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.05); }
.voucher-card.is-locked,.voucher-card.is-muted { opacity:.68; }
.voucher-ticket-mark { display:grid; place-items:center; color:#fff; background:linear-gradient(180deg,#0284c7,#2563eb); font-size:.75rem; font-weight:900; letter-spacing:.08em; writing-mode:vertical-rl; transform:rotate(180deg); }
.voucher-card-body { padding:18px; min-width:0; }.voucher-card-body h2,.voucher-card-body h3 { margin:3px 0 8px; color:#0f172a; font-size:1rem; }.voucher-card-body p { margin:7px 0; color:#64748b; font-size:.8rem; }.voucher-card-body small { color:#94a3b8; font-size:.75rem; }
.voucher-source { color:#0284c7; font-size:.72rem; font-weight:800; text-transform:uppercase; }.voucher-benefit { display:block; color:#15803d; font-size:.95rem; }
.voucher-card-action { min-width:132px; padding:18px 16px; display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:12px; border-left:1px dashed #cbd5e1; }.voucher-card-action code { text-align:center; color:#b45309; font-weight:800; }.voucher-card-action form,.voucher-card-action .btn { width:100%; text-align:center; }
.voucher-empty { grid-column:1/-1; padding:50px 20px; text-align:center; color:#64748b; border:1px dashed #cbd5e1; border-radius:18px; }.voucher-empty.compact { padding:24px; }
.voucher-wallet-section { margin-top:30px; }.voucher-wallet-section>h2 { display:flex; gap:9px; align-items:center; margin-bottom:13px; font-size:1.15rem; }.voucher-wallet-section>h2 span { min-width:24px; padding:3px 7px; border-radius:99px; background:#e2e8f0; text-align:center; font-size:.75rem; }
.member-rank-badge { display:inline-flex; align-items:center; width:max-content; margin-top:5px; padding:3px 8px; border-radius:99px; color:#92400e!important; background:#fef3c7; font-size:.7rem!important; font-weight:800; }
@media(max-width:800px){.voucher-grid{grid-template-columns:1fr}.voucher-hero{align-items:flex-start;flex-direction:column}.voucher-card{grid-template-columns:54px 1fr}.voucher-card-action{grid-column:2;min-width:0;border-top:1px dashed #cbd5e1;border-left:0;flex-direction:row;align-items:center}.voucher-card-action code{flex:1}}
@media(max-width:480px){.voucher-page{padding-inline:12px}.voucher-hero{padding:22px}.voucher-card{grid-template-columns:44px 1fr}.voucher-card-body{padding:15px 13px}.voucher-card-action{padding:13px;flex-direction:column}}

/* Shared account page tabs ----------------------------------------------- */
body .page-top-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    scrollbar-width: none;
}

body .page-top-tabs::-webkit-scrollbar {
    display: none;
}

body .page-tab-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    color: #64748b;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    transition: color .18s ease, background-color .18s ease;
}

body .page-tab-item:hover {
    color: #0f172a;
    background: #f8fafc;
}

body .page-tab-item.active {
    color: #0f172a;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

body .page-tab-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
}

body .page-tab-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: .7rem;
    font-weight: 800;
}

body .page-tab-item.active .page-tab-count {
    background: #0f172a;
    color: #fff;
}

@media (max-width: 560px) {
    body .page-top-tabs {
        margin-bottom: 18px;
    }

    body .page-tab-item {
        min-height: 40px;
        padding: 0 12px;
        font-size: .86rem;
    }
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 60px 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 75%);
    top: -50px;
    right: -50px;
    z-index: -1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(8px);
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
}

.hero-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 720px) {
    .hero-section {
        margin-top: 22px;
        padding: 0 12px;
    }

    .hero-banner {
        grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.75fr);
        gap: 20px;
        padding: 26px 22px;
        border-radius: 20px;
    }

    .hero-title {
        margin-bottom: 12px;
        font-size: clamp(1.9rem, 6.5vw, 2.15rem);
        line-height: 1.12;
    }

    .hero-subtitle {
        margin-bottom: 18px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        min-width: 0;
        padding: 11px 10px;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .hero-badge-container {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
        line-height: 1.25;
    }

    .hero-badge-container > div[style] {
        margin: 14px 0 !important;
    }
}

@media (max-width: 430px) {
    .hero-banner {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 20px 16px;
    }

    .hero-title {
        margin-bottom: 10px;
        font-size: 1.875rem;
    }

    .hero-subtitle {
        margin-bottom: 16px;
        font-size: 0.85rem;
    }

    .hero-badge-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        padding: 14px 10px;
    }

    .hero-badge-container .hero-stat-value:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-badge-container .hero-stat-label:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-badge-container > div[style] {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 1px;
        height: 54px;
        margin: 0 10px !important;
        border-top: 0 !important;
        border-left: 1px solid rgba(0, 0, 0, 0.06);
    }

    .hero-badge-container .hero-stat-value:nth-child(4) {
        grid-column: 3;
        grid-row: 1;
    }

    .hero-badge-container .hero-stat-label:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
    }
}

/* Products Section */
.products-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-image-container {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    background: #1e293b;
    overflow: hidden;
}

.product-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    color: var(--text-muted);
    gap: 8px;
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.product-condition {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-reputation {
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 600;
}

/* Shared storefront footer */
.site-footer {
    width: 100%;
    margin-top: auto;
    color: #cbd5e1;
    background:
        radial-gradient(circle at 8% 12%, rgba(14, 165, 233, 0.16), transparent 28%),
        linear-gradient(145deg, #0b172a 0%, #0f2741 58%, #0b172a 100%);
    border-top: 1px solid rgba(125, 211, 252, 0.18);
}

.footer-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.footer-assurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-assurance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 25px 30px;
}

.footer-assurance-item + .footer-assurance-item {
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-assurance-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
}

.footer-assurance-icon svg,
.footer-logo-mark svg,
.footer-support-link svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-assurance-item > span:last-child {
    display: grid;
    gap: 4px;
}

.footer-assurance-item strong {
    color: #f8fafc;
    font-size: 0.92rem;
}

.footer-assurance-item small {
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.45;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 54px;
    padding: 54px 0 44px;
}

.footer-about {
    max-width: 340px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.footer-logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

.footer-about > p {
    max-width: 330px;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.75;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.footer-tags span {
    padding: 6px 10px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-column {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.footer-column h2 {
    margin: 2px 0 8px;
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-column > a {
    position: relative;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column > a:not(.footer-support-link):hover,
.footer-column > a:not(.footer-support-link):focus-visible {
    color: #7dd3fc;
    transform: translateX(3px);
}

.footer-support > p {
    margin: -1px 0 2px;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.55;
}

.footer-column > .footer-support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.17);
    border-radius: 13px;
}

.footer-support-link:hover,
.footer-support-link:focus-visible {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(125, 211, 252, 0.35);
}

.footer-support-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.footer-support-link span {
    display: grid;
    gap: 2px;
}

.footer-support-link small {
    color: #94a3b8;
    font-size: 0.66rem;
}

.footer-support-link strong {
    color: inherit;
    font-size: 0.75rem;
}

.footer-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.footer-payment span {
    padding: 5px 8px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-bottom p,
.footer-bottom-notes {
    color: #718096;
    font-size: 0.72rem;
}

.footer-bottom-notes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: 1.4fr repeat(2, 1fr);
        gap: 42px 34px;
    }

    .footer-support {
        grid-column: 2 / 4;
    }

    .footer-support-link {
        max-width: 270px;
    }
}

@media (max-width: 720px) {
    .footer-container {
        width: min(100% - 32px, 560px);
    }

    .footer-assurance {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .footer-assurance-item {
        padding: 13px 4px;
    }

    .footer-assurance-item + .footer-assurance-item {
        border-top: 1px solid rgba(148, 163, 184, 0.14);
        border-left: 0;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 24px;
        padding: 40px 0 34px;
    }

    .footer-about,
    .footer-support {
        grid-column: 1 / -1;
        max-width: none;
    }

    .footer-about > p {
        max-width: 520px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 22px 0;
    }

    .footer-bottom-notes {
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-support {
        grid-column: auto;
    }

    .footer-bottom-notes span[aria-hidden='true'] {
        display: none;
    }

    .footer-bottom-notes {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* Profile Form styling */
.profile-container {
    max-width: 600px;
    margin: 60px auto;
    width: 100%;
    padding: 0 24px;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    margin-bottom: 16px;
}

.profile-avatar-large-fallback {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.badge-reputation {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================================
   SEARCH, CATEGORY FILTER & SORTING BAR STYLES
   ============================================================================ */
.filter-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--ios-radius-lg, 24px);
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow, 0 10px 30px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.filter-group {
    flex: 1 1 200px;
    min-width: 180px;
    position: relative;
}

.filter-search-box {
    flex: 2 1 280px;
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.filter-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 50px;
    background: #f8fafc;
    color: var(--text-main);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.filter-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    transition: background 0.2s;
}

.clear-search-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.filter-select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 50px;
    background: #f8fafc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") no-repeat right 16px center;
    color: var(--text-main);
    font-size: 0.92rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.reset-btn {
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    border-color: #cbd5e1;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.reset-btn:hover {
    background: #f1f5f9;
    color: var(--error);
    border-color: var(--error-border);
}

.filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(203, 213, 225, 0.7);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-badge {
    background: var(--primary-light, #e0f2fe);
    color: var(--primary-hover, #0369a1);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--primary-border, #bae6fd);
}

.filter-count {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary);
}

.empty-products-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin: 30px 0;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group, .filter-search-box {
        width: 100%;
        flex: 1 1 100%;
    }
    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }
    .filter-btn, .reset-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    .filter-count {
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================================================
   SELLER STORE PROFILE HEADER STYLES (Shopee Style Banner)
   ============================================================================ */
.seller-store-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--ios-radius-lg, 24px);
    padding: 28px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    box-shadow: 0 20px 40px -12px rgba(14, 165, 233, 0.12), 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

.seller-store-left {
    display: flex;
    gap: 20px;
    align-items: center;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    padding-right: 20px;
}

.seller-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.seller-store-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.2);
}

.seller-store-avatar-fallback {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.2);
}

.seller-badge-preferred {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #ee4d2d;
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(238, 77, 45, 0.4);
}

.seller-store-main-info {
    flex: 1;
}

.seller-store-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.seller-store-status {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
    margin-bottom: 14px;
}

.seller-store-actions {
    display: flex;
    gap: 10px;
}

.store-action-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
}

.seller-store-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: center;
}

.store-stat-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 12px 16px;
}

.stat-icon {
    font-size: 1.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.store-tabs-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 4px;
}

.store-tab-btn {
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 18px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.store-tab-btn:hover {
    color: var(--primary);
}

.store-tab-btn.active {
    color: var(--primary);
    font-weight: 700;
}

.store-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 900px) {
    .seller-store-card {
        grid-template-columns: 1fr;
    }
    .seller-store-left {
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        padding-right: 0;
        padding-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .seller-store-left {
        flex-direction: column;
        text-align: center;
    }
    .seller-store-actions {
        justify-content: center;
    }
    .seller-store-right {
        grid-template-columns: 1fr;
    }
}

/* Searchable product scope picker used by Admin and Seller voucher forms. */
.voucher-product-picker { width: 100%; border: 1px solid #dbe3ef; border-radius: 14px; background: #f8fafc; overflow: hidden; }
.voucher-product-picker__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid #e5eaf2; background: #fff; }
.voucher-product-picker__title-row, .voucher-product-picker__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.voucher-product-picker__title { color: #17233c; font-size: 14px; font-weight: 750; }
.voucher-product-picker__count { padding: 3px 9px; border-radius: 999px; color: #5145cd; background: #eeecff; font-size: 12px; font-weight: 700; }
.voucher-product-picker__hint { margin: 5px 0 0; color: #64748b; font-size: 12px; }
.voucher-product-picker__search { display: flex; align-items: center; min-width: 240px; height: 38px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 9px; color: #64748b; background: #fff; }
.voucher-product-picker__search:focus-within { border-color: #6558e8; box-shadow: 0 0 0 3px rgba(101, 88, 232, .13); }
.voucher-product-picker__search input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 0 0 0 7px; color: #17233c; background: transparent; font: inherit; font-size: 13px; }
.voucher-product-picker__action { height: 38px; padding: 0 11px; border: 1px solid #d8deea; border-radius: 9px; color: #475569; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.voucher-product-picker__action:hover, .voucher-product-picker__action:focus-visible { color: #5145cd; border-color: #8176ed; outline: none; }
.voucher-product-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 390px; padding: 12px; overflow: auto; overscroll-behavior: contain; }
.voucher-product-option { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 22px; align-items: center; gap: 11px; min-height: 76px; margin: 0; padding: 10px; border: 1px solid #e0e6ef; border-radius: 11px; color: #17233c; background: #fff; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.voucher-product-option:hover { border-color: #a9a1f5; box-shadow: 0 4px 14px rgba(54, 45, 132, .08); }
.voucher-product-option:has(input:checked) { border-color: #6558e8; background: #f6f5ff; box-shadow: inset 0 0 0 1px #6558e8; }
.voucher-product-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.voucher-product-option:has(input:focus-visible) { outline: 3px solid rgba(101, 88, 232, .24); outline-offset: 2px; }
.voucher-product-option__thumb { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 9px; color: #6d63df; background: #eceaff; font-size: 12px; font-weight: 800; }
.voucher-product-option__thumb img { width: 100%; height: 100%; object-fit: cover; }
.voucher-product-option__body, .voucher-product-option__body strong, .voucher-product-option__meta, .voucher-product-option__price { display: block; min-width: 0; }
.voucher-product-option__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.voucher-product-option__meta { margin-top: 4px; overflow: hidden; color: #718096; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.voucher-product-option__price { margin-top: 3px; color: #dc3c2f; font-size: 12px; font-weight: 750; }
.voucher-product-option__check { display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid #cbd5e1; border-radius: 6px; color: transparent; background: #fff; font-size: 12px; font-weight: 800; }
.voucher-product-option:has(input:checked) .voucher-product-option__check { color: #fff; border-color: #6558e8; background: #6558e8; }
.voucher-product-picker__empty { margin: 0; padding: 24px 16px; color: #64748b; text-align: center; font-size: 13px; }

@media (max-width: 900px) {
    .voucher-product-picker__heading { align-items: stretch; flex-direction: column; }
    .voucher-product-picker__toolbar { align-items: stretch; }
    .voucher-product-picker__search { flex: 1 1 100%; min-width: 0; }
}

@media (max-width: 640px) {
    .voucher-product-picker__grid { grid-template-columns: 1fr; max-height: 430px; }
    .voucher-product-picker__action { flex: 1; }
}
.recommendation-section {
    width: min(1200px, calc(100% - 40px));
    margin: 34px auto;
}

.recommendation-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.recommendation-heading h2 {
    margin: 0 0 4px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.recommendation-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.recommendation-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}

.recommendation-image {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 0.82;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5f9;
    color: var(--text-muted);
    text-decoration: none;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.recommendation-card:hover .recommendation-image img {
    transform: scale(1.04);
}

.recommendation-image small {
    position: absolute;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 0.68rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommendation-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.recommendation-reason {
    overflow: hidden;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommendation-name {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recommendation-content strong {
    color: #dc2626;
    font-size: 0.95rem;
}

@media (max-width: 1100px) {
    .recommendation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .recommendation-section { width: min(100% - 24px, 1200px); margin: 24px auto; }
    .recommendation-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }
    .recommendation-card { flex: 0 0 72%; scroll-snap-align: start; }
}
