/* Landing page — پس‌کوچه */

.page-landing {
    background: #faf9f7;
}

.page-landing .container {
    max-width: 1100px;
}

/* Nav */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.landing-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    max-width: 42%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.landing-nav-links .nav-label-short {
    display: none;
}

.landing-nav-links a:not(.btn) {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.landing-nav-links a:not(.btn):hover {
    color: var(--accent);
    background: rgba(249, 115, 22, 0.08);
}

.landing-nav-links .btn {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.landing-nav-links .btn-primary {
    color: #fff;
    background: var(--accent);
}

.landing-nav-links .btn-primary:hover {
    color: #fff;
    background: var(--accent-dark, #ea580c);
}

.landing-nav-links .btn-secondary {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

.landing-nav-links .btn-secondary:hover {
    color: var(--text);
    background: var(--bg);
}

/* Hero */
.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4rem;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(249, 115, 22, 0.12), transparent),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(251, 191, 36, 0.1), transparent);
    pointer-events: none;
}

.landing-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.landing-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-dark, #ea580c);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.landing-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.35;
    margin-bottom: 1rem;
    font-weight: 700;
}

.landing-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--border, #e5e7eb);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.landing-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-item strong {
    font-size: 1.1rem;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Phone mock */
.phone-mock {
    max-width: 280px;
    margin: 0 auto;
    padding: 12px;
    background: linear-gradient(145deg, #1f2937, #374151);
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.phone-screen {
    background: #fff;
    border-radius: 22px;
    padding: 1rem;
    min-height: 320px;
}

.mock-header {
    font-weight: 600;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.75rem;
}

.mock-product {
    height: 64px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.mock-btn {
    margin-top: 1rem;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 0.65rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Sections */
.landing-section {
    padding: 4rem 0;
}

.landing-section-alt {
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-section-alt .feature-card {
    background: #faf9f7;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

/* Steps */
.steps-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-card {
    background: #faf9f7;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    max-width: 320px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-section-alt .step-card {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.step-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.step-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    opacity: 0.5;
    transform: rotate(-90deg);
}

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.1);
}

.plan-featured {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
}

.plan-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.plan-tagline {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-dark, #ea580c);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.plan-features li {
    font-size: 0.88rem;
    padding: 0.4rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text);
    line-height: 1.5;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Payment info */
.payment-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.payment-card {
    background: #faf9f7;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.payment-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.payment-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

/* CTA */
.landing-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark, #ea580c) 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.landing-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.landing-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.landing-cta .btn-primary {
    background: #fff;
    color: var(--accent);
}

.landing-cta .btn-primary:hover {
    background: #fef3c7;
}

.landing-cta .btn-ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.landing-cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* Footer */
.landing-footer {
    background: #1f2937;
    color: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 0;
}

.landing-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.landing-footer-links {
    display: flex;
    gap: 1.25rem;
}

.landing-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: #fff;
}

/* Auth enhancements */
.auth-card-modern {
    max-width: 480px;
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.auth-container-wide .auth-card-modern {
    max-width: 560px;
}

.auth-step-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.auth-footer-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.auth-footer-links.muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-alt-login {
    margin-top: 1rem;
}

.form-section-title {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border, #e5e7eb);
}

.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-method-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.05);
}

.payment-method-option input {
    accent-color: var(--accent);
}

.card-payment-box {
    background: #faf9f7;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card-info {
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 1rem;
}

.card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.card-row span {
    color: var(--text-muted);
}

/* Responsive */
@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .landing-hero-inner {
        grid-template-columns: 1fr 1fr;
    }

    .landing-hero-visual {
        order: -1;
    }

    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps-row {
        flex-direction: row;
        justify-content: center;
    }

    .step-arrow {
        transform: none;
    }

    .plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .landing-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }
}

