/* ==========================================================================
   jobseeker-pricing.css — jobseeker-price-plan.php
   Palette-ready: every colour comes from css-new/palettes/theme-*.css, so the
   page follows the active palette and dark mode (html.dark).
   Was an inline <style> in the PHP. All rules sit under .jrp-scope so they
   can't clash with the buy-JobRings popup (Universal/buy-modal.php), which
   uses some of the same class names.
   ========================================================================== */

.jrp-scope {
    /* page-level names kept from the old CSS, now pointing at the palette */
    --jrp-primary:      var(--theme-accent);
    --jrp-primary-dark: var(--theme-accent);
    --jrp-ink:          var(--theme-text-strong);
    --jrp-ink-soft:     var(--theme-text-muted);
    --jrp-paper:        var(--theme-bg-surface);
    --jrp-surface:      color-mix(in srgb, var(--theme-accent) 4%, var(--theme-page));
    --jrp-surface-alt:  var(--theme-bg-subtle);
    --jrp-border:       var(--theme-border);
    /* warm "premium" and "% off" tints, mixed with the card colour so they work in dark mode */
    --jrp-gold:         #d4a02d;
    --jrp-gold-ink:     #a4791a;
    --jrp-peach:        #f97316;
    --jrp-peach-ink:    #a8481f;
    --jrp-shadow:       rgb(15 34 51 / .15);

    font-family: 'Inter', system-ui, sans-serif;
    color: var(--jrp-ink);
    background: var(--jrp-surface);
    padding: 26px 20px 60px;
}
html.dark .jrp-scope {
    --jrp-gold-ink:  #fcd34d;
    --jrp-peach-ink: #fdba74;
    --jrp-shadow:    rgb(0 0 0 / .45);
}
.jrp-scope * { box-sizing: border-box; }
.jrp-scope h1, .jrp-scope h2, .jrp-scope h3 {
    font-family: 'Sora', system-ui, sans-serif;
    margin: 0; letter-spacing: -0.01em;
}
.jrp-scope .jrp-wrap { max-width: 1180px; margin: 0 auto; }

/* ---------- Hero ---------- */
.jrp-scope .jrp-hero {
    --jrp-hero: var(--theme-band-bg);
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(120deg,
        color-mix(in srgb, var(--jrp-hero) 85%, #1d4ed8) 0%,
        var(--jrp-hero) 55%,
        color-mix(in srgb, var(--jrp-hero) 60%, #000) 100%);
    color: var(--theme-band-text);
    border-radius: 18px; padding: 20px 26px;
    position: relative; overflow: hidden; margin-bottom: 22px;
}
.jrp-scope .jrp-hero::before {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgb(255 255 255 / .18), transparent 70%);
}
.jrp-scope .jrp-hero::after {
    content: ""; position: absolute; left: 38%; bottom: -90px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgb(255 143 102 / .22), transparent 70%);
}
.jrp-scope .jrp-hero-ring {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; position: relative; z-index: 1;
    background: conic-gradient(var(--theme-band-text) 0turn, var(--theme-band-text) .78turn, rgb(255 255 255 / .18) 0);
    display: flex; align-items: center; justify-content: center;
}
.jrp-scope .jrp-hero-ring::after {
    content: ""; width: 39px; height: 39px; border-radius: 50%; position: absolute;
    background: color-mix(in srgb, var(--jrp-hero) 88%, #000);
}
.jrp-scope .jrp-hero-ring svg { width: 18px; height: 18px; stroke: var(--theme-band-text); position: relative; z-index: 2; }
.jrp-scope .jrp-hero-body { position: relative; z-index: 1; }
.jrp-scope .jrp-hero-body h2 { font-size: 19px; font-weight: 700; color: var(--theme-band-text); }
.jrp-scope .jrp-hero-body p { margin: 4px 0 0; font-size: 13px; color: var(--theme-band-text); opacity: .78; max-width: 640px; }

.jrp-scope .jrp-section-head { margin-bottom: 14px; }
.jrp-scope .jrp-section-head h2 { font-size: 16px; font-weight: 700; color: var(--theme-heading); }
.jrp-scope .jrp-section-head span { font-size: 12.5px; color: var(--jrp-ink-soft); }

/* ---------- Grid ---------- */
.jrp-scope .jrp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1020px) { .jrp-scope .jrp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .jrp-scope .jrp-grid { grid-template-columns: 1fr; } }

/* ---------- Shared pack link (/jobseeker/pricing-plan/<pack>) ----------
   The linked card sits alone on the first row, then "Other packs". */
.jrp-scope .jrp-is-focus {
    grid-column: 1 / -1; justify-self: start; width: 100%; max-width: 360px;
    outline: 2px solid var(--jrp-primary); outline-offset: 4px;
    scroll-margin-top: 120px;
}
/* on a single-pack link the big hero banner is hidden, so the pack and its Buy Now button are on the first screen */
.jrp-scope:has(.jrp-is-focus) .jrp-hero { display: none; }

.jrp-scope .jrp-others-head {
    grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--jrp-border);
}
.jrp-scope .jrp-others-head h2 { font-family: 'Sora'; font-size: 16px; font-weight: 700; color: var(--jrp-ink); margin: 0; }
.jrp-scope .jrp-others-head a { font-size: 12px; font-weight: 600; color: var(--jrp-primary); text-decoration: none; }
.jrp-scope .jrp-others-head a:hover { text-decoration: underline; }

