/* ========================================================================
   Shop Diário de Notícias - CSS Principal
   Design: Moderno E-commerce com Gamificação
   ======================================================================== */

/* === VARIÁVEIS === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;

    --bronze: #CD7F32;
    --prata: #C0C0C0;
    --ouro: #FFD700;
    --diamante: #B9F2FF;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === RESET E BASE === */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* === TOP BAR === */
.shop-topbar {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.shop-topbar .topbar-link {
    color: var(--gray-300);
    transition: color 0.2s;
}

.shop-topbar .topbar-link:hover {
    color: var(--white);
}

.shop-topbar .topbar-divider {
    margin: 0 0.75rem;
    color: var(--gray-600);
}

.shop-topbar .topbar-user,
.shop-topbar .topbar-nivel,
.shop-topbar .topbar-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-topbar .topbar-promo .badge {
    font-size: 0.75rem;
}

/* === HEADER === */
.shop-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.shop-header .navbar {
    padding: 0.75rem 0;
}

.shop-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-900);
    font-weight: 700;
}

.shop-header .brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.shop-header .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.shop-header .brand-text small {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 0.75rem;
}

.shop-header .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.shop-header .nav-link:hover,
.shop-header .nav-link.active {
    color: var(--primary);
    background: var(--gray-100);
}

.shop-header .nav-link i {
    margin-right: 0.375rem;
}

/* === SEARCH === */
.shop-search {
    position: relative;
    width: 280px;
}

.shop-search input {
    padding-right: 40px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    transition: all 0.2s;
}

.shop-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.shop-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.shop-search button:hover {
    background: var(--primary-dark);
}

/* === USER AREA === */
.shop-user-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-user-area .btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all 0.2s;
}

.shop-user-area .btn-icon:hover {
    background: var(--danger);
    color: var(--white);
}

.shop-user-area .btn-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: var(--gray-100);
    border-radius: 50px;
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-user-area .btn-user:hover {
    background: var(--gray-200);
}

