/* =====================================================
   CodeFreeHub V2 - Main Stylesheet
   Modern, responsive, SEO-optimized design
   ===================================================== */

/* CSS Variables */
:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #DBEAFE;
    --secondary: #8B5CF6;
    --accent: #10B981;
    --accent-light: #D1FAE5;
    --warning: #F59E0B;
    --danger: #EF4444;
    --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;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, monospace;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    z-index: 9999;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 20px;
}

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-400);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 500;
}

.verified-badge svg {
    flex-shrink: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-link {
    color: var(--gray-400);
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-link:hover,
.lang-link.active {
    color: var(--white);
    background: var(--gray-700);
}

.lang-separator {
    color: var(--gray-600);
}

/* =====================================================
   MAIN HEADER & NAVIGATION
   ===================================================== */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link svg {
    transition: transform 0.2s;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-slow);
    list-style: none;
    z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--gray-700);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.cat-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 6px;
    font-size: 14px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}

.search-toggle:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* User Menu */
.user-menu .user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.user-dropdown {
    right: 0;
    left: auto;
    min-width: 200px;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0;
}

.text-danger {
    color: var(--danger) !important;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
}

.search-icon {
    color: var(--gray-400);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    font-family: inherit;
    color: var(--gray-800);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
    transition: var(--transition);
}

.search-close:hover {
    color: var(--gray-600);
}

/* =====================================================
   SEARCH SUGGESTIONS DROPDOWN
   ===================================================== */
.search-suggestions {
    margin-top: 12px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid var(--gray-100);
    animation: suggestionsAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes suggestionsAppear {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.search-suggestions-header {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-bottom: 1px solid var(--gray-100);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-400);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-suggestions-header span:last-child {
    color: var(--primary);
}

/* Each suggestion item */
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-50);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.06) 0%, var(--white) 60%);
    border-left-color: var(--primary);
}

.search-suggestion-item.selected {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--white) 70%);
}

.search-suggestion-item::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0;
    transition: all 0.2s ease;
}

.search-suggestion-item:hover::after,
.search-suggestion-item.selected::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Icon circle */
.search-suggestion-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-light), #EFF6FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

/* Info block */
.search-suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-suggestion-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-title mark {
    background: linear-gradient(180deg, transparent 60%, rgba(251, 191, 36, 0.35) 60%);
    color: var(--gray-900);
    font-weight: 700;
    padding: 0 1px;
    border-radius: 2px;
}

.search-suggestion-meta {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-suggestion-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.search-suggestion-brand {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

/* Reward badge */
.search-suggestion-reward {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 12px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* No results state */
.search-no-results {
    padding: 48px 24px;
    text-align: center;
    color: var(--gray-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.search-no-results-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
}

.search-no-results-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-600);
}

.search-no-results-text {
    font-size: 13px;
    color: var(--gray-400);
    max-width: 280px;
    line-height: 1.5;
}

/* Loading state */
.search-loading {
    padding: 40px 24px;
    text-align: center;
    color: var(--gray-400);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.search-loading-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer with keyboard hints */
.search-suggestions-footer {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.search-suggestions-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

.search-suggestions-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 6px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    font-family: var(--font-mono);
    box-shadow: 0 1px 0 var(--gray-200), 0 2px 0 var(--gray-200);
    line-height: 1.4;
}

/* Custom scrollbar */
.search-suggestions::-webkit-scrollbar {
    width: 5px;
}
.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}
.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}
.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 4px;
}

.mobile-nav {
    padding: 16px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 12px 0;
}

/* =====================================================
   HERO SECTION — VARIANT A: 2-column with cards preview
   ===================================================== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%);
    color: white;
    padding: 40px 0 48px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    max-width: 540px;
}

.hero-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Right side: preview cards */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    perspective: 1000px;
}

.hero-preview-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-preview-card:nth-child(2) {
    animation-delay: 0.5s;
    margin-left: 24px;
}

.hero-preview-card:nth-child(3) {
    animation-delay: 1s;
    margin-left: 48px;
}

.hero-preview-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-preview-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--white);
    padding: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-preview-info {
    flex: 1;
    min-width: 0;
}