/* ---------- Tag pill + "% off" badge, sitting on the card's top edge ---------- */
.jrp-scope .jrp-tag-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    position: absolute; top: -10px; left: 0; width: 100%;
}
.jrp-scope .jrp-kicker {
    display: inline-block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: 2px 8px; border-radius: 100px; border: 1px solid;
    background: var(--jrp-surface-alt); color: var(--jrp-primary-dark);
}
.jrp-scope .jrp-save-badge {
    font-family: 'Sora'; font-size: 10px; font-weight: 800; flex-shrink: 0;
    color: var(--jrp-peach-ink);
    background: color-mix(in srgb, var(--jrp-peach) 12%, var(--jrp-paper));
    border: 1px solid color-mix(in srgb, var(--jrp-peach) 35%, var(--jrp-paper));
    padding: 2px 8px; border-radius: 100px;
}
.jrp-scope .jrp-save-badge[hidden] { display: none; }

/* ---------- Buttons ---------- */
.jrp-scope .jrp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: 'Inter'; font-weight: 700; font-size: 12px;
    padding: 8px 10px; border-radius: 100px; border: none; cursor: pointer;
    text-decoration: none; white-space: nowrap; flex: 1;
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.jrp-scope .jrp-btn:hover { transform: translateY(-1px); }
.jrp-scope .jrp-btn-primary { color: var(--jrp-primary); border: 1.2px solid; background: var(--jrp-paper); }
.jrp-scope .jrp-btn-primary:hover { background: var(--jrp-btn-bg, var(--theme-button-bg)); border-color: var(--jrp-btn-bg, var(--theme-button-bg)); color: var(--jrp-btn-ink, var(--theme-button-text)); }
.jrp-scope .jrp-btn:focus-visible { outline: 2px solid var(--theme-focus-ring); outline-offset: 2px; }
.jrp-scope .jrp-btn-full { width: 100%; }

/* ---------- Card ---------- */
.jrp-scope .jrp-card {
    background: var(--jrp-paper); border: 1px solid var(--jrp-border); border-radius: 14px;
    padding: 16px; position: relative;
    box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 8px 20px -12px var(--jrp-shadow);
    display: flex; flex-direction: column; gap: 9px; height: 100%;
    transition: box-shadow .15s ease, transform .15s ease;
}
.jrp-scope .jrp-card:hover { box-shadow: 0 4px 10px rgb(15 34 51 / .06), 0 16px 32px -14px var(--jrp-shadow); transform: translateY(-2px); }
.jrp-scope .jrp-card-top { display: flex; align-items: center; gap: 9px; }
.jrp-scope .jrp-card-icon {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    background: var(--jrp-surface-alt); color: var(--jrp-primary-dark);
    display: flex; align-items: center; justify-content: center;
}
.jrp-scope .jrp-card-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.jrp-scope .jrp-card-top h3 { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--jrp-ink); }
.jrp-scope ul.jrp-desc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.jrp-scope ul.jrp-desc li { font-size: 11.3px; line-height: 1.4; color: var(--jrp-ink-soft); }
.jrp-scope ul.jrp-desc li strong { color: var(--jrp-primary-dark); }
.jrp-scope p.jrp-desc { font-size: 11px; font-weight: 600; color: var(--jrp-primary); margin: 0; }
.jrp-scope .jrp-form { display: flex; flex-direction: column; gap: 9px; flex: 1; justify-content: flex-end; }
.jrp-scope .jrp-card-actions { display: flex; gap: 6px; padding-top: 2px; }