.shop-user-area .dropdown-menu {
    min-width: 240px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shop-user-area .dropdown-header {
    background: var(--gray-50);
    padding: 1rem;
}

.shop-user-area .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.shop-user-area .user-points {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.shop-user-area .dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-user-area .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

/* === VISITOR ALERT === */
.visitor-alert {
    margin-top: 1rem;
}

.visitor-alert .alert {
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border-left: 4px solid var(--primary);
}

/* === HERO SECTION === */
.shop-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="8"/></svg>');
    background-size: 200px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-stats .stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-stats .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hero-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* === HOW IT WORKS === */
.how-it-works {
    padding: 4rem 0;
    background: var(--white);
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 1.5rem;
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--gray-600);
    margin: 0;
}

/* === SECTIONS === */
.section-products,
.section-coupons,
.section-promos {
    padding: 3rem 0;
}

.section-coupons {
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === PRODUCT CARD === */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.btn-favorite:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.btn-favorite.active {
    color: var(--danger);
    background: #fef2f2;
}

.product-image {
    height: 180px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-store {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0.5rem 0;
    line-height: 1.4;
    flex: 1;
}

.product-pricing {
    margin-bottom: 0.75rem;
}

.price-old {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.product-coupon {
    background: #fef3c7;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.btn-offer {
    width: 100%;
    font-weight: 600;
}

/* === COUPON CARD === */
.coupon-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    transition: all 0.3s;
}

.coupon-card:hover {
    box-shadow: var(--shadow-lg);
}

.coupon-left {
    width: 140px;
    background: linear-gradient(135deg, var(--success), #059669);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.coupon-code {
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.coupon-auto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.coupon-auto i {
    font-size: 1.5rem;
}

.btn-copy {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: rgba(255,255,255,0.3);
}

.coupon-right {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--gray-800);
}

.coupon-validity {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.coupon-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-favorite-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-favorite-sm:hover,
.btn-favorite-sm.active {
    color: var(--danger);
    background: #fef2f2;
}

/* === PROMO CARD === */
.promo-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--warning);
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.promo-store {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
}

.promo-deadline {
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 500;
}

.promo-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    flex: 1;
}

.promo-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* === CONTENT LOCKED === */
.content-locked {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, var(--gray-100) 50%);
    padding: 3rem 0;
    margin-top: -2rem;
}

.locked-overlay {
    text-align: center;
    padding: 2rem;
}

.locked-overlay i {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.locked-overlay h4 {
    margin-bottom: 0.5rem;
}

.locked-overlay p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* === CTA SECTION === */
.cta-section {
    padding: 3rem 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: var(--white);
}

.cta-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.cta-box p {
    margin: 0;
    opacity: 0.9;
}

/* === FILTERS === */
.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.filters-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear-filters {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: block;
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    width: 100%;
}

.price-range span {
    color: var(--gray-400);
}

.filters-bar {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* === PAGINATION === */
.pagination-wrapper {
    margin-top: 2rem;
}

.pagination .page-link {
    border: none;
    color: var(--gray-600);
    padding: 0.625rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}

.pagination .page-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

/* === NO RESULTS === */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.no-results i {
    color: var(--gray-300);
}

.no-results h4 {
    margin: 1rem 0 0.5rem;
}

.no-results p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* === AUTH PAGES === */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.auth-links {
    text-align: center;
    margin: 1.5rem 0;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 1.5rem;
}

.auth-footer p {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.signup-benefits {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

/* === ACCOUNT === */
.account-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.user-card {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.user-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.user-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.user-level {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.user-points-display {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.user-points-display .points-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-points-display .points-label {
    color: var(--gray-400);
}

.account-menu {
    padding: 1rem;
}

.account-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.account-menu .menu-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.account-menu .menu-item.active {
    background: var(--primary);
    color: var(--white);
}

.account-menu .menu-item i {
    width: 20px;
    text-align: center;
}

.account-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.content-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-account {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card-account .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.stat-card-account .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card-account .stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Level Progress */
.level-progress-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.level-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.current-level,
.next-level {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
}

.next-level {
    color: var(--gray-400);
}

.level-progress {
    height: 12px;
    border-radius: 50px;
    background: var(--gray-200);
}

.level-info {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
}

/* How to Earn */
.how-to-earn {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.how-to-earn h5 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.earn-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
}

.earn-points {
    font-weight: 700;
    color: var(--success);
    font-size: 1.125rem;
}

/* Points History */
.points-summary {
    margin-bottom: 2rem;
}

.points-box {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.points-box.available {
    background: #d1fae5;
}

.points-box .points-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.points-box .points-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.points-history .table {
    margin: 0;
}

.points-change.positive {
    color: var(--success);
    font-weight: 600;
}

.points-change.negative {
    color: var(--danger);
    font-weight: 600;
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.level-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.level-card.current {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.level-card.locked {
    opacity: 0.6;
}

.level-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto 1rem;
}

.level-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.level-points {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.level-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
}

.level-benefits li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-benefits li i {
    color: var(--success);
}

.level-status {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.level-status.current {
    background: var(--primary);
    color: var(--white);
}

.level-status.unlocked {
    background: var(--success);
    color: var(--white);
}

.level-status.locked {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Favorites */
.filters-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border-radius: 50px;
    color: var(--gray-600);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.filter-tab:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
}

.filter-tab .badge {
    background: rgba(0,0,0,0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

.favorites-section {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stat Mini Cards */
.stat-mini-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.stat-mini-card i {
    font-size: 1.5rem;
    color: var(--gray-400);
}

.stat-mini-card.success i { color: var(--success); }
.stat-mini-card.warning i { color: var(--warning); }
.stat-mini-card.danger i { color: var(--danger); }

.stat-mini-card .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-mini-card .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-subtitle {
    color: var(--gray-500);
    margin: 0;
}

/* Coupon Card Full */
.coupon-card-full {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.coupon-card-full:hover {
    box-shadow: var(--shadow-lg);
}

.coupon-left-section {
    width: 160px;
    background: linear-gradient(135deg, var(--success), #059669);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.coupon-code-box {
    text-align: center;
}

.coupon-code-box .code-label {
    display: block;
    font-size: 0.625rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.coupon-code-box .code-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.btn-copy-code {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.coupon-auto-box {
    text-align: center;
}

.coupon-auto-box i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.coupon-center-section {
    flex: 1;
    padding: 1.25rem;
}

.coupon-center-section .coupon-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.coupon-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.coupon-meta {
    display: flex;
    gap: 1rem;
}

.coupon-status {
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.coupon-status.valido {
    background: #d1fae5;
    color: #065f46;
}

.coupon-status.expirando {
    background: #fef3c7;
    color: #92400e;
}

.coupon-status.expirado {
    background: #fee2e2;
    color: #991b1b;
}

.coupon-right-section {
    width: 160px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-shrink: 0;
    background: var(--gray-50);
}

.btn-favorite-lg {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-favorite-lg:hover,
.btn-favorite-lg.active {
    color: var(--danger);
    border-color: var(--danger);
    background: #fef2f2;
}

/* Promo Card Full */
.promo-card-full {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--warning);
}

.promo-card-full:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.promo-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
}

.promo-status {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.promo-status.valido { color: var(--success); }
.promo-status.expirando { color: var(--warning); }
.promo-status.expirado { color: var(--danger); }

.promo-terms {
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.promo-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* Footer */
.shop-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding-top: 4rem;
}

.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-widget p {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.levels-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.level-item .level-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.level-item .level-badge.bronze { background: var(--bronze); color: #fff; }
.level-item .level-badge.prata { background: var(--prata); color: #333; }
.level-item .level-badge.ouro { background: var(--ouro); color: #333; }
.level-item .level-badge.diamante { background: var(--diamante); color: #333; }

.level-item .level-name {
    flex: 1;
    color: var(--gray-300);
}

.level-item .level-points {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom .copyright,
.footer-bottom .powered-by {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--gray-400);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .shop-search {
        width: 100%;
        margin: 1rem 0;
    }

    .coupon-card-full {
        flex-direction: column;
    }

    .coupon-left-section,
    .coupon-right-section {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .coupon-card {
        flex-direction: column;
    }

    .coupon-left {
        width: 100%;
        padding: 1rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .account-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}
