/* ── subscription.css — abonelik sayfası ─────────────────────────────────── */

.sub-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.sub-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 24px;
}

/* ── Mevcut durum kartı ─────────────────────────────────────────────────────── */

.sub-status-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sub-status-card.status-locked {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(127, 29, 29, 0.12);
}

.sub-status-card.status-cancel-pending {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(120, 80, 0, 0.10);
}

.sub-status-left { display: flex; flex-direction: column; gap: 6px; }

.sub-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}
.sub-status-badge.trial     { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.35); color: #22d3ee; }
.sub-status-badge.active    { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); color: #10b981; }
.sub-status-badge.locked    { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.35);  color: #ef4444; }
.sub-status-badge.none      { background: rgba(100,116,139,.12); border: 1px solid rgba(100,116,139,.35); color: #94a3b8; }
.sub-status-badge.admin     { background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.35); color: #a78bfa; }
.sub-status-badge.cancelled { background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); color: #fbbf24; }

.sub-status-plan {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
}

.sub-status-detail {
    font-size: 13px;
    color: #94a3b8;
}

.sub-status-detail.warn { color: #f87171; font-weight: 500; }

.sub-cancel-link {
    background: none;
    border: none;
    color: #f87171;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    margin-top: 6px;
    display: inline-block;
}
.sub-cancel-link:hover { color: #ef4444; }

.sub-undo-cancel-btn {
    padding: 10px 22px;
    background: #22d3ee;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-undo-cancel-btn:hover { background: #06b6d4; }

.sub-status-action-btn {
    padding: 10px 22px;
    background: #22d3ee;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.15s;
}
.sub-status-action-btn:hover { background: #06b6d4; }

/* ── Plan kartları grid ─────────────────────────────────────────────────────── */

.sub-plans-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.sub-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.sub-enterprise-row {
    margin-bottom: 40px;
}

/* ── Plan kartı ─────────────────────────────────────────────────────────────── */

.plan-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.plan-card:hover:not(.plan-card-disabled) {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.plan-card-current {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.plan-card-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.plan-card-enterprise {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Popular ribbon */
.plan-popular-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #22d3ee;
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #22d3ee;
    line-height: 1;
}

.plan-price-suffix {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    margin-left: 2px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.plan-feature {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-feature::before {
    content: '✓';
    color: #22d3ee;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.plan-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    text-align: center;
}

.plan-btn-trial  { background: #22d3ee; color: #0f172a; }
.plan-btn-trial:hover { background: #06b6d4; }

.plan-btn-current { background: rgba(34,211,238,.1); color: #22d3ee; border: 1px solid rgba(34,211,238,.35); cursor: default; }

.plan-btn-upgrade   { background: #3b82f6; color: #fff; }
.plan-btn-upgrade:hover { background: #2563eb; }

.plan-btn-downgrade { background: rgba(100,116,139,.15); color: #94a3b8; border: 1px solid #334155; }
.plan-btn-downgrade:hover { background: rgba(100,116,139,.25); }

.plan-btn-soon    { background: rgba(100,116,139,.12); color: #64748b; border: 1px solid #334155; cursor: not-allowed; }

.plan-btn-contact { background: rgba(139,92,246,.15); color: #a78bfa; border: 1px solid rgba(139,92,246,.35); }
.plan-btn-contact:hover { background: rgba(139,92,246,.25); }

.plan-btn-locked  { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.35); cursor: not-allowed; }

/* ── Paywall overlay ──────────────────────────────────────────────────────── */

.paywall-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 30, 0.92);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.paywall-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.paywall-icon { font-size: 48px; margin-bottom: 20px; }

.paywall-title {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.paywall-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 28px;
}

.paywall-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #22d3ee;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}
.paywall-btn:hover { background: #06b6d4; }

/* ── Trial banner (sticky top) ──────────────────────────────────────────────── */

.trial-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(234, 179, 8, 0.9);
    color: #1c1a00;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    z-index: 8999;
    backdrop-filter: blur(4px);
}

.trial-top-banner a {
    color: #1c1a00;
    text-decoration: underline;
    font-weight: 700;
}

/* ── Trial pill (topbar) ─────────────────────────────────────────────────────── */

.trial-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.trial-topbar-pill.pill-trial {
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee;
}

.trial-topbar-pill.pill-locked {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.trial-topbar-pill:hover { opacity: 0.8; }

/* ── Loading state ─────────────────────────────────────────────────────────── */

.sub-loading {
    text-align: center;
    padding: 60px 0;
    color: #64748b;
    font-size: 14px;
}

/* ── Admin mesajı ──────────────────────────────────────────────────────────── */

.sub-admin-notice {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 20px 24px;
    color: #a78bfa;
    font-size: 14px;
    margin-bottom: 32px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .sub-plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .sub-plans-grid { grid-template-columns: 1fr; }
    .sub-page { padding: 16px 14px 48px; }
    .sub-status-card { flex-direction: column; align-items: flex-start; }
    .plan-card-enterprise { flex-direction: column; }
}