@media (max-width: 599px) {
    .landing-nav-links .nav-hide-mobile {
        display: none;
    }

    .landing-nav-inner {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .landing-logo {
        font-size: 0.95rem;
        max-width: 38%;
    }

    .landing-nav-links {
        gap: 0.35rem;
    }

    .landing-nav-links a:not(.btn) {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    .landing-nav-links .nav-label-full {
        display: none;
    }

    .landing-nav-links .nav-label-short {
        display: inline;
    }

    .landing-nav-links .btn {
        padding: 0.42rem 0.65rem;
        font-size: 0.78rem;
    }

    .landing-hero {
        padding: 2rem 0 2.5rem;
    }

    .landing-hero-actions {
        flex-direction: column;
    }

    .landing-hero-actions .btn {
        width: 100%;
    }

    .landing-footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* Register page */
.page-register {
    background: #faf9f7;
    min-height: 100vh;
}

.register-page {
    padding-bottom: 3rem;
}

.register-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: nowrap;
}

.register-logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.register-top-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.register-top-link:hover {
    color: var(--accent);
    border-color: rgba(249, 115, 22, 0.3);
}

.register-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.register-hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-dark, #ea580c);
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.register-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    margin-bottom: 0.5rem;
}

.register-hero p {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

.register-container {
    max-width: 1080px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.register-section {
    margin: 0;
}

.register-section-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.register-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.register-section-head h2 {
    font-size: 1.1rem;
    margin: 0 0 0.2rem;
}

.register-section-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.register-step {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
}

.register-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.plan-card-selectable {
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.plan-card-selectable input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card-selectable .plan-select-mark {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    transition: all 0.2s;
}

.plan-card-selectable.is-selected {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.18);
}

.plan-card-selectable.is-selected .plan-select-mark {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 3px #fff;
}

.plan-card-selectable.plan-featured.is-selected {
    border-color: var(--accent);
}

.register-payment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-register .payment-method-option {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.page-register .payment-method-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.page-register .payment-method-body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #faf9f7;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.page-register .payment-method-option:has(input:checked) .payment-method-body {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.06);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.1);
}

.payment-method-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.payment-method-body strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.payment-method-body small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.page-register .card-payment-box {
    background: #faf9f7;
    border: 1px dashed rgba(249, 115, 22, 0.25);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
}

.page-register .card-payment-box.is-hidden {
    display: none !important;
}

.register-submit {
    margin-top: 0.25rem;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}

.register-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-footer a {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 599px) {
    .register-top {
        padding: 0.65rem 0.75rem;
    }

    .register-logo {
        font-size: 0.92rem;
    }

    .register-top-link {
        font-size: 0.8rem;
        padding: 0.38rem 0.6rem;
    }

    .register-hero {
        padding: 1.75rem 0.75rem 1.25rem;
    }

    .register-hero-badge {
        font-size: 0.72rem;
        line-height: 1.5;
    }

    .register-section-card {
        padding: 1.15rem 1rem;
        border-radius: 16px;
    }

    .register-section-head {
        gap: 0.65rem;
    }

    .register-section-head h2 {
        font-size: 1rem;
    }

    .register-step {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .register-plans-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.85rem;
        padding: 0.25rem 0.15rem 0.75rem;
        margin: 0 -0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .register-plans-grid .plan-card-selectable {
        flex: 0 0 min(88vw, 300px);
        scroll-snap-align: start;
    }

    .plan-card {
        padding: 1.35rem 1.15rem;
    }

    .plan-badge {
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .price-amount {
        font-size: 1.25rem;
    }

    .page-register .payment-method-body {
        padding: 0.85rem;
        gap: 0.65rem;
    }

    .payment-method-icon {
        font-size: 1.45rem;
    }

    .payment-method-body strong {
        font-size: 0.88rem;
    }

    .payment-method-body small {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .register-submit {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
    }

    .register-footer {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }

    .page-register .form-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .register-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .register-payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .register-section-card {
        padding: 1.75rem 1.75rem;
    }
}

@media (min-width: 960px) {
    .register-plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .plan-card-selectable .plan-features li {
        font-size: 0.82rem;
    }
}
