/* ==========================================
   WOO ACCOUNT ONBOARDING v3.0.0
   Modern My Account Dashboard for WooCommerce
   ========================================== */

/* HIDE DEFAULTS */
.woocommerce-account .entry-header,
.woocommerce-account .entry-title,
.woocommerce-account h1.page-title,
body.woocommerce-account .entry-title,
body.woocommerce-account h1.entry-title { display: none !important; }
.ct-account-welcome { display: none !important; }

/* ==========================================
   LAYOUT — CSS GRID (Menu LEFT)
   ========================================== */

@media (min-width: 769px) {
    .woocommerce-account .woocommerce,
    .woocommerce-account .ct-woo-account {
        display: grid !important;
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto 1fr;
        gap: 0 28px;
        align-items: start;
    }
    .wao-user-profile-card { grid-column: 1; grid-row: 1; margin-bottom: 16px; }
    .woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 2; position: sticky; top: 20px; }
    .woocommerce-account .woocommerce-MyAccount-content-wrapper { grid-column: 2; grid-row: 1 / -1; min-width: 0; }
    .wao-mobile-nav-toggle { display: none !important; }
}

/* ==========================================
   USER PROFILE CARD
   ========================================== */

.wao-user-profile-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; background: #fff;
    border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}
.wao-user-avatar { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid #e8e0f3; }
.wao-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wao-user-info { flex: 1; min-width: 0; }
.wao-user-name { font-weight: 700; font-size: 15px; color: #1a1a2e; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wao-user-email { font-size: 12px; color: #8b8b9e; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wao-user-actions { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.wao-user-action-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: #8b8b9e; transition: all 0.2s ease; background: #f5f3fa; }
.wao-user-action-link:hover { background: #53379e; color: #fff; }

/* ==========================================
   HERO SECTION
   ========================================== */

.wao-hero-section {
    position: relative; width: 100%; min-height: 240px; overflow: hidden;
    border-radius: 20px; margin-bottom: 20px;
    background: linear-gradient(135deg, #53379e 0%, #7b4fb8 40%, #c0628e 70%, #e8785b 100%);
}
.wao-hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; mix-blend-mode: overlay; }
.wao-hero-overlay { position: relative; z-index: 2; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; min-height: 240px; }
.wao-hero-text { margin-bottom: 20px; }
.wao-welcome-title { font-size: 30px; font-weight: 800; margin: 0 0 8px; line-height: 1.2; color: #fff; letter-spacing: -0.02em; }
.wao-welcome-description { font-size: 15px; margin: 0; opacity: 0.85; line-height: 1.5; color: #fff; }
.wao-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.wao-hero-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 12px; text-decoration: none;
    font-size: 14px; font-weight: 600; transition: all 0.25s ease;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}
.wao-hero-btn--disabled {
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5);
    cursor: default; position: relative;
}
.wao-hero-btn--disabled:hover { background: rgba(255,255,255,0.15); }
.wao-hero-btn--active {
    background: rgba(255,255,255,0.2); color: #fff;
    cursor: pointer;
}
.wao-hero-btn--active svg, .wao-hero-btn--active > span:not(.wao-hero-btn-badge) { color: #fff; }
.wao-hero-btn--active:hover { background: rgba(255,255,255,0.3); color: #fff; transform: translateY(-1px); }
.wao-hero-btn-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: #fff; color: #53379e !important; font-size: 11px; font-weight: 800;
    border-radius: 10px; line-height: 1;
}
.wao-hero-btn svg { flex-shrink: 0; }

/* Tooltip */
.wao-tooltip-wrap { position: relative; }
.wao-tooltip {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: #1a1a2e; color: #fff; font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.wao-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: #1a1a2e;
}
.wao-tooltip-wrap:hover .wao-tooltip { opacity: 1; }

/* ==========================================
   APP CARD
   ========================================== */

.wao-app-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Gradient divider between app cards (rendered as HTML element) */
.wao-app-card-divider {
    height: 2px;
    margin: 24px 8% 24px;
    background: linear-gradient(90deg, transparent, rgba(83,55,158,0.18) 25%, rgba(123,79,184,0.32) 50%, rgba(83,55,158,0.18) 75%, transparent);
    border-radius: 2px;
}

/* APP HEADER — thumbnail + name + status */
.wao-app-header {
    display: flex; gap: 14px; align-items: center;
    padding: 20px 24px 16px;
}

/* Header bg — subscribed (soft green tint) */
.wao-app-header--subscribed {
    background: linear-gradient(135deg, rgba(5,150,105,0.06) 0%, rgba(83,55,158,0.05) 100%);
    border-bottom: 1px solid rgba(5,150,105,0.08);
}

/* Header bg — trial (soft purple tint) */
.wao-app-header--trial {
    background: linear-gradient(135deg, rgba(123,79,184,0.08) 0%, rgba(83,55,158,0.05) 100%);
    border-bottom: 1px solid rgba(123,79,184,0.1);
}
.wao-app-thumbnail {
    flex-shrink: 0; width: 48px; height: 48px;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(83,55,158,0.12);
}
.wao-app-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wao-app-meta { flex: 1; min-width: 0; }

/* FIX: Override theme h3 margin (Blocksy/Gutenberg spacing) */
.wao-app-card .wao-app-name,
.wao-app-card h3.wao-app-name {
    font-size: 15px; font-weight: 700; color: #1a1a2e; line-height: 1.3;
    margin: 0 0 5px 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 5px !important;
    padding: 0;
}
.wao-app-name a { color: inherit; text-decoration: none; transition: color 0.2s; }
.wao-app-name a:hover { color: #53379e; }

/* Status line — directly under name, minimal gap */
.wao-app-status-line {
    display: flex; align-items: center; gap: 8px;
    margin-top: 0; flex-wrap: wrap;
}
.wao-app-user-badge {
    display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 600;
}
.wao-app-user-badge--subscribed { color: #059669; }
.wao-app-user-badge--trial { color: #d97706; }

.wao-app-status-link {
    font-size: 12px; font-weight: 600; color: #53379e;
    text-decoration: none; transition: color 0.2s;
}
.wao-app-status-link:hover { color: #3d2878; text-decoration: underline; }
.wao-app-status-link--cta { color: #059669; }
.wao-app-status-link--cta:hover { color: #047857; }

/* ==========================================
   ACCORDION SECTIONS — with slide animation
   ========================================== */

.wao-app-section {
    border-top: 1px solid #f0eef5;
}

/* Toggle — purple text, icon + label */
.wao-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #53379e;
    letter-spacing: 0.02em;
    font-family: inherit;
    text-align: left;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}
.wao-accordion-toggle > span {
    display: flex; align-items: center; gap: 8px;
}
.wao-accordion-toggle > span svg {
    flex-shrink: 0; opacity: 0.7;
}
.wao-accordion-toggle:hover { color: #3d2878; background: rgba(83,55,158,0.03); }
.wao-accordion.is-open > .wao-accordion-toggle { color: #3d2878; background: rgba(83,55,158,0.03); }

.wao-accordion-arrow {
    flex-shrink: 0;
    color: #53379e;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Accordion Body — animated slide (scrollHeight-based, no padding transition) */
.wao-accordion .wao-accordion-body {
    padding: 0 24px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease,
                opacity 0.25s ease;
}

/* OPEN state — body visible, arrow rotated */
.wao-accordion.is-open > .wao-accordion-body {
    opacity: 1;
    padding: 16px 24px 18px;
}
.wao-accordion.is-open .wao-accordion-arrow {
    transform: rotate(180deg);
}

/* ==========================================
   SUBSCRIPTION ROWS
   ========================================== */

.wao-sub-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 14px;
    background: #faf9fd; border: 1px solid #eee8f5;
    border-radius: 10px; margin-bottom: 8px;
    transition: border-color 0.2s ease;
}
.wao-sub-row:hover { border-color: #d4c4ee; }
.wao-sub-row:last-of-type { margin-bottom: 0; }

.wao-sub-info { flex: 1; min-width: 0; }
.wao-sub-id-line { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.wao-sub-id { font-size: 13px; font-weight: 700; color: #1a1a2e; }

/* Status Badges */
.wao-status-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 5px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.wao-status--active { background: #dcfce7; color: #166534; }
.wao-status--hold { background: #fef3c7; color: #92400e; }
.wao-status--pending { background: #fed7aa; color: #9a3412; }
.wao-status--cancelled { background: #fecaca; color: #991b1b; }
.wao-status--expired { background: #e5e7eb; color: #4b5563; }
.wao-status--default { background: #f3f4f6; color: #6b7280; }

.wao-sub-details {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
    font-size: 12px; color: #6b6b80;
}
.wao-sub-price { font-weight: 600; color: #1a1a2e; }
.wao-sub-sep { color: #d1d5db; }
.wao-sub-period { color: #8b8b9e; }
.wao-sub-next { color: #8b8b9e; }

/* Action Buttons — Icon + Text, with borders */
.wao-sub-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.wao-sub-text-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 8px;
    text-decoration: none; font-size: 12px; font-weight: 600;
    transition: all 0.2s ease; white-space: nowrap;
    border: 1px solid transparent;
}
.wao-sub-text-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.wao-sub-text--view { 
    color: #53379e; 
    background: #f5f0ff; 
    border-color: #e8dff5; 
}
.wao-sub-text--view:hover { 
    background: #ebe4f5; 
    border-color: #d4c4ee; 
}
.wao-sub-text--upgrade { 
    color: #059669; 
    background: #ecfdf5; 
    border-color: #a7f3d0; 
}
.wao-sub-text--upgrade:hover { 
    background: #d1fae5; 
    border-color: #6ee7b7;
    color: #047857; 
}
.wao-sub-text--cancel { 
    color: #dc2626; 
    background: #fef2f2; 
    border-color: #fecaca; 
}
.wao-sub-text--cancel:hover { 
    background: #fee2e2; 
    border-color: #fca5a5; 
}
.wao-sub-text--resubscribe { 
    color: #059669; 
    background: #ecfdf5; 
    border-color: #a7f3d0; 
}
.wao-sub-text--resubscribe:hover { 
    background: #d1fae5; 
    border-color: #6ee7b7; 
}

/* View All Button */
.wao-view-all-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; padding: 7px 14px; border-radius: 8px;
    background: #f0eef5; color: #53379e;
    text-decoration: none; font-size: 12px; font-weight: 600;
    transition: all 0.2s ease;
}
.wao-view-all-btn:hover { background: #53379e; color: #fff; }
.wao-view-all-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Empty State + CTA */
.wao-empty-state {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 18px;
    background: #faf9fd; border: 1px dashed #d4c4ee;
    border-radius: 10px;
}
.wao-empty-state p { margin: 0; font-size: 13px; color: #8b8b9e; font-weight: 500; }

.wao-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 8px;
    background: linear-gradient(135deg, #53379e 0%, #7b4fb8 100%);
    color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
    transition: all 0.25s ease; white-space: nowrap;
}
.wao-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(83,55,158,0.3); color: #fff; }

/* ==========================================
   LICENSE / TRIAL KEY ROWS
   ========================================== */

.wao-license-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 10px 14px;
    background: #faf9fd; border: 1px solid #eee8f5;
    border-radius: 10px; margin-bottom: 8px; flex-wrap: wrap;
    transition: border-color 0.2s ease;
}
.wao-license-row:hover { border-color: #d4c4ee; }
.wao-license-row:last-of-type { margin-bottom: 0; }
.wao-license-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }

.wao-license-code {
    background: #f5f4f7; color: #1a1a2e; padding: 6px 12px;
    border-radius: 6px; border: 1px solid #e5e3ea;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
    word-break: break-all;
}

.wao-copy-btn--sm {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0;
    background: #53379e; color: #fff; border: none;
    border-radius: 6px; cursor: pointer; transition: all 0.2s ease;
    flex-shrink: 0; position: relative; z-index: 1;
}
.wao-copy-btn--sm:hover { background: #3d2878; transform: scale(1.05); }
.wao-copy-btn--sm.copied { background: #22c55e; z-index: 9999; }
.wao-copy-btn--sm.copied::after {
    content: 'Copied!';
    position: absolute; bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%); z-index: 10000;
    background: #1a1a2e; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
    white-space: nowrap; pointer-events: none;
    animation: waoFadeIn 0.2s ease;
}
.wao-copy-btn--sm.copied::before {
    content: '';
    position: absolute; bottom: calc(100% + 2px); left: 50%;
    transform: translateX(-50%); z-index: 10000;
    border: 4px solid transparent;
    border-top-color: #1a1a2e;
}

/* Generic copy btn (coupons page) */
.wao-copy-btn {
    position: relative; z-index: 1;
}
.wao-copy-btn.copied { z-index: 9999; }
.wao-copy-btn.copied::after {
    content: 'Copied!';
    position: absolute; bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%); z-index: 10000;
    background: #1a1a2e; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
    white-space: nowrap; pointer-events: none;
    animation: waoFadeIn 0.2s ease;
}
.wao-copy-btn.copied::before {
    content: '';
    position: absolute; bottom: calc(100% + 2px); left: 50%;
    transform: translateX(-50%); z-index: 10000;
    border: 4px solid transparent;
    border-top-color: #1a1a2e;
}

@keyframes waoFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.wao-license-expiry { font-size: 11px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wao-expiry--ok { color: #059669; }
.wao-expiry--warning { color: #d97706; }
.wao-expiry--urgent { color: #dc2626; font-weight: 600; }
.wao-expiry--expired { color: #dc2626; font-weight: 700; }
.wao-expiry-days { color: #6b7280; font-weight: 500; }

/* ==========================================
   PLATFORM BUTTONS
   ========================================== */

.wao-platform-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.wao-platform-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1a1a1a;
    color: #fff; padding: 10px 18px;
    border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.wao-platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #fff;
    background: #333;
}
.wao-platform-btn:active { transform: translateY(0); }
.wao-platform-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Legacy/V1 button — slightly muted */
.wao-platform-btn--legacy {
    background: #4a4a5a;
}
.wao-platform-btn--legacy:hover {
    background: #5a5a6a;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06); overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 10px;
    color: #4a4a5a; text-decoration: none; font-size: 14px; font-weight: 500;
    transition: all 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: #f5f0ff; color: #53379e; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #53379e 0%, #7b4fb8 100%);
    color: #fff; font-weight: 600;
}

/* Nav badge (coupon count) — hidden, only text shows */
.wao-nav-badge {
    display: none;
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {
    .woocommerce-account .woocommerce,
    .woocommerce-account .ct-woo-account {
        display: flex !important; flex-direction: column !important;
    }
    
    .wao-user-profile-card { order: 1; margin-bottom: 0; border-radius: 16px 16px 0 0; border-bottom: 1px solid #f0eef5; }
    
    .wao-mobile-nav-toggle {
        display: flex !important; align-items: center; justify-content: center;
        width: 36px; height: 36px; padding: 0; border: none;
        background: linear-gradient(135deg, #53379e 0%, #7b4fb8 100%);
        border-radius: 10px; color: #fff; cursor: pointer; transition: all 0.2s ease;
    }
    .wao-mobile-nav-toggle:hover { opacity: 0.85; }
    .wao-mobile-nav-toggle svg { transition: transform 0.3s ease; }
    .wao-mobile-nav-toggle.open svg { transform: rotate(180deg); }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        order: 2; border-radius: 0 0 16px 16px; margin-bottom: 20px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul { display: none; padding: 4px 8px 8px; }
    .woocommerce-account .woocommerce-MyAccount-navigation.open ul { display: block; }
    
    .woocommerce-account .woocommerce-MyAccount-content-wrapper { order: 3; }
    
    /* Hero */
    .wao-hero-section { min-height: 200px; border-radius: 16px; }
    .wao-hero-overlay { padding: 24px 20px; min-height: 200px; }
    .wao-welcome-title { font-size: 22px; }
    .wao-welcome-description { font-size: 13px; }
    .wao-hero-actions { flex-direction: column; }
    .wao-hero-btn { width: 100%; justify-content: center; }
    
    /* App card */
    .wao-app-card { border-radius: 16px; }
    .wao-app-header { padding: 16px 20px 12px; }
    .wao-app-thumbnail { display: none !important; }
    .wao-accordion-toggle { padding: 12px 20px; }
    .wao-accordion.is-open > .wao-accordion-body { padding: 0 20px 14px; }
    
    /* Sub rows stack */
    .wao-sub-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .wao-sub-actions { justify-content: flex-start; flex-wrap: wrap; }
    
    /* License rows */
    .wao-license-row { flex-direction: column; align-items: stretch; }
    .wao-license-info { flex-wrap: wrap; }
    .wao-license-code { width: 100%; }
    
    /* Empty state */
    .wao-empty-state { flex-direction: column; text-align: center; }
    .wao-cta-btn { width: 100%; justify-content: center; }
    
    /* Platform */
    .wao-platform-buttons { flex-direction: column; }
    .wao-platform-btn { width: 100%; justify-content: center; }
}

/* ==========================================
   MY COUPONS PAGE
   ========================================== */

/* Empty state */
.wao-coupons-empty {
    text-align: center; padding: 48px 20px;
    background: var(--wao-bg-subtle, #faf9fc);
    border: 1px dashed rgba(83,55,158,0.2);
    border-radius: 16px;
}
.wao-coupons-empty-icon { color: #b8a9d4; margin-bottom: 12px; }
.wao-coupons-empty p { margin: 0; font-size: 14px; color: #8b8b9e; }

/* Summary bar */
.wao-coupons-summary {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px; padding: 14px 20px;
    background: linear-gradient(135deg, #53379e 0%, #7b4fb8 100%);
    border-radius: 12px; color: #fff;
}
.wao-coupons-summary-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; padding: 0 8px;
    background: rgba(255,255,255,0.2); border-radius: 8px;
    font-size: 15px; font-weight: 800;
}
.wao-coupons-summary-label { font-size: 14px; font-weight: 600; }

/* Grid */
.wao-coupons-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* Card */
.wao-coupon-card {
    background: #fff; border-radius: 16px; padding: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    position: relative; overflow: hidden;
}
.wao-coupon-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-1px); }
.wao-coupon-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #53379e, #7b4fb8);
}
.wao-coupon--expired { opacity: 0.6; }
.wao-coupon--expired::before { background: #d1d5db; }
.wao-coupon--used::before { background: #9ca3af; }
.wao-coupon--expired:hover, .wao-coupon--used:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }

/* Discount */
.wao-coupon-discount { margin-bottom: 14px; }
.wao-coupon-discount-value { font-size: 28px; font-weight: 800; color: #53379e; line-height: 1; }
.wao-coupon-discount-label { font-size: 14px; font-weight: 600; color: #7b4fb8; margin-left: 4px; }
.wao-coupon-free-ship {
    display: inline-block; margin-left: 8px;
    font-size: 11px; font-weight: 700; color: #059669;
    background: #ecfdf5; padding: 3px 8px; border-radius: 6px;
}

/* Code */
.wao-coupon-code-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px; padding: 10px 14px;
    background: #f8f7fa; border-radius: 10px;
    border: 1px dashed rgba(83,55,158,0.2);
}
.wao-coupon-code {
    flex: 1; font-size: 15px; font-weight: 700; color: #1a1a2e;
    letter-spacing: 0.05em; font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: none; padding: 0;
}
.wao-coupon-code-row .wao-copy-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: none; background: #fff;
    border-radius: 8px; cursor: pointer; color: #53379e;
    transition: all 0.2s ease; flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
}
.wao-coupon-code-row .wao-copy-btn:hover { background: #53379e; color: #fff; }
.wao-coupon-code-row .wao-copy-btn.copied { background: #22c55e; color: #fff; }

/* Details */
.wao-coupon-details { margin-bottom: 14px; }
.wao-coupon-desc { font-size: 13px; color: #6b6b7b; margin-bottom: 8px; line-height: 1.5; }
.wao-coupon-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.wao-coupon-meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: #8b8b9e; font-weight: 500;
}
.wao-coupon-meta-item svg { flex-shrink: 0; }

/* Footer */
.wao-coupon-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06);
}
.wao-coupon-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600;
}
.wao-coupon-status--active { color: #059669; }
.wao-coupon-status--used { color: #9ca3af; }
.wao-coupon-status--expired { color: #dc2626; }
.wao-coupon-expiry { font-size: 12px; color: #8b8b9e; }
.wao-coupon-expiry--urgent { color: #dc2626; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .wao-coupons-grid { grid-template-columns: 1fr; }
}
