/* ================================================================
   AMXX-BG.INFO — Ads System
   ================================================================ */

:root {
    --a-bg:       #0d1117;
    --a-card:     #111520;
    --a-card2:    #161b28;
    --a-border:   #1e2438;
    --a-border2:  #2a3350;
    --a-text:     #c9d1d9;
    --a-dim:      #8a9ebc;
    --a-dim2:     #3a4e72;
    --a-white:    #e8f0fc;
    --a-accent:   #4f8ef7;
    --a-purple:   #7c5cfc;
    --a-green:    #3fb950;
    --a-red:      #f85149;
    --a-gold:     #d4a017;
    --a-r:        8px;
    --a-rl:       14px;
}
[data-theme="light"] {
    --a-bg:       #f0f4fb;
    --a-card:     #ffffff;
    --a-card2:    #f8faff;
    --a-border:   #d8e0f0;
    --a-border2:  #bbc8e0;
    --a-text:     #2d3650;
    --a-dim:      #6b7a99;
    --a-dim2:     #a0aec0;
    --a-white:    #1a2035;
}

/* ── Shared card ── */
.a-card {
    background: var(--a-card);
    border: 1px solid var(--a-border);
    border-radius: var(--a-rl);
    overflow: hidden;
}
.a-card-head {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--a-card2);
    border-bottom: 1px solid var(--a-border);
    font-size: 14px; font-weight: 700; color: var(--a-white);
    gap: 12px;
}
.a-card-title { display: flex; align-items: center; gap: 10px; }
.a-card-body  { padding: 20px; }

/* ── Page hero ── */
.a-hero {
    background: linear-gradient(135deg, #0a0d14 0%, #111825 100%);
    border-bottom: 1px solid var(--a-border);
    padding: 56px 0 52px;
    text-align: center;
    position: relative; overflow: hidden;
}
.a-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% -20%, rgba(79,142,247,.12) 0%, transparent 65%);
    pointer-events: none;
}
.a-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--a-accent);
    background: rgba(79,142,247,.1); border: 1px solid rgba(79,142,247,.2);
    padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.a-hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(32px, 5vw, 58px); font-weight: 800;
    color: var(--a-white); line-height: 1.1; margin-bottom: 14px;
}
.a-hero-title span { color: var(--a-accent); }
.a-hero-sub {
    font-size: 15px; color: var(--a-dim);
    max-width: 520px; margin: 0 auto 28px;
    line-height: 1.65;
}
.a-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.a-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--a-r);
    font-size: 13px; font-weight: 700;
    border: none; cursor: pointer; text-decoration: none;
    transition: all .15s; font-family: inherit; white-space: nowrap;
}
.a-btn-primary {
    background: var(--a-accent); color: #fff;
    box-shadow: 0 4px 16px rgba(79,142,247,.3);
}
.a-btn-primary:hover { opacity: .88; color: #fff; transform: translateY(-1px); }
.a-btn-ghost {
    background: transparent; color: var(--a-text);
    border: 1px solid var(--a-border2);
}
.a-btn-ghost:hover { background: var(--a-card2); color: var(--a-white); }
.a-btn-gold { background: var(--a-gold); color: #000; }
.a-btn-gold:hover { opacity: .9; color: #000; }
.a-btn-sm { padding: 7px 14px; font-size: 12px; }
.a-btn-danger { background: rgba(248,81,73,.1); color: var(--a-red); border: 1px solid rgba(248,81,73,.25); }
.a-btn-danger:hover { background: var(--a-red); color: #fff; }

/* ── Badges ── */
.a-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
}
.a-badge-green  { background: rgba(63,185,80,.12);  color: var(--a-green); border: 1px solid rgba(63,185,80,.25); }
.a-badge-red    { background: rgba(248,81,73,.12);  color: var(--a-red);   border: 1px solid rgba(248,81,73,.25); }
.a-badge-gold   { background: rgba(212,160,23,.12); color: var(--a-gold);  border: 1px solid rgba(212,160,23,.25); }
.a-badge-dim    { background: rgba(255,255,255,.06);color: var(--a-dim);   border: 1px solid var(--a-border2); }
.a-badge-accent { background: rgba(79,142,247,.12); color: var(--a-accent);border: 1px solid rgba(79,142,247,.25); }

/* ── Stat boxes ── */
.a-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.a-stat {
    background: var(--a-card); border: 1px solid var(--a-border);
    border-radius: var(--a-r); padding: 18px 16px;
    display: flex; flex-direction: column; gap: 6px;
}
.a-stat-ico {
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; margin-bottom: 4px;
}
.a-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px; font-weight: 800; color: var(--a-white);
    line-height: 1;
}
.a-stat-lbl { font-size: 12px; color: var(--a-dim); }

/* ================================================================
   PRICING CARDS
   ================================================================ */

.a-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px; align-items: start;
}

.a-price-card {
    background: var(--a-card);
    border: 1.5px solid var(--a-border);
    border-radius: var(--a-rl);
    position: relative; overflow: visible;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.a-price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
    border-color: var(--a-border2);
}
.a-price-card.featured {
    border-color: var(--a-gold);
    box-shadow: 0 0 0 1px var(--a-gold), 0 8px 32px rgba(212,160,23,.15);
}
.a-price-card.featured:hover {
    box-shadow: 0 0 0 1px var(--a-gold), 0 20px 56px rgba(212,160,23,.2);
}

.a-price-ribbon {
    position: absolute; top: -13px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px; border-radius: 20px;
    font-size: 10px; font-weight: 800; letter-spacing: .1em;
    white-space: nowrap; z-index: 2;
}
.a-price-ribbon.gold  { background: var(--a-gold); color: #000; }
.a-price-ribbon.green { background: var(--a-green); color: #fff; }

.a-price-inner { padding: 28px 22px; }

.a-preview-zone {
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; margin-bottom: 20px;
    background: var(--a-bg); border: 1px solid var(--a-border);
    border-radius: var(--a-r); padding: 16px;
}
.a-preview-rect {
    background: linear-gradient(135deg,
    rgba(79,142,247,.1), rgba(124,92,252,.1));
    border: 1.5px dashed rgba(79,142,247,.3);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--a-dim); font-family: monospace;
    letter-spacing: .04em;
}

.a-price-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px; font-weight: 800; color: var(--a-white);
}
.a-price-dims {
    font-size: 13px; color: var(--a-accent);
    font-weight: 600; margin-bottom: 12px;
}
.a-price-desc {
    font-size: 13px; color: var(--a-dim);
    line-height: 1.65; margin-bottom: 16px;
    min-height: 60px;
}

.a-price-list {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; flex-direction: column; gap: 8px;
}
.a-price-list li {
    font-size: 12px; color: var(--a-dim);
    display: flex; align-items: flex-start; gap: 8px;
}
.a-price-list li i { color: var(--a-green); margin-top: 2px; flex-shrink: 0; }

.a-price-divider {
    height: 1px; background: var(--a-border);
    margin: 0 -22px 22px;
}

.a-price-amount { text-align: center; margin-bottom: 20px; }
.a-price-free-lbl {
    font-family: 'Rajdhani', sans-serif;
    font-size: 40px; font-weight: 800; color: var(--a-green);
    display: block;
}
.a-price-num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 52px; font-weight: 800; color: var(--a-gold);
}
.a-price-unit { font-size: 15px; color: var(--a-dim); }
.a-price-period { font-size: 12px; color: var(--a-dim); margin-top: 3px; }

