/* ════════════════════════════════════════════
   Minimalist Membership Plugin — Frontend CSS
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Base wrapper ────────────────────────────────── */
.mmp-minimal-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 70vh;
    padding: 40px 16px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Card shell ──────────────────────────────────── */
.mmp-glass {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
}

/* Signup gets a wider card */
.mmp-glass.mmp-signup-card {
    max-width: 520px;
}

/* ── Typography ──────────────────────────────────── */
.mmp-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.mmp-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
}

/* ── Inputs ──────────────────────────────────────── */
.mmp-field {
    position: relative;
    margin-bottom: 14px;
}

.mmp-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e4e4e4;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-sizing: border-box;
}

.mmp-field input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.mmp-field input::placeholder {
    color: #bbb;
}

/* Legacy support for .mmp-input-group */
.mmp-input-group {
    margin-bottom: 14px;
}

.mmp-input-group input,
.mmp-input-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e4e4e4;
    border-radius: 10px;
    background: #fafafa;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
}

.mmp-input-group input:focus,
.mmp-input-group select:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* ── Section label ───────────────────────────────── */
.mmp-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #aaa;
    margin: 24px 0 10px;
}

/* ── Plan cards ──────────────────────────────────── */
.mmp-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.mmp-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    user-select: none;
}

.mmp-plan-card:hover {
    border-color: #c0c0c0;
    background: #fafafa;
}

.mmp-plan-card.selected {
    border-color: #2563eb;
    background: #f8faff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .06);
}

.mmp-plan-card .plan-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mmp-plan-card .plan-right {
    text-align: right;
}

.mmp-plan-name {
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.mmp-plan-dur {
    font-size: 12px;
    color: #999;
    margin-top: 1px;
}

.mmp-plan-price {
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

.mmp-plan-freq {
    font-size: 12px;
    color: #999;
}

.mmp-plan-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-left: 14px;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mmp-plan-card.selected .mmp-plan-dot {
    border-color: #2563eb;
    background: #2563eb;
}

.mmp-plan-card.selected .mmp-plan-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

/* ── Gateway selector ────────────────────────────── */
.mmp-gateway-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.mmp-gateway-option {
    flex: 1;
    padding: 12px 10px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: border-color .15s, background .15s;
    user-select: none;
}

.mmp-gateway-option:hover {
    border-color: #bbb;
    background: #fafafa;
}

.mmp-gateway-option.selected {
    border-color: #2563eb;
    background: #f8faff;
    color: #2563eb;
    font-weight: 600;
}

/* ── Primary button ──────────────────────────────── */
.mmp-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s, transform .12s, opacity .15s;
    letter-spacing: -.1px;
}

.mmp-btn-primary {
    background: #2563eb;
    color: #fff;
}

.mmp-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mmp-btn-primary:active {
    transform: translateY(0);
}

.mmp-btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ── Error / notice ──────────────────────────────── */
.mmp-error {
    background: #fff0f0;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.mmp-notice {
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8faff;
    border-left: 3px solid #2563eb;
    font-size: 14px;
    color: #555;
}

/* ── Divider ─────────────────────────────────────── */
.mmp-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 20px 0;
}

/* ── Footer link ─────────────────────────────────── */
.mmp-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}

.mmp-footer-link a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.mmp-footer-link a:hover {
    color: #111;
    text-decoration: underline;
}

/* ── Account page ────────────────────────────────── */
.mmp-account-details {
    margin-bottom: 24px;
}

.mmp-account-details strong {
    display: inline-block;
    width: 120px;
    color: #888;
    font-weight: 500;
}

/* ── Logout Button ──────────────────────────────── */
.mmp-logout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #ef4444;
    border: 1.5px solid #fee2e2;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
    box-sizing: border-box;
    margin-top: 12px;
}

.mmp-logout-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

.mmp-logout-btn:active {
    transform: translateY(0);
}