/* ==========================================================================
   LaOfertă — Main Styles (extracted from inline layout + homepage)
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #ff6b35;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fafafa;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    flex-wrap: wrap;
    gap: 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 28px;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background .2s, opacity .2s;
}

.navbar-menu a:hover {
    background: rgba(255,255,255,.15);
    opacity: 1;
}

.navbar-menu a.active {
    background: rgba(255,255,255,.25);
    font-weight: 600;
}

.navbar-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.lang-dropdown-trigger:hover {
    background: rgba(255,255,255,.25);
}

.lang-dropdown-arrow {
    font-size: 10px;
    transition: transform .2s;
}

.lang-dropdown.is-open .lang-dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 100px;
    overflow: hidden;
    z-index: 2000;
}

.lang-dropdown.is-open .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .12s;
}

.lang-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.lang-dropdown-item.is-active {
    color: #0066cc;
    background: #eff6ff;
}

.lang-dropdown-item .fa-check {
    font-size: 11px;
    color: #0066cc;
}

.btn-cart {
    position: relative;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 5px;
}

.btn-cart:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--secondary);
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.navbar-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.navbar-user-link:hover {
    opacity: 0.85;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-login {
    color: var(--primary);
    background: white;
}

.btn-login:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-register {
    background: var(--secondary);
    color: white;
}

.btn-register:hover {
    background: #ff5516;
    transform: translateY(-2px);
}

/* Hamburger button (hidden on desktop) */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background .15s;
}

.navbar-hamburger:hover {
    background: rgba(255,255,255,.15);
}

.navbar-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
    transform-origin: center;
}

.navbar-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.is-active span:nth-child(2) { opacity: 0; }
.navbar-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile icons strip (cart + hamburger) */
.navbar-mobile-icons {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Collapse wrapper */
.navbar-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ==========================================================================
   Ad Banner
   ========================================================================== */

.ad-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ad-banner h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Filters Section
   ========================================================================== */

.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filters h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 18px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.1);
}

.btn-filter {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    align-self: flex-end;
}

.btn-filter:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   Quick Filters
   ========================================================================== */

.quick-filters {
    background: white;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.quick-filters__toggle {
    display: none; /* hidden on desktop */
}

.qf-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-filters__label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quick-filters__toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        font-size: .8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #6b7280;
    }
    .qf-chevron {
        font-size: .7rem;
        transition: transform .2s;
    }
    .quick-filters.is-open .qf-chevron {
        transform: rotate(180deg);
    }
    .qf-pills {
        display: none;
        margin-top: 12px;
    }
    .quick-filters.is-open .qf-pills {
        display: flex;
    }
}

.qf-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    white-space: nowrap;
}

.qf-pill:hover {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.qf-pill.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.qf-pill .qf-icon {
    font-style: normal;
    line-height: 1;
}

/* ==========================================================================
   Table Section
   ========================================================================== */

.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.table-header {
    padding: 20px;
    background: var(--light);
    border-bottom: 2px solid #ddd;
}

.table-header h3 {
    color: var(--primary);
    font-size: 18px;
    margin: 0;
}

.table-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.per-page-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1px solid #dfe7f1;
    border-radius: 999px;
    padding: 5px 6px;
    box-shadow: 0 8px 24px rgba(0,102,204,.08);
}

.per-page-label {
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    padding: 0 8px 0 10px;
    white-space: nowrap;
}

.per-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    transition: all .18s;
    padding: 0 6px;
}

.per-page-btn:hover {
    background: rgba(0,102,204,.08);
    color: var(--primary);
}

.per-page-btn.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #dfe7f1;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.08);
}

.view-switcher-label {
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    padding: 0 10px 0 12px;
}

.view-switcher-btn {
    border: none;
    background: transparent;
    color: var(--gray);
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-switcher-btn:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
}

.view-switcher-btn.is-active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.25);
}

.offers-section [data-view-panel] {
    display: none;
}