/* ---------- Quantity stepper ---------- */
.jrp-scope .jrp-stepper-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: var(--jrp-surface-alt); border-radius: 10px; padding: 8px 10px;
}
.jrp-scope .jrp-stepper-label { font-size: 10.5px; font-weight: 600; color: var(--jrp-ink-soft); line-height: 1.3; }
.jrp-scope .jrp-stepper-label b { display: block; font-size: 11.5px; color: var(--jrp-ink); }
.jrp-scope .sp-quantity {
    display: flex; align-items: center; flex-shrink: 0; overflow: hidden;
    border: 1px solid var(--jrp-border); border-radius: 100px; background: var(--jrp-paper);
}
.jrp-scope .sp-quantity .btn-number {
    width: 24px; height: 24px; border: none; background: var(--jrp-paper); cursor: pointer; user-select: none;
    font-size: 14px; font-weight: 700; color: var(--jrp-ink);
    display: flex; align-items: center; justify-content: center;
}
.jrp-scope .sp-quantity .btn-number:hover { color: var(--jrp-primary-dark); }
.jrp-scope .sp-quantity .sp-input { width: 34px; }
.jrp-scope .sp-quantity .quntity-input {
    width: 100%; border: none; text-align: center; font-size: 12px; font-weight: 700;
    background: transparent; color: var(--jrp-ink);
}

/* ---------- Price ---------- */
.jrp-scope .jrp-price-line { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; flex-wrap: wrap; justify-content: center; }
.jrp-scope .jrp-price-line .jrp-was { font-size: 11.5px; color: var(--jrp-ink-soft); text-decoration: line-through; }
.jrp-scope .jrp-price-line .jrp-was[hidden] { display: none; }
.jrp-scope .jrp-price-line b { font-family: 'Sora'; font-size: 19px; font-weight: 800; color: var(--jrp-ink); }
.jrp-scope .jrp-price-line .jrp-gst,
.jrp-scope .jrp-price-line .jrp-per { font-size: 10.5px; color: var(--jrp-ink-soft); }
.jrp-scope i.fa-indian-rupee-sign { margin-right: 4px; }

.jrp-scope .jrp-foot-note { margin-top: 22px; font-size: 11.5px; color: var(--jrp-ink-soft); text-align: center; }

/* ---------- Ad slot (same size as a card) ---------- */
.jrp-scope .jrp-ad-card {
    border: 1px dashed var(--jrp-border); border-radius: 14px; background: var(--jrp-surface-alt);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 100%; padding: 16px; color: var(--jrp-ink-soft);
}
.jrp-scope .jrp-ad-card > span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Premium card theme ($cardTheme = 'premium') ---------- */
.jrp-scope .jrp-theme-premium {
    background: linear-gradient(165deg, color-mix(in srgb, var(--jrp-gold) 9%, var(--jrp-paper)) 0%, var(--jrp-paper) 55%);
    border-color: color-mix(in srgb, var(--jrp-gold) 45%, var(--jrp-paper));
    border-top: 3px solid color-mix(in srgb, var(--jrp-gold) 45%, var(--jrp-paper));
    box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 26px -12px color-mix(in srgb, var(--jrp-gold) 40%, transparent);
}
.jrp-scope .jrp-theme-premium:hover { box-shadow: 0 4px 12px rgb(15 34 51 / .06), 0 18px 36px -14px color-mix(in srgb, var(--jrp-gold) 50%, transparent); }
.jrp-scope .jrp-theme-premium .jrp-card-icon,
.jrp-scope .jrp-theme-premium .jrp-kicker {
    background: color-mix(in srgb, var(--jrp-gold) 22%, var(--jrp-paper));
    color: var(--jrp-gold-ink);
}

/* ==========================================================================
   MORE CARD THEMES  ($cardTheme['<key>'] = '<name>' in jobseeker-price-plan.php)
   Each theme just re-points the card's own colour variables, so every part
   of the card (text, tag, icon, item list, duration switch, price, button)
   follows automatically. To add a theme: copy one block, rename it, change
   the colours.
   ========================================================================== */

/* ---- Accent themes: light card with a coloured top edge, tag, icon and button ----
   Set --jrp-accent (the colour) and --jrp-accent-ink (readable text in that colour). */
