/* 요금제 페이지 — 기존 스튜디오 테마 확장 */

.pricing-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(34, 211, 238, 0.08), transparent 45%),
        var(--bg);
    min-height: 100vh;
}

.pricing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.pricing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.pricing-brand .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.pricing-brand strong {
    display: block;
    font-size: 0.95rem;
}

.pricing-brand small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.pricing-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-nav-actions .active-owner {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.45);
}

.pricing-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 56px;
    animation: pricingFadeUp 0.55s ease both;
}

.pricing-kicker {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.pricing-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.pricing-lead strong {
    color: var(--text);
}

.pricing-section {
    margin-bottom: 48px;
    animation: pricingFadeUp 0.6s ease both;
    animation-delay: 0.08s;
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: stretch;
}

.plan-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 18px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.95), rgba(11, 18, 32, 0.9));
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.plan-card.popular {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 16px 40px rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, rgba(40, 48, 22, 0.95), rgba(18, 31, 24, 0.95));
}

.plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #0b1220;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-card-head h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.plan-credits {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.plan-blurb {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 6px;
    min-height: 2.6em;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-amount {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-unit {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.plan-unit-price {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: -4px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin: 4px 0 8px;
}

.plan-features li {
    position: relative;
    padding-left: 18px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.85;
}

.plan-owner {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px dashed rgba(34, 211, 238, 0.35);
    font-size: 0.8rem;
}

.plan-owner > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
}

.plan-owner .profit {
    color: var(--accent);
}

.plan-cta {
    width: 100%;
    justify-content: center;
}

.pricing-note {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(18, 31, 24, 0.6);
    margin-bottom: 40px;
    animation: pricingFadeUp 0.65s ease both;
    animation-delay: 0.12s;
}

.pricing-note h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.pricing-note ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.owner-panel {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.06));
    animation: pricingFadeUp 0.5s ease both;
}

.owner-table-wrap {
    overflow-x: auto;
}

.owner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.owner-table th,
.owner-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.owner-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

.owner-table td small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

.profit-cell {
    color: var(--accent);
    font-weight: 700;
}

.owner-footnote {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@keyframes pricingFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .plan-grid,
    .plan-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-nav {
        padding: 14px 16px;
    }

    .pricing-main {
        width: calc(100% - 28px);
        padding-top: 32px;
    }

    .plan-grid,
    .plan-grid-3 {
        grid-template-columns: 1fr;
    }

    .plan-blurb {
        min-height: 0;
    }
}