.offers-section[data-offers-view="table"] [data-view-panel="table"],
.offers-section[data-offers-view="cards"] [data-view-panel="cards"] {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

th {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

th:hover {
    background: #eee;
}

th a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background: #f5f5f5;
}

.discount-badge {
    background: var(--success);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 15px;
}

.price {
    font-weight: 600;
    color: var(--primary);
}

.price-original {
    color: var(--gray);
}

.offers-cards-view {
    padding: 24px 20px 10px;
}

.offer-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ── AdSense in-grid card ───────────────────────────────────────────────── */
.offer-card--adsense {
    background: #f9fbff;
    border: 1px dashed #c8d9ef;
    border-radius: 22px;
    display: flex;
    align-items: stretch;
    min-height: 260px;
    overflow: hidden;
}

.offer-card--adsense .adsense-slot--card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    gap: 8px;
}

.offer-card--adsense .adsense-label {
    font-size: 10px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    align-self: flex-start;
}

/* ── AdSense in-table row ───────────────────────────────────────────────── */
.ot-tr-adsense {
    background: #f9fbff;
}

.ot-td-adsense {
    padding: 8px 16px;
    border-bottom: 1px solid #e6eef7;
}

.adsense-slot--table {
    width: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.adsense-slot--table .adsense-label {
    font-size: 10px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.offer-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6eef7;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.offer-card-media {
    position: relative;
    background: radial-gradient(circle at top left, rgba(0, 102, 204, 0.12), transparent 55%), linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
    padding: 24px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card-image {
    width: 100%;
    max-width: 190px;
    height: 180px;
    object-fit: contain;
}

.offer-card-placeholder {
    width: 100%;
    height: 180px;
    border: 2px dashed #c9d7e6;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa8b7;
    font-size: 48px;
    background: rgba(255, 255, 255, 0.7);
}

.offer-card-network {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.offer-card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    flex: 1;
}

.offer-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.offer-card-category {
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.offer-card h4 {
    font-size: 20px;
    line-height: 1.3;
    color: var(--dark);
}

.offer-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.offer-card-meta div {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #edf2f7;
}

.offer-card-meta dt {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.offer-card-meta dd {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.offer-card-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.offer-card-price-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f5f7fa;
    border: 1px solid #e6edf5;
}

.offer-card-price-box--sale {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12) 0%, rgba(0, 82, 163, 0.2) 100%);
    border-color: rgba(0, 102, 204, 0.18);
}

.offer-card-price-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.offer-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.offer-card-footer .validity {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.offer-card-footer .validity i {
    font-size: 14px;
    margin-top: 2px;
}

.offer-card-footer form {
    margin-left: auto;
}

/* ==========================================================================
   Product Thumbnails
   ========================================================================== */

.product-thumb {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.product-thumb > img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s;
}

.product-thumb-zoom {
    display: none;
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 6px;
    pointer-events: none;
}

.product-thumb-zoom img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
}

.product-thumb:hover .product-thumb-zoom {
    display: block;
}

.product-thumb:hover > img {
    transform: scale(1.1);
}

.validity {
    font-size: 12px;
    color: var(--gray);
}

.validity.active {
    color: var(--success);
    font-weight: 600;
}

/* ==========================================================================
   Offers Table — restructured responsive layout
   ========================================================================== */

.ot-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Column widths */
.ot-th-img     { width: 68px; }
.ot-th-product { width: auto; }
.ot-th-price   { width: 175px; }
.ot-th-trend   { width: 145px; }
.ot-th-store   { width: 195px; }
.ot-th-action  { width: 56px; }

/* Header cells */
.ot-table thead th {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    vertical-align: top;
}

.ot-th-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: 5px;
}

.ot-sort-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ot-sort-links a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .7rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: white;
    transition: color .12s, border-color .12s, background .12s;
    white-space: nowrap;
}

.ot-sort-links a:hover,
.ot-sort-links a.is-active {
    color: var(--primary);
    border-color: var(--primary);
    background: #eff6ff;
}

.ot-sort-links a .fa-arrow-down,
.ot-sort-links a .fa-arrow-up {
    font-size: .6rem;
    opacity: .5;
}

.ot-sort-links a.is-active .fa-arrow-down,
.ot-sort-links a.is-active .fa-arrow-up {
    opacity: 1;
}

/* Body cells */
.ot-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.ot-table tbody tr:hover td {
    background: #fafcff;
}

/* Image cell */
.ot-td-img {
    text-align: center;
}

.ot-no-img {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 18px;
    margin: 0 auto;
}

/* Product cell */
.ot-name {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 5px;
}

.ot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ot-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

.ot-meta-item i {
    font-size: .65rem;
    color: #9ca3af;
}

.ot-meta-cat {
    background: #eff6ff;
    color: #2563eb;
}

.ot-meta-cat i { color: #93c5fd; }

/* Price cell */
.ot-td-price {
    white-space: nowrap;
}

.ot-price-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.ot-price-sale {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.ot-price-reg {
    margin-bottom: 0;
}

/* Trend cell */
.ot-td-trend {
    vertical-align: middle;
}

/* Store cell */
.ot-network {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: .85rem;
}

.ot-store-icon {
    font-size: .8rem;
    color: #9ca3af;
}

.ot-validity {
    font-size: .72rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ot-validity i {
    color: #9ca3af;
    font-size: .65rem;
}

/* Action cell */
.ot-td-action {
    text-align: center;
}

/* Responsive: collapse price & store columns on small screens */
@media (max-width: 900px) {
    .ot-table { table-layout: auto; }
    .ot-th-price,
    .ot-th-trend,
    .ot-th-store  { width: auto; }
    .ot-th-action { width: 46px; }
    .ot-price-sale { font-size: .9rem; }
    .ot-meta-item { font-size: .68rem; }
}

@media (max-width: 640px) {
    .ot-table thead .ot-th-trend { display: none; }
    .ot-table tbody .ot-td-trend { display: none; }
}

@media (max-width: 540px) {
    .ot-table thead .ot-th-store { display: none; }
    .ot-table tbody .ot-td-store { display: none; }
    .ot-name { font-size: .85rem; }
}

/* ==========================================================================
   Pagination (Laravel default override)
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================================================
   Pagination Container
   ========================================================================== */

.pagination-container {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.pg-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pg-info {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

.pg-info strong {
    color: var(--dark);
    font-weight: 600;
}

.pg-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pg-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pg-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pg-btn--active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    cursor: default;
}

.pg-btn--active:hover {
    background: var(--primary);
    color: white;
}

.pg-btn--disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.pg-btn--dots {
    border-color: transparent;
    background: transparent;
    color: var(--gray);
    cursor: default;
    pointer-events: none;
}

.pg-btn--dots:hover {
    background: transparent;
    color: var(--gray);
    border-color: transparent;
}

.pg-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Homepage Specific
   ========================================================================== */

.alert-success-home {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.btn-add-to-list {
    background: var(--success);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-add-to-list:hover {
    background: #218838;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.btn-add-to-list--card {
    width: auto;
    height: 44px;
    border-radius: 14px;
    padding: 0 18px;
    gap: 8px;
}

.btn-add-to-list--card:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--dark);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    color: #bbb;
}

/* ==========================================================================
   Misc
   ========================================================================== */

.side-ads {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.no-offers {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.no-offers i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ── Tablet: collapse nav links, keep icons visible ── */
@media (max-width: 900px) {
    .navbar-content {
        height: auto;
        min-height: 60px;
        padding: 0;
        align-items: center;
    }

    .navbar-brand {
        font-size: 20px;
        padding: 10px 0;
    }

    /* Show hamburger strip */
    .navbar-mobile-icons {
        display: flex;
    }

    .navbar-mobile-user {
        display: flex;
    }

    .navbar-hamburger {
        display: flex;
    }

    /* Hide desktop cart inside collapse */
    .navbar-desktop-cart {
        display: none;
    }

    /* Collapse hidden by default */
    .navbar-collapse {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: rgba(0,0,0,.15);
        border-top: 1px solid rgba(255,255,255,.12);
        padding: 0;
        gap: 0;
    }

    .navbar-collapse.is-open {
        display: flex;
    }

    /* Row 1: menu links in a horizontal line */
    .navbar-menu {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        flex: none;
        gap: 2px;
        width: 100%;
        padding: 8px 10px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .navbar-menu li {
        width: auto;
    }

    .navbar-menu a {
        display: inline-flex;
        align-items: center;
        padding: 7px 11px;
        font-size: 13px;
        border-radius: 6px;
        transition: background .15s;
    }

    .navbar-menu a:hover {
        opacity: 1;
        background: rgba(255,255,255,.1);
    }

    /* Row 2: gamification + avatar + logout + lang */
    .navbar-auth {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px 12px 10px;
        margin-top: 0;
        justify-content: flex-start;
    }

    /* Bell already in top bar — hide in collapse on mobile */
    .navbar-desktop-notif {
        display: none;
    }

    /* User badge already in top bar — hide in collapse on mobile */
    .navbar-desktop-user {
        display: none;
    }

    /* Notifications btn in mobile top bar */
    .btn-notif {
        font-size: 18px;
        padding: 5px;
    }

    .lang-dropdown {
        width: auto;
    }

    .lang-dropdown-trigger {
        width: auto;
        justify-content: center;
    }

    .lang-dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* ── Mobile ≤ 600px ── */
@media (max-width: 600px) {
    .navbar {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .table-header-content {
        align-items: stretch;
    }

    .view-switcher {
        width: 100%;
        justify-content: space-between;
        border-radius: 18px;
    }

    .view-switcher-label {
        display: none;
    }

    .view-switcher-btn {
        flex: 1;
        justify-content: center;
        padding: 11px 12px;
    }

    /* On mobile, default to card view — hide table panel */
    [data-offers-container]:not([data-offers-view="table"]) [data-view-panel="table"],
    [data-offers-container][data-offers-view="cards"] [data-view-panel="table"] {
        display: none;
    }

    [data-offers-container][data-offers-view="cards"] [data-view-panel="cards"] {
        display: block;
    }

    .offers-cards-view {
        padding: 16px 12px 6px;
    }

    .offer-card-body {
        padding: 16px;
    }

    .offer-card-top,
    .offer-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .offer-card-meta,
    .offer-card-prices {
        grid-template-columns: 1fr;
    }

    .offer-card-footer form {
        margin-left: 0;
    }

    .btn-add-to-list--card {
        width: 100%;
    }

    .pg-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ── Mobile offer cards: table-row grouping (≤768px, forced card view) ── */
@media (max-width: 768px) {

    /* Card becomes a 2-col grid: [image 72px] [product info] */
    .offer-card {
        display: grid;
        grid-template-columns: 72px 1fr;
        column-gap: 12px;
        padding: 12px;
        border-radius: 14px;
        min-height: unset;
    }

    /* Group 1 – Image (col 1): spans rows 1-2 so it aligns with title + meta */
    .offer-card-media {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 72px;
        height: 72px;
        min-height: unset;
        border-radius: 10px;
        padding: 0;
        align-self: start;
    }
    .offer-card-image {
        width: 72px;
        height: 72px;
        max-width: none;
        border-radius: 10px;
        object-fit: cover;
    }
    .offer-card-placeholder {
        width: 72px;
        height: 72px;
        border-radius: 10px;
        font-size: 1.4rem;
    }
    .offer-card-network { display: none; }

    /* Dissolve body — children become direct grid items */
    .offer-card-body { display: contents; }

    /* Group 2a – Title + category + badge (col 2, row 1) */
    .offer-card-top {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        padding: 0;
        align-self: end;
    }
    .offer-card-top > div { flex: 1; min-width: 0; }
    .offer-card-category { font-size: 11px; margin-bottom: 3px; }
    .offer-card h4 { font-size: 14px; line-height: 1.3; }

    /* Group 2b – Meta labels (col 2, row 2): etichete sub titlu */
    .offer-card-meta {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        align-self: start;
        margin-top: 5px;
        /* reset grid + box styles */
        grid-template-columns: unset;
    }
    .offer-card-meta div {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 2px 7px;
    }
    .offer-card-meta dt {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        color: #94a3b8;
        font-size: 11px;
    }
    .offer-card-meta dd {
        font-size: 11px;
        font-weight: 600;
        color: #475569;
    }

    /* Group 3 – Prices: full width, row 3 */
    .offer-card-prices {
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }
    .offer-card-price-box { padding: 10px 12px; border-radius: 12px; }
    .offer-card-price-label { font-size: 10px; margin-bottom: 3px; }

    /* Group 4 – Price trend: full width, row 4 */
    .offer-card-trend {
        grid-column: 1 / -1;
        grid-row: 4;
        padding: 6px 0 0;
        border-top: 1px solid #f1f5f9;
        margin-top: 8px;
    }

    /* Group 5 – Footer: full width, row 5 */
    .offer-card-footer {
        grid-column: 1 / -1;
        grid-row: 5;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }
    .offer-card-footer form { margin-left: 0; }
    .btn-add-to-list--card  { width: 100%; margin-top: 2px; }
}

/* Suggestion cards: shift all rows down by 1 to make room for .suggestion-reasons */
@media (max-width: 768px) {
    .offer-card:has(.suggestion-reasons) .suggestion-reasons {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 8px 0 4px;
    }
    .offer-card:has(.suggestion-reasons) .offer-card-media {
        grid-row: 2 / span 2;
    }
    .offer-card:has(.suggestion-reasons) .offer-card-top {
        grid-row: 2;
    }
    .offer-card:has(.suggestion-reasons) .offer-card-meta {
        grid-row: 3;
    }
    .offer-card:has(.suggestion-reasons) .offer-card-prices {
        grid-row: 4;
    }
    .offer-card:has(.suggestion-reasons) .offer-card-trend {
        grid-row: 5;
    }
    .offer-card:has(.suggestion-reasons) .offer-card-footer {
        grid-row: 6;
    }
}

/* ── Mobile list item cards (shopping-list / purchased-products) ── */
.list-mobile-cards { display: none; }

.list-item-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    border: 1px solid #e8eef7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.list-item-card.list-item-expired { border-color: #fcd34d; background: #fffbeb; }

.lic-top { display: flex; gap: 12px; align-items: flex-start; }

.lic-img {
    width: 58px; height: 58px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #cbd5e1;
}
.lic-img img { width: 100%; height: 100%; object-fit: cover; }

.lic-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lic-body strong { font-size: 0.9rem; color: #1e293b; line-height: 1.3; }
.lic-body small  { font-size: 0.75rem; color: #64748b; }

.lic-prices {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
}

.lic-footer {
    display: flex; align-items: center;
    justify-content: space-between; gap: 8px; flex-wrap: wrap;
}

.lic-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.lic-actions .btn-checkbox { font-size: 20px; }
.lic-actions .btn-remove   { font-size: 16px; padding: 4px 8px; }

/* ── ≤768px: force card view on offers, show mobile cards on list pages ── */
@media (max-width: 768px) {
    /* Home offers: always card view */
    .offers-section [data-view-panel="table"] { display: none !important; }
    .offers-section [data-view-panel="cards"] { display: block !important; }
    .view-switcher { display: none; }

    /* List pages */
    .list-table-view   { display: none; }
    .list-mobile-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
}

/* ── Table: horizontal scroll on medium screens ── */
@media (max-width: 1100px) {
    .offers-table-view > div {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 780px;
        font-size: 13px;
    }

    th, td {
        padding: 10px 8px;
    }
}

/* Network logo inline */
.network-logo-inline {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
    border: 1px solid #e2e8f0;
}

.network-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.network-logo-pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid white;
}

.network-logo-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* ========================================
   Gamification Styles
   ======================================== */

/* Navbar badge */
.gamification-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.gamification-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

.gamification-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.gamification-points {
    font-variant-numeric: tabular-nums;
}

.gamification-progress-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.gamification-progress-fill {
    height: 100%;
    background: #ffd700;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Toast notifications */
.gamification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideInRight 0.4s ease;
}

.gamification-toast-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: fadeOutUp 0.5s ease 3s forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}

@keyframes dlgIn {
    from { transform: scale(.92) translateY(-10px); opacity: 0; }
    to   { transform: scale(1)   translateY(0);     opacity: 1; }
}

/* Achievements page */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.achievement-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: transform 0.18s, box-shadow 0.18s;
    border-top: 4px solid #667eea;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
}

.achievement-card.unlocked {
    border-top-color: #667eea;
    background: linear-gradient(180deg, #f5f7ff 0%, #fff 100%);
}

.achievement-card.locked {
    border-top-color: #cbd5e1;
    opacity: 0.55;
    filter: grayscale(0.4);
}

.achievement-icon { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.achievement-info h4 { font-size: 0.92rem; font-weight: 700; color: #1e293b; margin: 0 0 4px; }
.achievement-info p  { font-size: 0.78rem; color: #64748b; margin: 0; line-height: 1.4; }
.achievement-reward  { font-size: 0.75rem; color: #667eea; font-weight: 600; margin-top: 6px; }

@media (max-width: 900px) {
    .achievements-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .achievements-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .achievement-card  { padding: 18px 12px; }
}

.achievement-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.achievement-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.achievement-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.achievement-reward {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    margin-top: 4px;
}

/* Level card */
.level-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.level-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.level-details {
    flex: 1;
}

.level-details h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.level-details .level-subtitle {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.level-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: #ffd700;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.level-progress-text {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 6px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 4px solid #667eea;
    transition: transform .18s, box-shadow .18s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
}

.stat-card .stat-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { gap: 12px; }
    .stat-card  { padding: 18px 12px; }
    .stat-card .stat-value { font-size: 1.3rem; }
    .stat-card .stat-icon  { font-size: 1.6rem; }
}

/* Streak display */
.streak-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 24px;
}

.streak-display .streak-fire {
    font-size: 1.5rem;
}

.streak-display .streak-text {
    font-weight: 600;
    color: #c2410c;
}

.streak-display .streak-best {
    font-size: 0.82rem;
    color: #9a3412;
    margin-left: auto;
}

/* Weekly challenges */
.section-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.challenge-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.challenge-card.completed {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.challenge-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.challenge-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.challenge-info {
    flex: 1;
}

.challenge-info h4 {
    margin: 0 0 2px;
    font-size: 0.95rem;
}

.challenge-info p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}

.challenge-reward {
    font-size: 0.78rem;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
    background: #ede9fe;
    padding: 3px 8px;
    border-radius: 6px;
}

.challenge-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.challenge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.challenge-card.completed .challenge-progress-fill {
    background: #22c55e;
}

.challenge-progress-text {
    font-size: 0.78rem;
    color: #64748b;
    text-align: right;
}

.challenge-done {
    color: #16a34a;
    font-weight: 600;
}

/* Sub-navigation for account pages */
.stats-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.stats-nav a {
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
    color: #64748b;
    background: #fff;
}

.stats-nav a:hover {
    border-color: #667eea;
    color: #667eea;
}

.stats-nav a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

.stats-nav a i {
    margin-right: 4px;
}

/* ==========================================
   Phase 4: Community Banner & Leaderboard
   ========================================== */

/* Community Stats Banner */
/* Community stats strip */
.cs-strip {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1px solid #e9ecef;
    margin-bottom: 28px;
    overflow: hidden;
}

.cs-card {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    padding: 18px 22px;
    transition: background .15s;
}

.cs-card:hover {
    background: #f8faff;
}

.cs-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cs-card--blue  .cs-icon { background: #eff6ff; color: #2563eb; }
.cs-card--green .cs-icon { background: #f0fdf4; color: #16a34a; }
.cs-card--orange .cs-icon { background: #fff7ed; color: #ea580c; }
.cs-card--purple .cs-icon { background: #faf5ff; color: #9333ea; }

.cs-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cs-body strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.cs-body span {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
}

.cs-divider {
    width: 1px;
    background: #e9ecef;
    margin: 12px 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cs-strip {
        flex-wrap: wrap;
        border-radius: 12px;
    }
    .cs-card {
        flex: 1 1 calc(50% - 1px);
        padding: 14px 16px;
    }
    .cs-divider {
        display: none;
    }
    .cs-card:nth-child(3) { border-top: 1px solid #e9ecef; }
    .cs-card:nth-child(5) { border-top: 1px solid #e9ecef; }
}

@media (max-width: 440px) {
    .cs-card {
        flex: 1 1 100%;
    }
    .cs-card + .cs-card { border-top: 1px solid #e9ecef; }
}

/* ── Leaderboard Community Stats Cards ─────────────────────────────────── */
.lb-cs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.lb-cs-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform .18s, box-shadow .18s;
}

.lb-cs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.11);
}

.lb-cs-card--blue   { border-top-color: #3b82f6; }
.lb-cs-card--green  { border-top-color: #22c55e; }
.lb-cs-card--orange { border-top-color: #f59e0b; }
.lb-cs-card--purple { border-top-color: #8b5cf6; }

.lb-cs-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.lb-cs-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.lb-cs-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
}

.lb-cs-label {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .lb-cs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .lb-cs-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .lb-cs-card { padding: 18px 12px; }
    .lb-cs-value { font-size: 1.3rem; }
    .lb-cs-icon { font-size: 1.6rem; }
}

/* Leaderboard opt-in */
.leaderboard-optin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.optin-status {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.optin-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.optin-inactive {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.btn-optin {
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: #fff;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.88rem;
}

.btn-optin:hover {
    background: #667eea;
    color: #fff;
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.lb-tab {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.lb-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.lb-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* Podium (top 3) */
.lb-podium {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.podium-card {
    text-align: center;
    padding: 24px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    width: 180px;
    position: relative;
    transition: transform 0.2s;
}

.podium-card:hover {
    transform: translateY(-4px);
}

.podium-1 {
    border: 2px solid #fbbf24;
    box-shadow: 0 6px 24px rgba(251,191,36,0.25);
    order: 2;
    transform: scale(1.08);
}

.podium-1:hover {
    transform: scale(1.08) translateY(-4px);
}

.podium-2 {
    border: 2px solid #94a3b8;
    order: 1;
}

.podium-3 {
    border: 2px solid #d97706;
    order: 3;
}

.podium-rank {
    font-size: 2rem;
    margin-bottom: 8px;
}

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 3px solid #e2e8f0;
}

.podium-1 .podium-avatar {
    border-color: #fbbf24;
}

.podium-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.podium-level {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 6px;
}

.podium-score {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.podium-badges {
    margin-top: 8px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 4px;
}

/* Leaderboard table rows (ranks 4+) */
.lb-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: background 0.15s;
}

.lb-row:hover {
    background: #f8fafc;
}

.lb-rank {
    font-weight: 700;
    color: #64748b;
    min-width: 40px;
    font-size: 0.95rem;
}

.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.lb-name {
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.lb-badges {
    font-size: 1rem;
}

.lb-level {
    color: #64748b;
    font-size: 0.82rem;
    min-width: 60px;
}

.lb-score {
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
    text-align: right;
}

/* Empty state */
.lb-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lb-empty p {
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 640px) {

    .lb-podium {
        gap: 12px;
    }

    .podium-card {
        width: 150px;
        padding: 16px 12px;
    }

    .podium-1 {
        transform: scale(1.04);
    }

    .podium-1:hover {
        transform: scale(1.04) translateY(-4px);
    }

    .lb-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .lb-score {
        text-align: left;
    }

    .leaderboard-optin {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   Phase 5: Notifications
   ========================================== */

/* Navbar notification bell */
.btn-notif {
    position: relative;
    color: #64748b;
    font-size: 1.15rem;
    padding: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-notif:hover {
    color: #667eea;
}

/* User badge in top mobile bar (hidden via parent .navbar-mobile-icons on desktop) */
.navbar-mobile-user {
    text-decoration: none;
    align-items: center;
}

.navbar-mobile-user .navbar-avatar {
    display: block;
}

/* Bell in top mobile bar — match cart icon style */
.navbar-mobile-icons .btn-notif {
    color: white;
    font-size: 20px;
    padding: 5px;
}

.navbar-mobile-icons .btn-notif:hover {
    color: white;
    opacity: 0.8;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Notifications page */
.notif-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-notif-action {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notif-action:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-notif-danger:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: background 0.15s;
}

.notif-unread {
    border-left: 4px solid #667eea;
    background: #f0f3ff;
}

.notif-read {
    border-left: 4px solid transparent;
    opacity: 0.75;
}

.notif-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.notif-message {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 6px;
}

.notif-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.notif-time i {
    margin-right: 3px;
}

.btn-notif-read {
    background: none;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-notif-read:hover {
    border-color: #22c55e;
    color: #22c55e;
}

.notif-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notif-empty p {
    margin-top: 8px;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .notif-actions {
        flex-direction: column;
    }

    .notif-item {
        gap: 10px;
        padding: 12px;
    }
}

/* ==========================================
   Shopping Tabs (Shopping List / Purchased)
   ========================================== */

.shopping-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.shopping-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.shopping-tab:hover {
    color: var(--primary);
    border-bottom-color: #cbd5e1;
}

.shopping-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

.shopping-tab.active .tab-count {
    background: var(--primary);
    color: white;
}

/* Purchased Products Page */
.purchased-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.purchased-stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.purchased-stat-card:hover {
    transform: translateY(-2px);
}

.purchased-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.purchased-stat-card strong {
    display: block;
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchased-stat-card p {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

@media (max-width: 600px) {
    .shopping-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 4px;
    }

    .shopping-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        margin-bottom: 0;
        padding: 10px 16px;
        border-radius: 8px;
    }

    .shopping-tab.active {
        border-left-color: var(--primary);
        background: rgba(79, 70, 229, 0.05);
        border-bottom-color: transparent;
    }

    .purchased-summary {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Product Suggestions
   ========================================== */

.suggestion-info {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    color: #4338ca;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-info i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.suggestion-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px 0;
}

.suggestion-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.suggestion-tag i {
    font-size: 9px;
    color: #d97706;
}

/* ==========================================================================
   Advertisements
   ========================================================================== */

.ad-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1px 6px;
}

/* --- Banner ads --- */
.ad-banner--real {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.ad-banner-link {
    display: block;
    text-decoration: none;
}

.ad-banner-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.ad-banner-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    padding: 32px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ad-banner-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.85);
}

.ad-banner-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    background: var(--secondary, #ff6b35);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
}

.ad-banner--real .ad-label {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(255,255,255,.85);
}

/* --- Featured Deals section --- */
.featured-deals-section {
    margin: 32px 0;
}

.featured-deals-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.featured-deals-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.featured-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.featured-deal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .15s, box-shadow .15s;
}

.featured-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.featured-deal-badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #fff;
    z-index: 1;
}

.featured-deal-badge--red    { background: #ef4444; }
.featured-deal-badge--orange { background: #f97316; }
.featured-deal-badge--green  { background: #22c55e; }
.featured-deal-badge--blue   { background: #3b82f6; }
.featured-deal-badge--purple { background: #a855f7; }
.featured-deal-badge--yellow { background: #eab308; color: #1f2937; }

.featured-deal-media {
    height: 160px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-deal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-deal-placeholder {
    font-size: 40px;
    color: #d1d5db;
}

.featured-deal-body {
    padding: 12px 14px;
    flex: 1;
}

.featured-deal-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.featured-deal-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.35;
}

.featured-deal-network {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.network-logo-inline {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.featured-deal-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
}

.featured-deal-validity {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-deal-footer {
    padding: 10px 14px 14px;
    display: flex;
    gap: 8px;
}

/* --- Sponsored Products section --- */
.sponsored-section {
    margin: 32px 0;
}

.sponsored-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sponsored-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.sponsored-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.sponsored-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .15s, box-shadow .15s;
}

.sponsored-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.sponsored-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: .4px;
    z-index: 1;
}

.sponsored-media {
    height: 140px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsored-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsored-body {
    padding: 10px 12px;
    flex: 1;
}

.sponsored-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.35;
}

.sponsored-cta {
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--primary, #0066cc);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}

.sponsored-cta:hover {
    background: var(--primary-dark, #0052a3);
}

/* ==========================================================================
   Price Trend Sparkline
   ========================================================================== */

/* Table cell & card wrapper */
.pt-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.pt-spark {
    line-height: 0;
    display: block;
}

.pt-spark svg {
    display: block;
    overflow: visible;
}

/* Badges */
.pt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: .2px;
}

.pt-badge--low {
    background: #dcfce7;
    color: #15803d;
}

.pt-badge--down {
    background: #dcfce7;
    color: #15803d;
}

.pt-badge--up {
    background: #fee2e2;
    color: #b91c1c;
}

.pt-badge--stable {
    background: #eff6ff;
    color: #1d4ed8;
}

.pt-badge--new {
    background: #f3e8ff;
    color: #7e22ce;
}

/* Card trend strip */
.offer-card-trend {
    padding: 8px 16px 4px;
    border-top: 1px solid #f1f5f9;
}

.offer-card-trend .pt-wrap {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.offer-card-trend .pt-spark svg {
    width: 120px;
    height: 28px;
}