.jrp-scope :is(.jrp-theme-sale, .jrp-theme-festive, .jrp-theme-new) {
    --jrp-primary: var(--jrp-accent-ink);
    --jrp-primary-dark: var(--jrp-accent-ink);
    --jrp-btn-bg: var(--jrp-accent);
    --jrp-btn-ink: #ffffff;
    background: linear-gradient(165deg, color-mix(in srgb, var(--jrp-accent) 9%, var(--jrp-paper)) 0%, var(--jrp-paper) 55%);
    border-color: color-mix(in srgb, var(--jrp-accent) 40%, var(--jrp-paper));
    border-top: 3px solid var(--jrp-accent);
    box-shadow: 0 1px 2px rgb(15 34 51 / .04), 0 10px 26px -12px color-mix(in srgb, var(--jrp-accent) 40%, transparent);
}
.jrp-scope :is(.jrp-theme-sale, .jrp-theme-festive, .jrp-theme-new) :is(.jrp-card-icon, .jrp-kicker) {
    background: color-mix(in srgb, var(--jrp-accent) 15%, var(--jrp-paper));
    color: var(--jrp-accent-ink);
}

/* Sale / flash offer — red */
.jrp-scope .jrp-theme-sale    { --jrp-accent: #dc2626; --jrp-accent-ink: #b91c1c; }
html.dark .jrp-scope .jrp-theme-sale    { --jrp-accent-ink: #f87171; }
.jrp-scope .jrp-theme-sale .jrp-kicker { background: #dc2626; border-color: #dc2626; color: #fff; }

/* Festive (Diwali, New Year…) — saffron to magenta */
.jrp-scope .jrp-theme-festive { --jrp-accent: #ea580c; --jrp-accent-ink: #c2410c; }
html.dark .jrp-scope .jrp-theme-festive { --jrp-accent-ink: #fdba74; }
.jrp-scope .jrp-theme-festive {
    border-top: 0;
    background:
        linear-gradient(90deg, #f59e0b, #ea580c, #db2777) top / 100% 3px no-repeat,
        linear-gradient(165deg, color-mix(in srgb, #f59e0b 11%, var(--jrp-paper)) 0%, var(--jrp-paper) 55%);
}
.jrp-scope .jrp-theme-festive .jrp-kicker { background: linear-gradient(90deg, #f59e0b, #db2777); border-color: transparent; color: #fff; }

/* New product — green */
.jrp-scope .jrp-theme-new     { --jrp-accent: #16a34a; --jrp-accent-ink: #15803d; }
html.dark .jrp-scope .jrp-theme-new     { --jrp-accent-ink: #4ade80; }

/* ---- Black Friday: black card with yellow accents, the same in light and dark mode ---- */
.jrp-scope .jrp-theme-black-friday {
    --jrp-paper: #111111;
    --jrp-ink: #ffffff;
    --jrp-ink-soft: #c7c7c7;
    --jrp-primary: #facc15;
    --jrp-primary-dark: #facc15;
    --jrp-surface-alt: #262626;
    --jrp-border: #333333;
    --jrp-btn-bg: #facc15;
    --jrp-btn-ink: #111111;
    --jrp-peach: #ef4444;
    --jrp-peach-ink: #fca5a5;
    color: var(--jrp-ink);
    background:
        radial-gradient(120% 80% at 100% 0%, rgb(250 204 21 / .16) 0%, transparent 55%),
        linear-gradient(165deg, #1c1c1c 0%, #0a0a0a 100%);
    border: 1px solid #2b2b2b;
    border-top: 3px solid #facc15;
    box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 14px 30px -12px rgb(0 0 0 / .55);
}
html.dark .jrp-scope .jrp-theme-black-friday { border-color: #3a3a3a; border-top-color: #facc15; }
.jrp-scope .jrp-theme-black-friday .jrp-kicker { background: #facc15; border-color: #facc15; color: #111111; }
.jrp-scope .jrp-theme-black-friday .jrp-card-icon { background: rgb(250 204 21 / .14); color: #facc15; }
/* the outline "Buy Now" becomes a solid yellow button */
.jrp-scope .jrp-theme-black-friday .jrp-btn-primary { background: #facc15; border-color: #facc15; color: #111111; }
.jrp-scope .jrp-theme-black-friday .jrp-btn-primary:hover { background: #fde047; border-color: #fde047; color: #111111; }
.jrp-scope .jrp-theme-black-friday .jrp-variant-opt.active { color: #111111; }

/* ---- Cyber Monday: deep indigo card with neon cyan, the same in light and dark mode ---- */
.jrp-scope .jrp-theme-cyber {
    --jrp-paper: #12123a;
    --jrp-ink: #ffffff;
    --jrp-ink-soft: #c4c8f0;
    --jrp-primary: #22d3ee;
    --jrp-primary-dark: #22d3ee;
    --jrp-surface-alt: #1e1f55;
    --jrp-border: #2e3170;
    --jrp-btn-bg: #22d3ee;
    --jrp-btn-ink: #0b0b2b;
    --jrp-peach: #f472b6;
    --jrp-peach-ink: #f9a8d4;
    color: var(--jrp-ink);
    background:
        radial-gradient(120% 80% at 100% 0%, rgb(168 85 247 / .28) 0%, transparent 55%),
        linear-gradient(165deg, #1b1b4d 0%, #0b0b2b 100%);
    border: 1px solid #2e3170;
    border-top: 3px solid #22d3ee;
    box-shadow: 0 14px 30px -12px rgb(34 211 238 / .35);
}
.jrp-scope .jrp-theme-cyber .jrp-kicker { background: #22d3ee; border-color: #22d3ee; color: #0b0b2b; }
.jrp-scope .jrp-theme-cyber .jrp-card-icon { background: rgb(34 211 238 / .14); color: #22d3ee; }
.jrp-scope .jrp-theme-cyber .jrp-btn-primary { background: #22d3ee; border-color: #22d3ee; color: #0b0b2b; }
.jrp-scope .jrp-theme-cyber .jrp-btn-primary:hover { background: #67e8f9; border-color: #67e8f9; color: #0b0b2b; }
.jrp-scope .jrp-theme-cyber .jrp-variant-opt.active { color: #0b0b2b; }

/* ---------- Duration switcher (7 / 14 / 28 days) ---------- */
.jrp-scope .jrp-variant-switch {
    position: relative; display: flex; padding: 3px;
    background: var(--jrp-surface-alt); border: 1px solid var(--jrp-primary); border-radius: 100px;
}
.jrp-scope .jrp-variant-opt {
    position: relative; z-index: 1; flex: 1;
    border: none; background: transparent; padding: 4px; border-radius: 100px; cursor: pointer;
    font-size: 10.5px; font-weight: 500; color: var(--jrp-ink-soft);
    transition: color .15s ease;
}
.jrp-scope .jrp-variant-opt.active { color: var(--jrp-paper); font-weight: 600; }
.jrp-scope .jrp-variant-thumb {
    position: absolute; top: 3px; left: 3px; bottom: 3px; z-index: 0;
    background: var(--jrp-primary); border-radius: 100px;
    box-shadow: 0 1px 3px rgb(15 34 51 / .15);
    transition: transform .2s ease;
}

/* ---------- What's included (name · value rows) ---------- */
.jrp-scope .jrp-item-list { display: flex; flex-direction: column; gap: 5px; }
.jrp-scope .jrp-item-list[hidden] { display: none; }
.jrp-scope .jrp-item-row { display: flex; align-items: baseline; font-size: 11.3px; }
.jrp-scope .jrp-item-name { flex: 0 0 70%; color: var(--jrp-ink-soft); display: flex; align-items: center; gap: 5px; }
.jrp-scope .jrp-item-value { flex: 1; text-align: right; color: var(--jrp-primary-dark); font-weight: 500; }

/* ---------- "i" badge + tooltip (CSS only) ---------- */
.jrp-scope .jrp-info {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    background: var(--jrp-border); color: var(--jrp-ink-soft);
    font-size: 9px; font-weight: 700; font-style: normal; cursor: help;
    transition: background .15s ease, color .15s ease;
}
.jrp-scope .jrp-info:hover,
.jrp-scope .jrp-info:focus { background: var(--jrp-primary); color: var(--jrp-paper); outline: none; }
.jrp-scope .jrp-info::after {
    content: attr(data-tooltip); position: absolute; bottom: 130%; left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 180px; padding: 8px 10px; border-radius: 8px;
    background: var(--jrp-ink); color: var(--jrp-paper);
    font-size: 10.5px; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal;
    opacity: 0; pointer-events: none; z-index: 30;
    box-shadow: 0 8px 20px rgb(15 34 51 / .28);
    transition: opacity .15s ease, transform .15s ease;
}
.jrp-scope .jrp-info::before {
    content: ""; position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent; border-top-color: var(--jrp-ink);
    opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.jrp-scope .jrp-info:hover::after,  .jrp-scope .jrp-info:focus::after,
.jrp-scope .jrp-info:hover::before, .jrp-scope .jrp-info:focus::before {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
