/* =========================
   SEA BLUE + WHITE NOTIFICATION MODAL
========================= */
:root {
    --sea-blue: #0ea5e9;
    --sea-blue-dark: #0284c7;
    --sea-blue-deep: #0369a1;
    --sea-blue-soft: #e0f2fe;
    --sea-blue-faint: rgba(14, 165, 233, 0.08);
    --sea-blue-border: rgba(14, 165, 233, 0.16);

    --white: #ffffff;
    --text-main: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;

    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 30px 70px rgba(2, 132, 199, 0.18);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 22px;
    --radius-xl: 26px;
}

/* =========================
   MODAL SHELL
========================= */
.premium-modal-content {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

/* =========================
   HEADER
========================= */
.premium-header {
    background: linear-gradient(135deg, var(--sea-blue) 0%, var(--sea-blue-dark) 100%);
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.header-icon-wrap i {
    font-size: 18px;
    color: var(--white);
}

.header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.header-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
}

.close-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: var(--white);
    color: var(--sea-blue-dark);
    transform: scale(1.03);
}

/* =========================
   BODY
========================= */
.premium-body {
    padding: 26px 24px 24px;
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

/* =========================
   SECTION LABEL
========================= */
.section-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

/* =========================
   COUPON LIST
========================= */
.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

/* =========================
   CARD
========================= */
.premium-card {
    background: var(--white);
    padding: 18px 18px;
    border-radius: 18px;
    transition: 0.25s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(14, 165, 233, 0.10);
}

.premium-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(2, 132, 199, 0.12);
    border-color: rgba(14, 165, 233, 0.18);
}

/* =========================
   COUPON CARD
========================= */
.coupon-premium {
    width: 100%;
    max-width: 840px; /* reduced width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--sea-blue);
    background: linear-gradient(180deg, #ffffff 0%, #f9fdff 100%);
}

.coupon-left {
    min-width: 0;
    flex: 1;
}

.coupon-code {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: linear-gradient(135deg, var(--sea-blue-dark), var(--sea-blue));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.18);
}

.coupon-expiry {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-soft); /* fixed */
    line-height: 1.5;
    font-weight: 600;
}

.coupon-expiry span {
    color: var(--text-soft); /* fixed */
}

.coupon-expiry i {
    color: var(--sea-blue-dark);
    font-size: 13px;
    flex-shrink: 0;
}

/* =========================
   COPY BUTTON
========================= */
.copy-btn {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.14);
    background: linear-gradient(135deg, var(--sea-blue), var(--sea-blue-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.18);
    flex-shrink: 0;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(2, 132, 199, 0.22);
    background: linear-gradient(135deg, var(--sea-blue-dark), var(--sea-blue-deep));
}

/* =========================
   EMPTY STATE
========================= */
.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-soft);
}

.empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff8ff, #dff3ff);
    color: var(--sea-blue-dark);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.empty-state i {
    font-size: 34px;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================
   BADGE
========================= */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.22);
    animation: pulse 1.5s infinite;
}

/* =========================
   COPY TOAST
========================= */
.copy-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 13px 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    opacity: 0;
    transform: translateY(15px);
    transition: 0.3s ease;
    z-index: 99999;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
    font-size: 13px;
    font-weight: 700;
}

.copy-toast i {
    color: #38bdf8;
    font-size: 15px;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* =========================
   CUSTOM MODAL SYSTEM
========================= */
.custom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9998;
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 95%;
    max-width: 720px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    transition: 0.3s ease;
    z-index: 9999;
}

.custom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .premium-header {
        padding: 18px 18px;
    }

    .premium-body {
        padding: 20px 18px;
    }

    .header-title {
        font-size: 17px;
    }

    .coupon-premium {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    .copy-btn {
        width: 100%;
    }

    .custom-modal {
        width: calc(100% - 18px);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .premium-header {
        padding: 16px;
    }

    .premium-body {
        padding: 18px 16px;
    }

    .header-icon-wrap {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .header-icon-wrap i {
        font-size: 16px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-kicker {
        font-size: 10px;
    }

    .coupon-code {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 14px;
    }

    .coupon-expiry {
        font-size: 12px;
    }

    .copy-toast {
        right: 14px;
        left: 14px;
        bottom: 18px;
        justify-content: center;
    }
}

.coupon-expiry,
.coupon-expiry span {
    color: #475569 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.coupon-expiry i {
    color: #0284c7 !important;
}