/* ============================================
   SuperCutout — Auth & Pricing Styles
   Teal (#0D9488) + Coral (#F97316) palette
   ============================================ */

/* Auth Pages — Login / Register */
.auth-page { background: var(--bg-page, #F8FAF9); }

.auth-main {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
}

.auth-container { width: 100%; max-width: 440px; }

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #E2E8E6;
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .auth-logo { margin-bottom: 1rem; display: flex; justify-content: center; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; color: #1A2B25; margin-bottom: 0.5rem; }
.auth-header p { color: #5A6B63; font-size: 0.95rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: #374B42; }
.form-group input {
    padding: 0.75rem 1rem;
    border: 1.5px solid #D4E4E1;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #FAFCFB;
}
.form-group input:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
    background: white;
}
.form-group input::placeholder { color: #9AA8A1; }

.password-strength {
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 1rem;
    transition: color 0.2s;
}
.password-strength.weak { color: #EF4444; }
.password-strength.fair { color: #F97316; }
.password-strength.good { color: #EAB308; }
.password-strength.strong { color: #22C55E; }
.password-strength.very-strong { color: #0D9488; }

.auth-error, .auth-success {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.auth-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
.auth-success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8E6;
}
.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: #9AA8A1;
    font-size: 0.85rem;
}

.auth-alt { text-align: center; }
.auth-alt p { color: #5A6B63; font-size: 0.9rem; }
.auth-alt a { color: #0D9488; font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

.auth-benefits {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8E6;
}
.auth-benefits .benefit {
    font-size: 0.8rem;
    color: #5A6B63;
}

/* Account Page */
.account-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1.5rem 3rem;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E2E8E6;
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D9488, #06B6D4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.account-avatar span {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.account-info { flex: 1; }
.account-info h1 { font-size: 1.5rem; color: #1A2B25; margin-bottom: 0.25rem; }
.account-email { color: #5A6B63; font-size: 0.95rem; }

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.account-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E2E8E6;
    overflow: hidden;
}
.account-card.vip-active { border-color: #0D9488; }

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #F0F4F3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h2 { font-size: 1rem; font-weight: 600; color: #1A2B25; }

.card-body { padding: 1.5rem; }

.vip-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-free { background: #F0F4F3; color: #5A6B63; }
.badge-vip { background: linear-gradient(135deg, #0D9488, #06B6D4); color: white; }

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F0F4F3;
    font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: #5A6B63; }
.detail-row strong { color: #1A2B25; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box {
    text-align: center;
    padding: 1rem;
    background: #F8FAF9;
    border-radius: 12px;
}
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: #0D9488; }
.stat-label { font-size: 0.8rem; color: #5A6B63; }

.quick-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #374B42;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.action-link:hover { background: #F0F4F3; }
.action-link svg { color: #0D9488; }
.action-upgrade { color: #F97316; }
.action-upgrade svg { color: #F97316; }

.free-status { text-align: center; }
.free-status p { margin-bottom: 1rem; color: #5A6B63; font-size: 0.9rem; }

/* Pricing Page */
.pricing-page { padding-top: 80px; }

.pricing-hero {
    text-align: center;
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, #F0FDFA 0%, #F8FAF9 100%);
}
.pricing-hero h1 { font-size: 2.5rem; font-weight: 800; color: #1A2B25; margin-bottom: 0.75rem; }
.pricing-hero p { font-size: 1.15rem; color: #5A6B63; }
.current-plan-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #0D9488, #06B6D4);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.toggle-label { font-size: 0.95rem; color: #9AA8A1; font-weight: 500; transition: color 0.2s; }
.toggle-label.active { color: #1A2B25; font-weight: 600; }
.save-badge {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.25rem;
}

.toggle-switch.lg { width: 52px; height: 28px; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: #D4E4E1; border-radius: 24px; transition: 0.3s;
}
.toggle-slider::before {
    content: ''; position: absolute; width: 20px; height: 20px;
    left: 2px; bottom: 2px; background: white; border-radius: 50%;
    transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch.lg .toggle-slider::before { width: 24px; height: 24px; }
.toggle-switch input:checked + .toggle-slider { background: #0D9488; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch.lg input:checked + .toggle-slider::before { transform: translateX(24px); }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.plan-card {
    background: white;
    border: 2px solid #E2E8E6;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.plan-popular {
    border-color: #0D9488;
    box-shadow: 0 8px 32px rgba(13,148,136,0.15);
    transform: scale(1.03);
}
.plan-popular:hover { transform: scale(1.03) translateY(-4px); }

.plan-best-value { border-color: #F97316; }

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0D9488, #06B6D4);
    color: white;
    padding: 0.3rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.best-value-badge {
    background: linear-gradient(135deg, #F97316, #FB923C);
}

.plan-header { text-align: center; margin-bottom: 1.5rem; }
.plan-header h3 { font-size: 1.25rem; font-weight: 700; color: #1A2B25; margin-bottom: 0.75rem; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 0.25rem; }
.price-amount { font-size: 2.5rem; font-weight: 800; color: #1A2B25; }
.price-period { font-size: 0.9rem; color: #5A6B63; }
.plan-desc { margin-top: 0.5rem; color: #5A6B63; font-size: 0.85rem; }

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.plan-features li {
    font-size: 0.875rem;
    color: #374B42;
    padding-left: 0;
}
.plan-features .excluded { color: #9AA8A1; }

/* Pricing Comparison Table */
.pricing-comparison {
    padding: 4rem 0;
    background: #F8FAF9;
}
.pricing-comparison h2 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.comparison-table th, .comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #F0F4F3;
    font-size: 0.9rem;
}
.comparison-table th { background: #F8FAF9; font-weight: 600; color: #374B42; }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }
.comparison-table .highlight { background: #F0FDFA; }
.comparison-table th.highlight { background: #E6FAF7; color: #0D9488; }

/* Guarantee */
.pricing-guarantee {
    padding: 3rem 0;
    text-align: center;
}
.guarantee-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #F0FDFA;
    border-radius: 16px;
    border: 1px solid #CCFBF1;
}
.guarantee-icon { font-size: 3rem; margin-bottom: 1rem; }
.guarantee-content h2 { font-size: 1.25rem; color: #1A2B25; margin-bottom: 0.5rem; }
.guarantee-content p { color: #5A6B63; font-size: 0.95rem; }

/* Access Control Modal */
.access-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.access-modal.show { opacity: 1; pointer-events: auto; }

.access-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.access-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.access-modal.show .access-modal-content { transform: translateY(0); }

.access-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9AA8A1;
    cursor: pointer;
}
.access-modal-close:hover { color: #374B42; }

.access-modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.access-modal-content h2 { font-size: 1.25rem; font-weight: 700; color: #1A2B25; margin-bottom: 0.75rem; }
.access-modal-content p { color: #5A6B63; font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }

.access-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.access-modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.feature-pill {
    background: #F0FDFA;
    color: #0D9488;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Color presets on change-bg page */
.color-presets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}
.preset-label { font-size: 0.85rem; color: #5A6B63; }
.color-preset {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.color-preset:hover { transform: scale(1.15); border-color: #0D9488; }

/* Responsive */
@media (max-width: 1024px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-popular { transform: none; }
    .plan-popular:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-header { flex-wrap: wrap; }
    .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-hero h1 { font-size: 1.75rem; }
    .auth-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .auth-main { padding: 5rem 1rem 2rem; }
    .auth-benefits { flex-direction: column; align-items: center; }
}
