:root {
    --color-navy: #0b1a2a;
    --color-navy-light: #132d4a;
    --color-teal: #0d9488;
    --color-teal-dark: #0f766e;
    --color-teal-light: #14b8a6;
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-surface: #ffffff;
    --color-surface-alt: #f4f7fb;
    --color-border: #e2e8f0;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-danger: #ef4444;
    --color-success: #10b981;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Instrument Serif', Georgia, serif;
    --container: 1200px;
    --header-height: 68px;
    --accent-teal: var(--color-teal);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.dealiora {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-surface-alt);
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* Header */
.site-header {
    background: var(--color-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-md);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    padding: 0.75rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(180px, 48vw);
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav--main {
    flex: 1;
    justify-content: center;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header__actions a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.header__actions a:hover {
    color: #fff;
}

.header__login {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9) !important;
    transition: background 0.2s, border-color 0.2s;
}

.header__login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

.site-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s;
    white-space: nowrap;
}

.site-nav a:hover {
    color: #fff;
}

.site-nav__form {
    display: inline-flex;
    margin: 0;
}

.btn-signup,
.header__cta,
.site-nav__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: var(--accent-teal);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap !important;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-signup:hover,
.header__cta:hover,
.site-nav__cta:hover {
    background: var(--color-teal-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.site-nav__cta--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.site-nav__cta--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: none;
    box-shadow: none;
}

.lang-switcher {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.lang-switcher__link {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.lang-switcher__link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher__link.is-active {
    color: #fff !important;
    background: rgba(13, 148, 136, 0.45);
}

.lang-switcher__sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    user-select: none;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, #0d3d56 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.hero__title em {
    font-style: italic;
    color: var(--color-teal-light);
}

.hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0 0 2rem;
    max-width: 540px;
    margin-inline: auto;
}

/* Search */
.search-box {
    display: flex;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 0.4rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin-inline: auto;
}

.search-box__input {
    flex: 1;
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: transparent;
    outline: none;
}

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

.search-box__btn {
    background: var(--color-teal);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.3);
}

.search-box__btn:hover {
    background: var(--color-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero__stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero__stat span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section--alt {
    background: var(--color-surface);
}

.section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section__title {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--color-navy);
}

.section__subtitle {
    color: var(--color-text-muted);
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.section__link {
    color: var(--color-teal-dark);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

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

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.35rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-teal);
}

.category-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.category-card__count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0;
}

/* Deal grid */
.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Deal card */
.deal-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.2);
}

.deal-card__image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e2e8f0;
}

.deal-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.deal-card:hover .deal-card__image {
    transform: scale(1.04);
}

.deal-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
}

.deal-card__event-date {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.deal-card__body {
    padding: 1rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-teal-dark);
    margin-bottom: 0.35rem;
}

.deal-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-card__prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
}

.deal-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
}

.deal-card__original {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.deal-card__seller {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: var(--color-surface-alt);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    width: fit-content;
}

.deal-card__seller img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* Seller cards */
.seller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.seller-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

.seller-card:hover {
    box-shadow: var(--shadow-md);
}

.seller-card__logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}

.seller-card__name {
    font-weight: 600;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.seller-card__verified {
    color: var(--color-teal);
    font-size: 0.85rem;
}

.seller-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seller-card__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Deal detail */
.deal-detail {
    padding: 2.5rem 0 4rem;
}

.deal-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.deal-detail__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: #e2e8f0;
    position: relative;
}

.deal-detail__listing-type {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
}

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

