/* ============================================
   CouponFinder - Premium White Theme
   Matching handycoupons.org / turbo.coupons style
   ============================================ */

/* === Reset & Variables === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #10b981;
    --accent-light: #d1fae5;
    --accent-dark: #059669;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-third: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-modal: 0 25px 60px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 100px;
    --font: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 60px;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-third: #94a3b8;
    --border: #334155;
    --border-light: #475569;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 2px solid var(--accent);
    height: var(--header-height);
}

.site-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-logo {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.nav-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-placeholder-icon {
    position: absolute;
    left: 16px;
    font-size: 0.9rem;
    pointer-events: none;
}

.nav-search input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.nav-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.nav-search input::placeholder {
    color: var(--text-third);
}

.theme-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--accent);
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================
   COUPONS GRID - Matching reference sites
   ============================================ */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================
   COUPON CARD - Exact reference match
   ============================================ */
.coupon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

/* Banner Image */
.card-banner {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.coupon-card:hover .card-banner img {
    transform: scale(1.05);
}

/* Rating Badge - top left */
.card-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 3;
}

.card-rating svg {
    width: 12px;
    height: 12px;
}

.card-rating .star {
    color: var(--accent);
    fill: var(--accent);
}

/* Brand Logo - overlapping bottom-left of banner */
.card-brand-logo {
    position: absolute;
    bottom: -20px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 2px solid var(--bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    object-fit: cover;
    z-index: 4;
}

/* Card Body */
.card-body {
    padding: 28px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-brand-name {
    font-size: 0.78rem;
    color: var(--text-third);
    font-weight: 400;
    margin-bottom: 12px;
}

/* Incentive Box */
.card-incentive {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.card-incentive::before,
.card-incentive::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.card-incentive::before { left: -10px; }
.card-incentive::after { right: -10px; }

.incentive-main-text {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.incentive-sub-text {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

/* Coupons Left */
.card-coupons-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 12px;
    padding: 4px 14px;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
}

.card-coupons-left svg {
    animation: iconRotate 8s linear infinite;
}

/* Get Code Button */
.card-get-code {
    width: 100%;
    padding: 10px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
}

.card-get-code:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Card Footer */
.card-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-third);
}

.card-footer-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer-item i,
.card-footer-item svg {
    color: var(--accent);
    font-size: 0.85rem;
}

/* ============================================
   MODAL OVERLAY (Multi-Stage Claim)
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: var(--bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.modal-header-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 20px 24px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.modal-brand-info {
    display: flex;
    gap: 14px;
    flex: 1;
}

.modal-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.modal-brand-text {
    flex: 1;
    min-width: 0;
}

.modal-brand-name {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    margin-bottom: 2px;
}

.modal-coupon-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.coupons-badge {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.verified-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.verified-badge i {
    font-size: 0.75rem;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Modal Body */
.modal-body {
    padding: 24px;
}

.modal-body.hidden {
    display: none;
}

/* Step 1: Incentive Box */
.modal-incentive {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.modal-incentive::before,
.modal-incentive::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.modal-incentive::before { left: -10px; }
.modal-incentive::after { right: -10px; }

.incentive-main {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.incentive-sub {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* Stats */
.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-third);
}

/* Details */
.modal-details {
    margin-bottom: 24px;
}

.modal-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Code Bar (Step 1 bottom) */
.modal-code-bar {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px dashed var(--border);
}

.code-masked {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-third);
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    letter-spacing: 2px;
}

.btn-show-code {
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-show-code:hover {
    background: var(--accent-dark);
}

/* ============================================
   STEP 2: Locked Code Box
   ============================================ */
.step2-content {
    text-align: center;
}

.step2-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.step2-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* Locked Code Box with corner frames */
.locked-code-box {
    position: relative;
    border: 2px dashed var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(16,185,129,0.03), rgba(16,185,129,0.08));
}

.corner-frame {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--accent);
    border-style: solid;
}

.corner-frame.tl {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
    border-radius: 4px 0 0 0;
}

.corner-frame.tr {
    top: -2px;
    right: -2px;
    border-width: 3px 3px 0 0;
    border-radius: 0 4px 0 0;
}

.corner-frame.bl {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 4px;
}

.corner-frame.br {
    bottom: -2px;
    right: -2px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 4px 0;
}

.locked-code-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.locked-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-third);
    text-transform: uppercase;
}

