/* ===== PRODUCTS PAGE ===== */
.products-body {
    background: #0A0A12;
}

.products-page {
    padding-top: 80px;
    min-height: 100vh;
}

/* Hero */
.products-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.products-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: #F0F0F0;
}

.products-hero p {
    font-size: 1rem;
    color: #888;
    line-height: 1.7;
}

.products-hero p strong {
    color: #F0F0F0;
}

/* Active nav link */
.active-nav {
    color: #A855F7 !important;
    font-weight: 700 !important;
}

/* ===== PLANS ===== */
.plans-section {
    padding: 2rem 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.plan-card {
    border-radius: 20px;
    padding: 2rem 1.75rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Plan color themes */
.plan-light {
    background: #080C14;
    border: 1.5px solid #38BDF8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.08);
}

.plan-regular {
    background: #0B080F;
    border: 1.5px solid #A855F7;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
}

.plan-intensive {
    background: #080F08;
    border: 1.5px solid #4ADE80;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.08);
}

/* Badge */
.plan-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.badge-light  { background: rgba(56,189,248,0.15); color: #38BDF8; }
.badge-regular { background: rgba(168,85,247,0.15); color: #A855F7; }
.badge-intensive { background: rgba(74,222,128,0.15); color: #4ADE80; }

/* Plan header */
.plan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.icon-light    { background: rgba(56,189,248,0.15); color: #38BDF8; }
.icon-regular  { background: rgba(168,85,247,0.15); color: #A855F7; }
.icon-intensive { background: rgba(74,222,128,0.15); color: #4ADE80; }

.plan-name {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.plan-light   .plan-name { color: #38BDF8; }
.plan-regular .plan-name { color: #A855F7; }
.plan-intensive .plan-name { color: #4ADE80; }

.plan-sub {
    font-size: 0.8rem;
    color: #666;
}

/* Price */
.plan-price {
    margin-bottom: 1.25rem;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.plan-light   .price-amount { color: #38BDF8; }
.plan-regular .price-amount { color: #A855F7; }
.plan-intensive .price-amount { color: #4ADE80; }

.price-unit {
    font-size: 0.9rem;
    color: #888;
    margin-left: 0.25rem;
}

.plan-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin-bottom: 1.25rem;
}

/* Features */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #C0C0C0;
}

.feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feat-icon.icon-light    { background: rgba(56,189,248,0.12); color: #38BDF8; }
.feat-icon.icon-regular  { background: rgba(168,85,247,0.12); color: #A855F7; }
.feat-icon.icon-intensive { background: rgba(74,222,128,0.12); color: #4ADE80; }

/* CTA buttons */
.plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: auto;
}

.plan-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.btn-light     { background: #38BDF8; color: #000; }
.btn-regular   { background: #A855F7; color: #fff; }
.btn-intensive { background: #4ADE80; color: #000; }

/* 구독 상태별 버튼 */
.plan-btn.btn-current-sub {
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    color: #22C55E;
    cursor: not-allowed;
    opacity: 1;
}
.plan-btn.btn-current-sub:hover {
    opacity: 1;
    transform: none;
}

.plan-btn.btn-lower-sub {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #444;
    cursor: not-allowed;
    opacity: 1;
}
.plan-btn.btn-lower-sub:hover {
    opacity: 1;
    transform: none;
}

.plan-btn.btn-upgrade {
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

/* ===== SINGLE PURCHASE ===== */
.singles-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.singles-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #F0F0F0;
    margin-bottom: 1.25rem;
}

.singles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #111118;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.single-card:hover {
    border-color: rgba(255,255,255,0.2);
}

.single-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-icon {
    font-size: 1.5rem;
}

.single-info {
    flex: 1;
    min-width: 0;
}

.single-name {
    font-size: 1rem;
    font-weight: 700;
    color: #F0F0F0;
    margin-bottom: 0.3rem;
}

.single-desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.single-validity {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.35rem;
}

.single-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #BBBBBB;
}

.single-btn {
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.single-btn:hover { opacity: 0.85; }

.vat-note {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
}

/* ===== LOGIN MODAL ===== */
.purchase-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.purchase-modal-overlay.active {
    display: flex;
}

.purchase-modal {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.purchase-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.purchase-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F0F0F0;
    margin-bottom: 0.5rem;
}

.purchase-modal-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.purchase-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-modal-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.purchase-modal-btn:hover { opacity: 0.85; }

.btn-login  { background: #A855F7; color: #fff; }
.btn-cancel { background: rgba(255,255,255,0.08); color: #aaa; }

/* ===== 구독 중 안내 모달 ===== */
.subscribed-modal {
    padding-top: 2rem;
}

.subscribed-plan-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    color: #22C55E;
    font-size: 1rem;
    font-weight: 900;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin: 0 auto 1.25rem;
    letter-spacing: -0.25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .products-hero { padding: 3rem 1.25rem 1.5rem; }
    .plans-section { padding: 1.5rem 1.25rem 3rem; }
    .singles-section { padding: 0 1.25rem 4rem; }
    .single-card { padding: 1rem 1.1rem; }
}
