/* ============================================================
   Agape Plugin Store — Styles
   ============================================================ */
:root {
    --dark:   #1a1a2e;
    --gold:   #c8a97e;
    --gold-lt:#e8d5b7;
    --cream:  #f8f5f0;
    --white:  #ffffff;
    --text:   #2c2c2c;
    --muted:  #888888;
    --border: #e0d8d0;
    --green:  #27ae60;
    --red:    #e74c3c;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ─── Pricing ──────────────────────────────────────────────── */
.aps-pricing-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; font-family: Arial, sans-serif; }

.aps-pricing-header { text-align: center; margin-bottom: 48px; }
.aps-pricing-header h2 { font-size: 32px; color: var(--dark); margin: 0 0 12px; font-family: Georgia, serif; }
.aps-pricing-header p  { color: var(--muted); font-size: 16px; margin: 0; }

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

.aps-plan-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.aps-plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aps-plan-highlighted {
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(200,169,126,.2);
    transform: scale(1.03);
}
.aps-plan-highlighted:hover { transform: scale(1.03) translateY(-4px); }

.aps-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--dark);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.aps-plan-header { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.aps-plan-header h3 { font-size: 22px; color: var(--dark); margin: 0 0 6px; font-family: Georgia, serif; }
.aps-plan-tagline { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.aps-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.aps-price-amount { font-size: 36px; font-weight: bold; color: var(--dark); font-family: Georgia, serif; }
.aps-price-period { font-size: 14px; color: var(--muted); }

.aps-plan-features { list-style: none; padding: 0; margin: 0 0 28px; }
.aps-plan-features li { padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--cream); }
.aps-plan-features li:last-child { border-bottom: none; }

.aps-plan-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: opacity .2s, transform .1s;
}
.aps-plan-btn:hover { opacity: .85; transform: translateY(-1px); }
.aps-plan-btn-primary  { background: var(--dark); color: var(--gold); }
.aps-plan-btn-secondary{ background: var(--cream); color: var(--dark); border: 1.5px solid var(--border); }

.aps-pricing-footer { text-align: center; margin-top: 40px; color: var(--muted); font-size: 14px; }

/* ─── Alerts ────────────────────────────────────────────────── */
.aps-alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 15px; }
.aps-alert-success { background: #d5f5e3; border: 1px solid #a8e6c0; color: #1e8449; }
.aps-alert-error   { background: #fde8e8; border: 1px solid #f5c6c6; color: #c0392b; }

/* ─── Checkout ──────────────────────────────────────────────── */
.aps-checkout-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.aps-checkout-summary {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
}
.aps-checkout-summary h3 { color: var(--gold); margin: 0 0 20px; font-size: 16px; text-transform: uppercase; letter-spacing: .5px; }
.aps-summary-plan { display: flex; justify-content: space-between; margin-bottom: 16px; }
.aps-summary-name { font-size: 20px; font-weight: bold; }
.aps-summary-price { font-size: 20px; color: var(--gold); font-weight: bold; }
.aps-summary-features { list-style: none; padding: 0; margin: 0 0 20px; }
.aps-summary-features li { padding: 6px 0; font-size: 13px; color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.08); }
.aps-summary-total { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-weight: bold; }

.aps-checkout-form { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.aps-checkout-form h3 { margin: 0 0 20px; color: var(--dark); font-size: 18px; }

.aps-field { margin-bottom: 16px; }
.aps-field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 5px; }
.aps-field input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 15px; box-sizing: border-box; transition: border-color .2s; }
.aps-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,126,.15); }
.aps-field small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.aps-error { background: #fff5f5; color: var(--red); padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 12px; border: 1px solid #ffd0d0; }

.aps-submit-btn {
    width: 100%; background: var(--dark); color: var(--gold);
    border: none; padding: 15px; border-radius: 8px;
    font-size: 16px; font-weight: bold; cursor: pointer;
    margin-top: 8px; transition: opacity .2s;
}
.aps-submit-btn:hover { opacity: .85; }
.aps-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

.aps-checkout-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ─── Portal ────────────────────────────────────────────────── */
.aps-portal-wrap { max-width: 680px; margin: 0 auto; font-family: Arial, sans-serif; }
.aps-portal-wrap h2 { color: var(--dark); font-family: Georgia, serif; }
.aps-portal-form { background: var(--cream); padding: 24px; border-radius: var(--radius); margin-bottom: 28px; }
.aps-portal-empty { color: var(--muted); font-style: italic; padding: 20px 0; }

.aps-portal-order {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.aps-portal-order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.aps-portal-order-header strong { font-size: 18px; color: var(--dark); display: block; }
.aps-portal-date { font-size: 13px; color: var(--muted); }
.aps-portal-amount { font-size: 20px; font-weight: bold; color: var(--gold); }

.aps-portal-license { background: var(--cream); padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aps-portal-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.aps-portal-key { font-family: monospace; font-size: 16px; letter-spacing: 2px; color: var(--dark); background: none; border: none; flex: 1; }

.aps-copy-btn {
    background: none; border: 1px solid var(--border); border-radius: 4px;
    padding: 4px 10px; cursor: pointer; font-size: 12px; color: var(--muted);
    transition: background .2s;
}
.aps-copy-btn:hover { background: var(--cream); }

.aps-download-btn {
    display: inline-block; background: var(--dark); color: var(--gold);
    padding: 12px 24px; border-radius: 8px; text-decoration: none;
    font-size: 14px; font-weight: bold; transition: opacity .2s;
}
.aps-download-btn:hover { opacity: .85; color: var(--gold); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 760px) {
    .aps-plans-grid { grid-template-columns: 1fr; }
    .aps-plan-highlighted { transform: none; }
    .aps-checkout-wrap { grid-template-columns: 1fr; }
}