.a-price-cta {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 13px 20px;
    border-radius: var(--a-r);
    font-size: 13px; font-weight: 700;
    border: 1.5px solid var(--a-border2);
    background: var(--a-card2); color: var(--a-text);
    text-decoration: none; cursor: pointer;
    transition: all .15s; font-family: inherit;
}
.a-price-cta:hover {
    border-color: var(--a-accent); background: rgba(79,142,247,.08);
    color: var(--a-white);
}
.a-price-cta.gold {
    background: var(--a-gold); border-color: var(--a-gold);
    color: #000; box-shadow: 0 4px 16px rgba(212,160,23,.3);
}
.a-price-cta.gold:hover { opacity: .9; color: #000; }

/* ================================================================
   CREATE FORM
   ================================================================ */

.a-form-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px; align-items: start;
}

.a-label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--a-dim); text-transform: uppercase;
    letter-spacing: .07em; margin-bottom: 7px;
}

.a-input {
    width: 100%;
    background: var(--a-bg); border: 1.5px solid var(--a-border2);
    border-radius: var(--a-r); color: var(--a-white);
    font-size: 14px; padding: 11px 14px; outline: none;
    font-family: 'Rajdhani', sans-serif; font-weight: 600;
    transition: border-color .2s, box-shadow .2s;
}
.a-input:focus {
    border-color: var(--a-accent);
    box-shadow: 0 0 0 3px rgba(79,142,247,.12);
}
.a-input-group {
    position: relative; display: flex; align-items: center;
}
.a-input-icon {
    position: absolute; left: 12px;
    color: var(--a-dim); font-size: 13px; pointer-events: none;
}
.a-input.has-icon { padding-left: 36px; }
.a-hint { font-size: 11px; color: var(--a-dim); margin-top: 5px; }

/* Upload zone */
.a-upload {
    border: 2px dashed var(--a-border2);
    border-radius: var(--a-r); padding: 32px 20px;
    text-align: center; cursor: pointer;
    background: var(--a-bg);
    transition: border-color .2s, background .2s;
    min-height: 130px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
}
.a-upload:hover, .a-upload.drag { border-color: var(--a-accent); background: rgba(79,142,247,.05); }
.a-upload-ico { font-size: 28px; color: var(--a-dim); }
.a-upload-lbl { font-size: 13px; color: var(--a-dim); }
.a-upload-hint { font-size: 11px; color: var(--a-dim2); }

