/* ===========================================================
   AD24 Premium Memberships PRO — Frontend Styles
   =========================================================== */
.ad24mb-fe { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #222; }
.ad24mb-fe-container { max-width: 1180px; margin: 30px auto; padding: 0 20px; }
.ad24mb-fe-h1 { font-size: 26px; margin: 0 0 18px; font-weight: 700; }
.ad24mb-fe-h1 i { color: #f59e0b; margin-right: 8px; }
.ad24mb-fe-h2 { font-size: 19px; margin: 32px 0 14px; font-weight: 600; color: #333; }
.ad24mb-fe-h2 i { margin-right: 6px; color: #6b7280; }

/* ── current plan card ── */
.ad24mb-fe-current {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.ad24mb-fe-current.ad24mb-fe-current-none { border-left: 6px solid #94a3b8; }
.ad24mb-fe-current h2 { margin: 0; font-size: 22px; }
.ad24mb-fe-current-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .8px; }
.ad24mb-fe-current-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px;
}

/* ── usage bars ── */
.ad24mb-fe-usage { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.ad24mb-fe-usage-row { margin: 6px 0; }
.ad24mb-fe-usage-l { font-size: 13px; color: #555; margin-bottom: 4px; }
.ad24mb-fe-usage-bar { background: #e2e8f0; border-radius: 6px; height: 10px; overflow: hidden; }
.ad24mb-fe-usage-bar > div { height: 100%; transition: width .4s; }

/* ── plans grid ── */
.ad24mb-fe-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.ad24mb-fe-plan {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .15s, box-shadow .15s;
    position: relative;
}
.ad24mb-fe-plan:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(0,0,0,.08); }
.ad24mb-fe-plan.current { outline: 3px solid #1a73e8; outline-offset: -3px; }
.ad24mb-fe-plan-badge {
    position: absolute; top: 12px; right: 12px;
    color: #fff; font-size: 10px; padding: 4px 10px;
    border-radius: 12px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase;
}
.ad24mb-fe-plan-icon { font-size: 36px; margin: 6px 0 12px; }
.ad24mb-fe-plan h3 { margin: 0 0 8px; font-size: 18px; }
.ad24mb-fe-plan-price { margin: 10px 0 14px; }
.ad24mb-fe-plan-price strong { font-size: 24px; color: #111; }
.ad24mb-fe-plan-price span { color: #999; font-size: 12px; display: block; }
.ad24mb-fe-plan-feat { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; font-size: 13px; color: #555; }
.ad24mb-fe-plan-feat li { padding: 5px 0; border-bottom: 1px solid #f4f4f4; }
.ad24mb-fe-plan-feat li:last-child { border: 0; }
.ad24mb-fe-plan-feat i { color: #10b981; margin-right: 6px; }

/* ── buttons ── */
.ad24mb-fe-btn {
    display: inline-block;
    background: #f1f5f9;
    color: #333;
    border: 0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.ad24mb-fe-btn:hover { background: #e2e8f0; }
.ad24mb-fe-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ad24mb-fe-btn-pri { background: #1a73e8; color: #fff; }
.ad24mb-fe-btn-pri:hover { background: #1557b0; color: #fff; }
.ad24mb-fe-btn-block { display: block; width: 100%; padding: 14px; font-size: 15px; }
.ad24mb-fe-btn-sm {
    display: inline-block; padding: 5px 12px; font-size: 12px;
    background: #f1f5f9; color: #333; border-radius: 6px;
    text-decoration: none; border: 0; cursor: pointer;
}
.ad24mb-fe-btn-sm:hover { background: #e2e8f0; color: #111; }

/* ── card ── */
.ad24mb-fe-card { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }

/* ── tables ── */
.ad24mb-fe-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ad24mb-fe-tbl th, .ad24mb-fe-tbl td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.ad24mb-fe-tbl th { background: #f8fafc; font-size: 11.5px; text-transform: uppercase; color: #666; letter-spacing: .4px; }
.ad24mb-fe-tbl .r { text-align: right; }

/* ── status tags ── */
.ad24mb-fe-tag {
    display: inline-block; padding: 3px 9px; border-radius: 12px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}
.ad24mb-fe-tag-active, .ad24mb-fe-tag-completed { background: #d1fae5; color: #065f46; }
.ad24mb-fe-tag-pending { background: #fef3c7; color: #92400e; }
.ad24mb-fe-tag-failed, .ad24mb-fe-tag-cancelled, .ad24mb-fe-tag-expired { background: #fee2e2; color: #991b1b; }
.ad24mb-fe-tag-refunded { background: #e0e7ff; color: #3730a3; }

/* ── alerts ── */
.ad24mb-fe-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.ad24mb-fe-alert-warn { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.ad24mb-fe-alert-info { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ── checkout layout ── */
.ad24mb-fe-checkout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    background: #fff; border-radius: 12px; padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
@media (max-width: 680px) { .ad24mb-fe-checkout { grid-template-columns: 1fr; } }

.ad24mb-fe-summary { padding-right: 20px; border-right: 1px solid #f0f0f0; }
@media (max-width: 680px) { .ad24mb-fe-summary { border-right: 0; border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; padding-right: 0; } }
.ad24mb-fe-summary h3, .ad24mb-fe-methods h3 { margin: 0 0 14px; font-size: 16px; }
.ad24mb-fe-summary-plan { background: #f8fafc; border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.ad24mb-fe-summary-feat { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; color: #555; }
.ad24mb-fe-summary-feat li { padding: 4px 0; }
.ad24mb-fe-summary-feat i { color: #10b981; margin-right: 6px; }

.ad24mb-fe-coupon { margin: 16px 0; padding: 12px; background: #f8fafc; border-radius: 8px; }
.ad24mb-fe-coupon label { display: block; font-size: 12px; color: #666; margin-bottom: 6px; }

.ad24mb-fe-totals { border-top: 1px solid #e2e8f0; padding-top: 12px; }
.ad24mb-fe-totals .r { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.ad24mb-fe-totals .grand { font-size: 18px; font-weight: 700; margin-top: 8px; padding-top: 10px; border-top: 1px solid #e2e8f0; color: #1a73e8; }

.ad24mb-fe-input {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.ad24mb-fe-input:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.15); }

.ad24mb-fe-method {
    border: 2px solid #e2e8f0; border-radius: 8px; padding: 12px;
    margin-bottom: 10px; cursor: pointer; transition: all .15s;
}
.ad24mb-fe-method:hover { border-color: #cbd5e1; }
.ad24mb-fe-method:has(input:checked) { border-color: #1a73e8; background: #f0f7ff; }
.ad24mb-fe-method label { font-weight: 600; cursor: pointer; display: block; }
.ad24mb-fe-method p { margin: 6px 0 0 26px; font-size: 12px; color: #666; }

/* ── thank you success ── */
.ad24mb-fe-success, .ad24mb-fe-pending, .ad24mb-fe-failed {
    background: #fff; border-radius: 12px; padding: 36px 30px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.ad24mb-fe-pending { text-align: left; }
.ad24mb-fe-success-icon, .ad24mb-fe-pending-icon, .ad24mb-fe-failed-icon {
    font-size: 60px; margin-bottom: 16px; text-align: center;
}
.ad24mb-fe-success-icon { color: #10b981; }
.ad24mb-fe-pending-icon { color: #f59e0b; text-align: left; font-size: 40px; }
.ad24mb-fe-failed-icon { color: #dc2626; }
.ad24mb-fe-success h1, .ad24mb-fe-failed h1 { margin: 0 0 10px; }
.ad24mb-fe-pending h1 { margin: 0 0 14px; font-size: 22px; }
.ad24mb-fe-success-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.ad24mb-fe-bank { background: #f8fafc; border-radius: 8px; padding: 4px 16px; margin: 14px 0; }
.ad24mb-fe-bank-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px;
}
.ad24mb-fe-bank-row:last-child { border: 0; }
.ad24mb-fe-bank-row span { color: #666; font-size: 12px; }

/* ── shop page (Phase 2) ── */
.ad24mb-shop-hd {
    background: #fff; border-radius: 12px; padding: 22px 24px; margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.ad24mb-shop-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #6c5ce7); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; flex-shrink: 0;
}
.ad24mb-shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.ad24mb-shop-item {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05); text-decoration: none; color: #222;
    transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.ad24mb-shop-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.ad24mb-shop-thumb {
    position: relative; height: 150px; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ad24mb-shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad24mb-shop-thumb.noimg img { display: none; }
.ad24mb-shop-noimg { font-size: 34px; color: #cbd5e1; }
.ad24mb-shop-premium {
    position: absolute; top: 8px; left: 8px;
    background: #f59e0b; color: #fff; font-size: 11px;
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ad24mb-shop-info { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.ad24mb-shop-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad24mb-shop-price { font-size: 16px; font-weight: 700; color: #1a73e8; margin-top: auto; }
.ad24mb-shop-date { font-size: 11px; color: #999; margin-top: 4px; }

/* ── recurring badge on plan cards ── */
.ad24mb-fe-recurring-note {
    font-size: 11px; color: #6b7280; margin-top: 4px;
}
.ad24mb-fe-plan-recurring {
    display: inline-block; font-size: 10px; color: #1557b0;
    background: #e8f0fe; padding: 2px 8px; border-radius: 8px; margin-top: 6px; font-weight: 600;
}