.hero-preview-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-preview-reward {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Stats band — separate, white background */
.stats-band {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.stats-band-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.stats-band-item {
    text-align: center;
}

.stats-band-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stats-band-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* =====================================================
   HERO SECTION — VARIANT B: Centered compact (backup)
   Use class .hero-centered on the section
   ===================================================== */
.hero-centered {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    padding: 56px 0 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-centered::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-centered .hero-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-centered .hero-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 14px;
}

.hero-centered .hero-description {
    margin: 0 auto 24px;
    font-size: 16px;
}

.hero-centered .hero-cta {
    justify-content: center;
    margin-bottom: 28px;
}

.hero-centered .hero-stats-inline {
    display: inline-flex;
    gap: 32px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px 32px;
}

.hero-centered .hero-stat-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-centered .hero-stat-inline:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 8px;
}

.hero-centered .hero-stat-number {
    font-size: 20px;
    font-weight: 800;
}

.hero-centered .hero-stat-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -----------------------------------------------------
   STEPS / HOW IT WORKS
   ----------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    text-align: center;
}

.step-card {
    padding: 8px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 16px;
    color: white;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.step-card p {
    color: var(--gray-500);
    line-height: 1.6;
    font-size: 15px;
}

/* -----------------------------------------------------
   NEWSLETTER
   ----------------------------------------------------- */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.newsletter-content-old {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-content {
    text-align: center;
    max-width: 480px; /* Redus de la o lățime mai mare */
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.newsletter-form-old {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px; /* Restrânge formularul să fie mai compact */
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--gray-800);
    background: white;
}

.newsletter-form input::placeholder {
    color: var(--gray-400);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-form button {
    background: white;
    color: var(--primary);
    white-space: nowrap;
    border: none;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* =====================================================
   CATEGORY CARDS
   ===================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition-slow);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.category-count {
    font-size: 13px;
    color: var(--gray-500);
}

/* =====================================================
   OFFER CARDS
   ===================================================== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.offer-card-old {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.offer-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;             /* Asigură-te că folosește flexbox */
    flex-direction: column;    /* Așază elementele pe verticală */
    height: 100%;              /* Ocupă toată înălțimea disponibilă în grilă */
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.offer-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.offer-card.featured:hover {
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.offer-header-old {
    padding: 20px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.offer-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 0 0 auto; /* Împiedică header-ul să se întindă inutil */
}

.offer-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    object-fit: contain;
    background: var(--gray-100);
    padding: 8px;
    flex-shrink: 0;
}

.offer-info-old {
    flex: 1;
    min-width: 0;
}

.offer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* Setăm o înălțime minimă pentru zona de titlu ca să aibă loc mereu 2 rânduri */
    min-height: 65px; 
}

.offer-brand {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.offer-title-old {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 6px;
}

.offer-title {
    font-size: 16px; /* Redus de la 18px ca să încapă titlurile lungi */
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 6px;

    /* Opțional: Dacă vrei ca titlurile să se oprească strict la 2 rânduri și să pună "..." */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.offer-body-old {
    padding: 16px 24px;
    flex: 1;
}

.offer-description-old {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.offer-body {
    padding: 16px 24px;
    flex: 1;                   /* Ocupă spațiul disponibil, egalizând înălțimea cardurilor */
    display: flex;
    flex-direction: column;
}

.offer-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;                   /* Împinge elementele de sub descriere jos dacă e nevoie */
}

.offer-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.offer-reward-icon {
    font-size: 18px;
}

.offer-reward-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.offer-reward-amount {
    color: var(--accent);
    font-weight: 700;
}

.offer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.offer-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 10px;
}

.offer-footer .btn {
    flex: 1;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verified {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-featured {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.badge-new {
    background: var(--primary-light);
    color: var(--primary);
}

/* =====================================================
   OFFER DETAIL PAGE
   ===================================================== */
.offer-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.offer-detail-header {
    padding: 40px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.offer-detail-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.offer-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: contain;
    background: var(--white);
    padding: 12px;
    box-shadow: var(--shadow);
}

.offer-detail-title-group h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.offer-detail-subtitle {
    font-size: 16px;
    color: var(--gray-500);
}

.offer-detail-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.reward-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.reward-box:hover {
    border-color: var(--primary);
}

.reward-box-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.reward-box-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.reward-box-currency {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Referral Code Box */
.referral-code-box {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    text-align: center;
    margin: 24px 0;
}

.referral-code-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.referral-code-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 28px;
    border-radius: var(--radius);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.referral-code-text {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.referral-code-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.referral-code-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.referral-code-copy.copied {
    background: var(--accent);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.features-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =====================================================
   REVIEWS SECTION
   ===================================================== */
.reviews-section {
    margin-top: 40px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.review-name {
    font-weight: 600;
    color: var(--gray-800);
}

.review-date {
    font-size: 13px;
    color: var(--gray-400);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--warning);
    font-size: 16px;
}

.star.empty {
    color: var(--gray-300);
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.review-content {
    color: var(--gray-600);
    line-height: 1.6;
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 8px;
}

/* Review Form */
.review-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.review-form h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--gray-800);
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 28px;
    color: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--warning);
}

/* =====================================================
   REFERRAL DASHBOARD
   ===================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.dashboard-sidebar {
    position: sticky;
    top: 96px;
    height: fit-content;
}

.dashboard-nav {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
    background: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
}

.dashboard-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stat-card-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Referral Link Generator */
.referral-generator {
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.referral-generator h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.referral-generator p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

.referral-link-display {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

.referral-link-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 14px;
    background: var(--white);
    color: var(--gray-700);
}

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--gray-900);
    color: white;
    padding: 24px;
    position: fixed;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-700);
}

.admin-logo span {
    font-size: 20px;
    font-weight: 800;
}

.admin-nav {
    list-style: none;
}

.admin-nav-item {
    margin-bottom: 4px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--gray-800);
    color: white;
}

.admin-nav-link svg {
    flex-shrink: 0;
}

.admin-main {
    margin-left: 260px;
    padding: 32px;
    background: var(--gray-50);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
}

/* Data Table */
.data-table-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--gray-50);
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
}

.data-table tr:hover td {
    background: var(--gray-50);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.table-btn-edit {
    background: var(--primary-light);
    color: var(--primary);
}

.table-btn-edit:hover {
    background: var(--primary);
    color: white;
}

.table-btn-delete {
    background: #FEE2E2;
    color: var(--danger);
}

.table-btn-delete:hover {
    background: var(--danger);
    color: white;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    background: var(--accent-light);
    color: var(--accent);
}

.status-active::before {
    background: var(--accent);
}

.status-pending {
    background: #FEF3C7;
    color: var(--warning);
}

.status-pending::before {
    background: var(--warning);
}

.status-inactive {
    background: var(--gray-100);
    color: var(--gray-500);
}

.status-inactive::before {
    background: var(--gray-400);
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--accent);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

/* =====================================================
   FOOTER
   ===================================================== */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    margin-top: auto;
}

.footer-top {
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
}

.footer-disclaimer {
    margin-top: 8px;
    color: var(--gray-600);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .admin-main {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .auth-buttons {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
    
    .qr-code-box {
        display: none !important;
    }
    
    .offer-detail-rewards {
        grid-template-columns: 1fr !important; /* Trec pe o singură coloană pe telefon */
        gap: 10px !important;
    }

    .hero {
        padding: 32px 0 36px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-right {
        display: none;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .stats-band {
        padding: 16px 0;
    }

    .stats-band-grid {
        gap: 32px;
    }

    .stats-band-number {
        font-size: 20px;
    }

    .hero-centered {
        padding: 40px 0 32px;
    }

    .hero-centered .hero-stats-inline {
        flex-direction: column;
        gap: 12px;
        padding: 16px 24px;
    }

    .hero-centered .hero-stat-inline:not(:last-child)::after {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }

    .steps-grid {
        gap: 32px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-detail-header {
        padding: 24px;
    }

    .offer-detail-title-group h1 {
        font-size: 24px;
    }

    .referral-link-display {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .data-table-wrapper {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .search-container {
        padding: 0 16px;
    }

    .search-suggestions {
        max-height: 70vh;
    }

    .search-suggestion-reward {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .offer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   MOBILE FIXES — August 2026
   ===================================================== */

/* Home Categories: 5 cols desktop → 3 tablet → 2 mobile */
.home-categories-grid {
    grid-template-columns: repeat(5, 1fr);
}

.category-view-all {
    border: 2px dashed var(--gray-300);
    background: transparent;
}
.category-view-all .category-name {
    font-weight: 700;
}

@media (max-width: 1024px) {
    .home-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .home-categories-grid .category-card {
        padding: 20px 10px;
    }
    .home-categories-grid .category-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .home-categories-grid .category-name {
        font-size: 14px;
    }
    .home-categories-grid .category-count {
        font-size: 12px;
    }
}

/* Newsletter responsive */
.newsletter-message {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-form-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.newsletter-form-row .form-input {
    min-width: 280px;
    flex: 1;
}

.newsletter-recaptcha-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .newsletter-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form-row .form-input {
        min-width: unset;
        width: 100%;
    }
    .newsletter-recaptcha-wrap {
        flex-direction: column;
        gap: 16px;
    }
    .newsletter-recaptcha-wrap .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }
    .newsletter-recaptcha-wrap .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .newsletter-recaptcha-wrap .g-recaptcha {
        transform: scale(0.78);
        transform-origin: center;
    }
}

/* Top bar mobile */
@media (max-width: 640px) {
    .top-bar {
        font-size: 11px;
        padding: 6px 0;
    }
    .top-bar .container {
        gap: 8px;
    }
    .verified-badge svg {
        width: 14px;
        height: 14px;
    }
    .language-switcher {
        gap: 4px;
    }
    .lang-link {
        padding: 2px 4px;
        font-size: 11px;
    }
}

/* Footer mobile centering */
@media (max-width: 768px) {
    .footer-brand {
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-links {
        text-align: center;
    }
    .footer-links h4 {
        margin-bottom: 12px;
    }
    .footer-links2 ul {
        display: inline-block;
        text-align: left;
    }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
}

/* Header mobile compact */
@media (max-width: 480px) {
    .logo-tagline {
        display: none;
    }
    .main-nav {
        height: 60px;
    }
    .container {
        padding: 0 16px;
    }
}

/* Stats band tighter on small screens */
@media (max-width: 480px) {
    .stats-band-grid {
        gap: 24px;
    }
    .stats-band-number {
        font-size: 18px;
    }
    .stats-band-label {
        font-size: 10px;
    }
}


/* =====================================================
   OFFER DETAIL — REFERRAL CODE HIGHLIGHT & MOBILE LAYOUT
   ===================================================== */

.offer-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-rows: auto auto auto;
    gap: 40px;
    align-items: start;
}

.offer-main {
    grid-column: 1;
    grid-row: 1;
}

.offer-sidebar {
    grid-column: 2;
    grid-row: 1 / 4;
    position: sticky;
    top: 96px;
    height: fit-content;
}

.offer-details-extra {
    grid-column: 1;
    grid-row: 2;
}

.offer-reviews-section {
    grid-column: 1;
    grid-row: 3;
}

.offer-description-text {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 16px;
}

.ref-code-highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #fbbf24;
    white-space: nowrap;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Mobile: About → Bonus → Features/FAQ → Similar → Reviews */
@media (max-width: 768px) {
    .offer-layout {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .offer-sidebar {
        display: contents;
        position: static;
        order: unset;
    }

    .offer-main {
        order: 1;
    }

    .offer-bonus-card {
        order: 2;
    }

    .offer-details-extra {
        order: 3;
    }

    .offer-similar {
        order: 4;
    }

    .offer-reviews-section {
        order: 5;
    }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print Styles */
@media print {
    .main-header,
    .top-bar,
    .main-footer,
    .search-overlay,
    .mobile-menu,
    .toast-container {
        display: none !important;
    }

    body {
        background: white;
    }

    .offer-card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* Dynamic Category Backgrounds */
.bg-crypto { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.bg-hosting { background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); }
.bg-shopping { background: linear-gradient(135deg, #064e3b 0%, #022c22 100%); }
.bg-fintech { background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%); }
.bg-security { background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%); }
.bg-investing { background: linear-gradient(135deg, #581c87 0%, #3b0764 100%); }

/* Hero animated mesh gradient */
.hero-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(at 40% 20%, hsla(217,91%,60%,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(258,92%,66%,0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(162,84%,45%,0.15) 0px, transparent 50%);
  pointer-events: none;
}


/* =====================================================
   REFERRAL CODE HIGHLIGHT
   ===================================================== */
.ref-code-highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #fbbf24;
    white-space: nowrap;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