.locked-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.locked-status.unlocked {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.locked-code-value {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 3px;
    filter: blur(3px);
    user-select: none;
    transition: filter 0.5s ease, color 0.5s ease;
}

.locked-code-value.revealed {
    filter: blur(0);
    color: var(--accent);
}

/* ============================================
   PROGRESS STEPPER (Verification Flow)
   ============================================ */
.locker-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.45;
    transition: all 0.3s ease;
}

.stepper-step.active {
    opacity: 1;
}

.stepper-step.completed .step-num {
    background: var(--accent);
    color: white;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.stepper-step.active .step-num {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 4px var(--accent-light);
}

.step-info {
    text-align: left;
}

.step-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-third);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-desc {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.stepper-line {
    width: 36px;
    height: 2px;
    background: var(--border);
    transition: background 0.3s ease;
}

.stepper-line.active {
    background: var(--accent);
}

/* ============================================
   CUSTOM THEMED API LOCKER
   ============================================ */
.api-locker-box {
    margin-bottom: 24px;
}

.locker-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--accent-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: left;
}

.locker-notice-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(16,185,129,0.15);
}

.locker-notice-body h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.locker-notice-body p {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* Dynamic Offers Container */
.api-locker-offers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.api-offer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
}

.api-offer-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.api-offer-card.active-checking {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.offer-icon-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-icon-fallback {
    font-size: 1.3rem;
    color: var(--accent);
}

.offer-details {
    flex: 1;
    min-width: 0;
}

.offer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.offer-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-offer-action {
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-offer-action:hover {
    background: var(--accent-dark);
}

.btn-offer-action.loading {
    background: #059669;
    pointer-events: none;
}

.btn-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Live Polling Status Bar */
.api-locker-status {
    background: #f8fafc;
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    animation: fadeIn 0.3s ease;
}

.status-pulse-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text);
    font-weight: 600;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-check-manual {
    padding: 5px 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-check-manual:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.locker-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-third);
    font-weight: 500;
}

.locker-guarantee i {
    color: var(--accent);
}

.code-unlocked-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.code-unlocked-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.code-unlocked-meta .meta-item i {
    color: var(--accent);
}

/* Rate Coupon */
.rate-coupon {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-third);
}

.rate-buttons {
    display: flex;
    gap: 8px;
}

.rate-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-third);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.rate-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ============================================
   STEP 3: Code Revealed
   ============================================ */
.step3-content {
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 12px;
    animation: checkPop 0.5s ease;
}

.step3-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}

.revealed-code-box {
    display: flex;
    align-items: center;
    border: 2px dashed var(--accent);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--accent-light);
}

.revealed-code {
    flex: 1;
    padding: 14px 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
    text-align: center;
}

.copy-btn {
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    border: none;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--accent-dark);
}

.btn-done {
    width: 100%;
    padding: 14px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-done:hover {
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 24px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 3px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-third);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .coupons-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .coupons-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .site-nav { padding: 0 12px; gap: 10px; }
    .nav-logo { height: 26px; }
    .main-content { padding: 20px 12px 40px; }
    .section-title { font-size: 1.3rem; }
    .coupons-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-banner { height: 130px; }
    .card-body { padding: 24px 12px 10px; }
    .card-title { font-size: 0.82rem; }
    .incentive-main-text { font-size: 0.85rem; }
    .card-get-code { font-size: 0.78rem; padding: 9px; }
    .modal-container { max-width: 100%; border-radius: 14px; }
    .modal-body { padding: 18px; }
    .locked-code-value { font-size: 1.2rem; }
}

@media (max-width: 400px) {
    .coupons-grid { grid-template-columns: 1fr; }
}