.deal-detail__badge {
    display: inline-block;
    background: var(--color-danger);
    color: #fff;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.deal-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.deal-detail__stock {
    display: inline-block;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.deal-detail__stock--in_stock {
    background: #dcfce7;
    color: #166534;
}

.deal-detail__stock--low_stock {
    background: #fef3c7;
    color: #92400e;
}

.deal-detail__stock--out_of_stock {
    background: #fee2e2;
    color: #991b1b;
}

.deal-detail__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.deal-detail__category {
    color: var(--color-teal-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.deal-detail__event-info {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.deal-detail__event-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.35rem;
}

.deal-detail__event-venue {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

.deal-detail__event-separator {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.deal-detail__description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.price-block {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-block__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.price-block__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-block__current {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-navy);
}

.price-block__original {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-left: 0.75rem;
}

.price-block__savings {
    color: var(--color-success);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.price-block__shipping {
    font-size: 0.9rem;
    color: var(--color-navy);
    margin-top: 0.75rem;
    font-weight: 500;
}

.price-block__expires {
    font-size: 0.85rem;
    color: var(--color-accent-dark);
    margin-top: 0.75rem;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}

.btn--primary {
    background: var(--color-teal);
    color: #fff;
    width: 100%;
}

.btn--primary:hover {
    background: var(--color-teal-dark);
}

.btn--buy {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: #fff;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 1.75rem;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn--buy:hover {
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, #0d5c56 100%);
    transform: translateY(-1px);
}

.deal-detail__cta {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn--secondary {
    background: var(--color-surface);
    color: var(--color-navy);
    border: 1px solid var(--color-border);
    width: 100%;
    margin-top: 0.75rem;
}

.btn--secondary:hover {
    background: var(--color-surface-alt);
}

.deal-detail__seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.deal-detail__seller-info img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.deal-detail__trust-badge {
    color: var(--color-teal);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.35rem;
}

.deal-detail__seller-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.deal-detail__meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.35rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filters select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
}

.filters__input {
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--color-surface);
    color: var(--color-text);
    width: 6.5rem;
}

.filters__apply {
    width: auto;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.filters__clear {
    align-self: center;
    font-size: 0.9rem;
    color: var(--color-muted);
    text-decoration: underline;
}

.filters__count {
    margin: -1rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Category page header */
.page-header {
    background: var(--color-navy);
    color: #fff;
    padding: 2.5rem 0;
}

.page-header__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.page-header__desc {
    opacity: 0.8;
    margin: 0.5rem 0 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--color-surface);
}

.pagination a:hover {
    border-color: var(--color-teal);
}

.pagination .active span {
    background: var(--color-teal);
    color: #fff;
    border-color: var(--color-teal);
}

/* Footer */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.72);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.site-footer__brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.site-footer__tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

.alert-banner {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

/* Auth pages */
.auth-page {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem 4rem;
}

.auth-card,
.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    width: min(100%, 440px);
    margin: 0 auto;
}

.auth-card--wide {
    width: min(100%, 520px);
}

.auth-card h1,
.form-card h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 0.25rem;
    color: var(--color-navy);
}

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

.form-group {
    margin-bottom: 1.15rem;
}

.form-label,
.form-group > label:not(.checkbox-group) {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.form-input,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-group textarea {
    min-height: 5rem;
    resize: vertical;
}

.form-error,
.form-group .error {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--color-teal);
    cursor: pointer;
}

.seller-fields {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.seller-fields.is-visible {
    display: block;
}

.seller-fields__heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 1rem;
}

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

.auth-card__footer a {
    color: var(--color-teal-dark);
    font-weight: 600;
}

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

.btn-primary,
.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: var(--radius);
    background: var(--color-teal);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background: var(--color-teal-dark);
}

.btn-ghost,
.btn.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    border-color: #c5cdd8;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-google__icon {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: lowercase;
}

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    display: block;
    width: 1.125rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s;
}

.nav-toggle__icon {
    position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle__icon::before {
    top: -6px;
}

.nav-toggle__icon::after {
    top: 6px;
}

/* Responsive */
@media (max-width: 900px) {
    .deal-detail__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-navy-light);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-lg);
        z-index: 10;
    }

    .header__menu.is-open {
        display: flex;
    }

    .site-nav--main {
        flex: none;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .header__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .site-nav a,
    .header__actions a {
        padding: 0.65rem 0.75rem;
        border-radius: 8px;
    }

    .site-nav a:hover,
    .header__actions a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .site-nav__form {
        display: flex;
        margin-top: 0.5rem;
    }

    .btn-signup,
    .header__cta,
    .site-nav__cta {
        width: 100%;
        padding: 0.7rem 1.25rem;
    }

    .header__login {
        text-align: center;
    }

    .lang-switcher {
        align-self: center;
        margin: 0.5rem 0;
    }

    .site-header__inner {
        position: relative;
        flex-wrap: nowrap;
        min-height: 60px;
        padding: 0.65rem 0;
    }
}

@media (max-width: 640px) {
    .brand-logo {
        height: 32px;
        max-width: min(160px, 44vw);
    }

    .hero {
        padding: 2.5rem 0 3rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .search-box__btn {
        border-radius: var(--radius-pill);
        width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

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

    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}