/* Duration picker */
.a-dur-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.a-dur-item {
    position: relative; cursor: pointer;
    border: 1.5px solid var(--a-border); border-radius: var(--a-r);
    background: var(--a-card2); padding: 14px 10px; text-align: center;
    transition: all .15s;
}
.a-dur-item input[type=radio] { display: none; }
.a-dur-item:has(input:checked) {
    border-color: var(--a-accent);
    background: rgba(79,142,247,.08);
}
.a-dur-item.top { border-color: var(--a-gold); }
.a-dur-item.top:has(input:checked) { background: rgba(212,160,23,.08); }
.a-dur-top-pill {
    position: absolute; top: -9px; left: 50%;
    transform: translateX(-50%);
    background: var(--a-gold); color: #000;
    font-size: 9px; font-weight: 800;
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.a-dur-label { font-size: 11px; color: var(--a-dim); margin-bottom: 4px; }
.a-dur-old { font-size: 10px; color: var(--a-dim2); text-decoration: line-through; }
.a-dur-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px; font-weight: 800; color: var(--a-white);
}
.a-dur-save {
    display: inline-block; margin-top: 4px;
    background: rgba(63,185,80,.15); color: var(--a-green);
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 6px;
}

/* Summary */
.a-summary {
    background: var(--a-card2); border: 1px solid var(--a-border);
    border-radius: var(--a-r); overflow: hidden;
}
.a-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; font-size: 13px; color: var(--a-dim);
    border-bottom: 1px solid var(--a-border);
}
.a-summary-row:last-child { border-bottom: none; }
.a-summary-row.total {
    font-weight: 700; font-size: 15px; color: var(--a-white);
    background: var(--a-bg); padding: 13px 14px;
}

/* Promo */
.a-promo-row { display: flex; gap: 8px; }
.a-promo-row .a-input { flex: 1; }

/* ================================================================
   MY ADS / DASHBOARD
   ================================================================ */

.a-ads-list { display: flex; flex-direction: column; gap: 12px; }

.a-ad-item {
    background: var(--a-card); border: 1px solid var(--a-border);
    border-radius: var(--a-r); overflow: hidden;
    transition: border-color .15s;
}
.a-ad-item:hover { border-color: var(--a-border2); }

.a-ad-item.is-expired { opacity: .6; }

.a-ad-row {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    align-items: center; gap: 20px;
    padding: 16px 20px;
}

.a-ad-thumb {
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
}
.a-ad-thumb img {
    max-width: 110px; max-height: 50px;
    border-radius: 4px; object-fit: cover;
    border: 1px solid var(--a-border);
}
.a-ad-thumb-dims { font-size: 10px; color: var(--a-dim2); font-family: monospace; }

.a-ad-info { min-width: 0; }
.a-ad-name {
    font-size: 14px; font-weight: 700; color: var(--a-white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px;
}
.a-ad-meta {
    font-size: 12px; color: var(--a-dim);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.a-ad-meta a { color: var(--a-accent); text-decoration: none; }
.a-ad-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* Expiry bar */
.a-ad-expiry { margin-top: 8px; }
.a-ad-expiry-bar {
    height: 3px; background: var(--a-border);
    border-radius: 2px; overflow: hidden; margin-bottom: 3px;
}
.a-ad-expiry-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.a-ad-expiry-lbl { font-size: 10px; color: var(--a-dim2); }

.a-ad-stats {
    display: flex; gap: 24px; flex-shrink: 0;
}
.a-ad-stat { text-align: center; }
.a-ad-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px; font-weight: 700; color: var(--a-white);
    display: block;
}
.a-ad-stat-lbl { font-size: 10px; color: var(--a-dim); letter-spacing: .07em; }

.a-ad-actions { display: flex; gap: 6px; flex-shrink: 0; flex-direction: column; }

/* ================================================================
   MODAL
   ================================================================ */

.a-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.a-modal {
    background: var(--a-card); border: 1px solid var(--a-border2);
    border-radius: var(--a-rl); width: 100%; max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.a-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--a-border);
}
.a-modal-title { font-size: 16px; font-weight: 700; color: var(--a-white); }
.a-modal-close {
    background: none; border: none; color: var(--a-dim);
    cursor: pointer; font-size: 20px; line-height: 1;
    transition: color .15s;
}
.a-modal-close:hover { color: var(--a-white); }
.a-modal-body { padding: 20px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
    .a-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .a-stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
    .a-form-wrap { grid-template-columns: 1fr; }
    .a-ad-row { grid-template-columns: 100px 1fr; }
    .a-ad-stats, .a-ad-actions { display: none; }
}
@media (max-width: 640px) {
    .a-dur-grid { grid-template-columns: repeat(2,1fr); }
    .a-stats-grid { grid-template-columns: repeat(2,1fr); }
}
