/* =============================
   CSS Variables (Light Theme)
   ============================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #707579;
    --border-color: #e0e0e0;
    --accent-color: #0088cc;
    --accent-hover: #0077b3;
    --shadow-light: rgba(0, 0, 0, 0.15);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.4);

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================
   Dark Theme
   ============================= */
.dark-theme {
    --bg-primary: #212121;
    --bg-secondary: #2c2c2c;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --accent-color: #0088cc;
    --accent-hover: #0099dd;
    --shadow-light: rgba(0, 0, 0, 0.4);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-dark: rgba(0, 0, 0, 0.6);
}

/* =============================
   Reset & Base Styles
   ============================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* =============================
   Header
   ============================= */
.pricing-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg, var(--bg-primary));
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.nav-link.active {
    color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.nav-link.lang-switch {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

/* =============================
   Main Content
   ============================= */
.pricing-main {
    flex: 1;
    padding: 40px 16px;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================
   Hero Section
   ============================= */
.pricing-hero {
    text-align: center;
    margin-bottom: 64px;
    padding: 32px 0;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-description_link {
    color: var(--accent-color, #0088cc);
    text-decoration: underline;
    transition: color 0.2s ease;
    cursor: pointer;

    &:hover {
        color: var(--accent-hover, #0077b3);
    }

    &:active {
        color: #006699;
    }
}

/* =============================
   Pricing Plans
   ============================= */
.pricing-plans {
    margin-bottom: 80px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    padding: 32px 24px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.plan-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg,
    var(--bg-secondary) 0%,
    rgba(0, 136, 204, 0.05) 100%
    );
}

.dark-theme .plan-card.featured {
    background: linear-gradient(135deg,
    var(--bg-secondary) 0%,
    rgba(0, 136, 204, 0.1) 100%
    );
}

.plan-card.starter {
    border-color: #ff9800;
    background: linear-gradient(135deg,
    var(--bg-secondary) 0%,
    rgba(255, 152, 0, 0.08) 100%
    );
    position: relative;
}

.plan-card.starter:hover {
    border-color: #f57c00;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.2);
}

.dark-theme .plan-card.starter {
    background: linear-gradient(135deg,
    var(--bg-secondary) 0%,
    rgba(255, 152, 0, 0.12) 100%
    );
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.starter-badge {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-amount.text-price {
    font-size: 32px;
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.plan-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    text-align: left;
}

.warning-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.2;
}

.warning-text {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.5;
}

.warning-text strong {
    color: #f57c00;
    font-weight: 600;
}

.dark-theme .plan-warning {
    background-color: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.4);
}

.dark-theme .warning-text strong {
    color: #ffb74d;
}

.plan-features {
    flex: 1;
    margin-bottom: 32px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.feature-icon_red {
    background-color: #c82333;
}

.plan-action {
    margin-top: auto;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.plan-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.plan-button.primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.plan-button.primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.plan-button.starter-button {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
    border-color: #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.plan-button.starter-button:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    border-color: #f57c00;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    color: #ffffff;
}

.plan-button:active {
    transform: translateY(0);
}

/* =============================
   FAQ Section
   ============================= */
.pricing-faq {
    margin-bottom: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    padding: 24px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px var(--shadow-light);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =============================
   CTA Section
   ============================= */
.pricing-cta {
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(135deg,
    rgba(0, 136, 204, 0.08) 0%,
    rgba(0, 136, 204, 0.03) 100%
    );
    border-radius: 12px;
    margin-bottom: 40px;
}

.dark-theme .pricing-cta {
    background: linear-gradient(135deg,
    rgba(0, 136, 204, 0.15) 0%,
    rgba(0, 136, 204, 0.08) 100%
    );
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button .button-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.cta-button:hover .button-icon {
    transform: translateX(4px);
}

/* =============================
   Footer
   ============================= */
.pricing-footer {
    margin-top: auto;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 16px 24px;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* =============================
   Responsive Design
   ============================= */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .header-nav {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .pricing-main {
        padding: 24px 12px;
    }

    .pricing-hero {
        margin-bottom: 48px;
        padding: 24px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .plan-card.featured:hover {
        transform: translateY(-4px);
    }

    .plan-header {
        margin-bottom: 24px;
    }

    .plan-name {
        font-size: 24px;
    }

    .price-amount {
        font-size: 42px;
    }

    .price-amount.text-price {
        font-size: 32px;
    }

    .price-period {
        font-size: 16px;
    }

    .plan-warning {
        padding: 10px;
        margin-top: 12px;
    }

    .warning-text {
        font-size: 12px;
    }

    .plan-features {
        margin-bottom: 24px;
    }

    .features-list {
        gap: 12px;
    }

    .feature-item {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .pricing-faq {
        margin-bottom: 60px;
    }

    .faq-item {
        padding: 20px;
    }

    .pricing-cta {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        margin-bottom: 40px;
    }

    .header-nav {
        gap: 10px;
    }

    .nav-link {
        padding: 8px 4px;
    }

    .hero-title {
        font-size: 28px;
    }

    .plan-card {
        padding: 24px 20px;
    }

    .plan-name {
        font-size: 24px;
    }

    .price-amount {
        font-size: 36px;
    }

    .price-amount.text-price {
        font-size: 28px;
    }

    .price-period {
        font-size: 14px;
    }

    .plan-description {
        font-size: 13px;
    }

    .plan-warning {
        padding: 10px;
        margin-top: 12px;
    }

    .warning-icon {
        font-size: 16px;
    }

    .warning-text {
        font-size: 11px;
    }

    .plan-features {
        margin-bottom: 20px;
    }

    .features-list {
        gap: 10px;
    }

    .feature-item {
        font-size: 13px;
        gap: 10px;
    }

    .feature-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .plan-button {
        padding: 12px 20px;
        font-size: 15px;
    }

    .plan-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 24px;
    }

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

