/* ===== Promo code page — premium navy / orange ===== */
:root {
    --pm-navy: #1e3a5f;
    --pm-navy-deep: #152a45;
    --pm-orange: #ff8c00;
    --pm-gold: #ffb347;
    --pm-text: #0f2744;
    --pm-muted: #64748b;
    --pm-card: #ffffff;
    --pm-border: rgba(30, 58, 95, 0.1);
    --pm-shadow: 0 14px 36px rgba(30, 58, 95, 0.1);
    --pm-grad-navy: linear-gradient(145deg, #2a4a73 0%, var(--pm-navy) 52%, var(--pm-navy-deep) 100%);
    --pm-grad-orange: linear-gradient(90deg, #ff8c00 0%, #ffb347 100%);
}

body:has(.pm-page) {
    background: #eef6fc !important;
    background-image: linear-gradient(180deg, #f4f9fd 0%, #eef6fc 100%) !important;
}

.pm-page {
    padding-bottom: 28px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pm-head { margin-bottom: 16px; }
.pm-kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pm-orange);
    margin-bottom: 4px;
}
.pm-head h1 {
    margin: 0;
    font-size: clamp(22px, 5.5vw, 26px);
    font-weight: 900;
    color: var(--pm-text);
    letter-spacing: -.03em;
}
.pm-head p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--pm-muted);
}

.pm-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 14px;
    color: #fff;
    box-shadow: 0 16px 40px rgba(30, 58, 95, 0.22);
    display: flex;
    align-items: center;
    gap: 14px;
}
.pm-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--pm-grad-navy);
}
.pm-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255, 179, 71, 0.22), transparent 44%);
}
.pm-hero > *:not(.pm-hero__bg) { position: relative; z-index: 1; }
.pm-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 179, 71, 0.2);
    border: 1px solid rgba(255, 179, 71, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--pm-gold);
    flex-shrink: 0;
}
.pm-hero-name { font-size: 17px; font-weight: 900; }
.pm-hero-meta { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 4px; font-weight: 600; }

.pm-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(255, 140, 0, 0.25);
}
.pm-active small {
    display: block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c2410c;
}
.pm-active strong { font-size: 15px; font-weight: 900; color: #9a3412; }
.pm-clear {
    border: none;
    background: #fff;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.pm-card {
    background: var(--pm-card);
    border: 1px solid var(--pm-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--pm-shadow);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.pm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--pm-grad-orange);
}
.pm-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--pm-navy);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 8px;
}
.pm-input-row {
    display: flex;
    gap: 8px;
}
.pm-input {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 1.5px solid var(--pm-border);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
    font-family: inherit;
    background: #f8fafc;
}
.pm-input:focus {
    outline: none;
    border-color: rgba(255, 140, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.12);
    background: #fff;
}
.pm-submit {
    flex-shrink: 0;
    border: none;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--pm-grad-orange);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pm-types {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}
.pm-type {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--pm-border);
}
.pm-type i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--pm-grad-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.pm-type strong {
    display: block;
    font-size: 12px;
    color: var(--pm-text);
}
.pm-type span {
    display: block;
    font-size: 11px;
    color: var(--pm-muted);
    margin-top: 2px;
}

.pm-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.pm-links a {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--pm-border);
    color: var(--pm-navy);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pm-history {
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--pm-shadow);
}
.pm-history h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--pm-text);
}
.pm-hist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--pm-border);
}
.pm-hist-row:last-child { border-bottom: none; }
.pm-hist-row strong { display: block; font-size: 13px; color: var(--pm-text); }
.pm-hist-row span { font-size: 11px; color: var(--pm-muted); }
.pm-hist-amt { font-size: 13px; font-weight: 900; }
.pm-hist-amt.is-bonus { color: #15803d; }
.pm-hist-amt.is-disc { color: #c2410c; }

/* Checkout promo strip */
.gw-promo {
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.06);
}
.gw-promo h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--pm-text);
}
.gw-promo-form {
    display: flex;
    gap: 8px;
}
.gw-promo-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--pm-border);
    font-weight: 700;
    text-transform: uppercase;
}
.gw-promo-form button {
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--pm-grad-orange);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}
.gw-promo-note {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--pm-muted);
    font-weight: 600;
}

@media (max-width: 480px) {
    .pm-input-row { flex-direction: column; }
    .pm-submit { width: 100%; justify-content: center; padding: 13px; }
}
