/* Landing Page Styles */

.landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Landing Header */
.landing-header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999!important;
    padding: 1rem 0;
}

/* Mobile: Header trượt theo thay vì sticky */
@media (max-width: 768px) {
    .landing-header {
        position: relative !important;
        top: auto !important;
    }
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.landing-nav .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    transition: all 0.2s;
    z-index: 9999!important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999!important;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
    z-index: 9999!important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

/* Hiển thị btn-container trên desktop như inline-flex */
.nav-links .btn-container {
    display: inline-flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: none;
    align-items: center;
}

.nav-links .btn-container .btn {
    width: auto;
    min-width: 120px;
    padding: 0.5rem 1.25rem;
    margin: 0;
    font-size: 0.9375rem;
    min-height: 40px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .btn-container .btn.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links .btn-container .btn.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.nav-links .btn-container .btn.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.nav-links .btn-container .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Ẩn nút đóng menu trên desktop */
.mobile-menu-close {
    display: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 44px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Features Section */
.features-section {
    padding: 1.5rem 0 3rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Benefits Section */
.benefits-section {
    padding: 1.5rem 0 3rem 0;
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefit-item {
    position: relative;
    padding-left: 4rem;
    padding-right: 1rem;
}

.benefit-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.2;
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Pricing Section */
.pricing-section {
    padding: 1.5rem 0 3rem 0;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.trial {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.02) 100%);
}

.pricing-card.trial .price-amount {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.price-save {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header .price-save {
    display: block;
    margin-top: 0.75rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    padding: 1.5rem 0 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Footer */
.landing-footer {
    background: #1a1a1a;
    color: #999;
    padding: 4rem 0 2rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 5px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
}

.footer-bottom p {
    margin: 0;
}

/* Active Nav Link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Login/Register Page with Header */
.login-page .landing-header {
    position: relative;
    box-shadow: none;
    width: 100%;
}

.login-page .login-container {
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    header.landing-header,
    .landing-header {
        position: relative !important;
        top: auto !important;
        transform: none !important;
    }
    
    .landing-nav {
        padding: 0 1rem;
    }
    
    .landing-nav .logo a {
        font-size: 1.25rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgb(24 17 17 / 95%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 4rem 1.5rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease-in-out;
        z-index: 9999!important;
        overflow-y: auto;
        touch-action: pan-y pinch-zoom;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Ngăn chặn swipe trên toàn bộ body khi ở mobile */
    @media (max-width: 768px) {
        body {
            touch-action: pan-y pinch-zoom;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
        }
    }
    
    .nav-links.active {
        right: 0;
        z-index: 9999!important;
    }
    
    /* Nút đóng menu mobile - chỉ hiển thị trên mobile */
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 215, 0, 0.3);
        border-radius: 8px;
        padding: 0.5rem;
        cursor: pointer;
        color: #FFD700;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        transition: all 0.3s;
        z-index: 10000;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 215, 0, 0.2);
        border-color: #FFD700;
        transform: rotate(90deg);
    }
    
    .mobile-menu-close svg {
        width: 24px;
        height: 24px;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        display: flex;
        align-items: center;
        min-height: 44px;
        color: #FFD700;
    }
    
    .nav-links a:not(.btn) {
        padding-left: 0;
    }
    
    /* Container cho các nút trong nav-links active - chỉ hiển thị trên mobile */
    .nav-links .btn-container {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
        width: 100%;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links .btn {
        width: 240px;
        text-align: center;
        padding: 0.875rem 2rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1rem;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: none;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Nút Đăng nhập (btn-outline) - cùng style với btn-primary */
    .nav-links .btn.btn-outline {
        background: rgba(255, 255, 255, 0.08);
        border: 2px solid rgba(255, 215, 0, 0.6);
        color: #FFD700;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
    }
    
    .nav-links .btn.btn-outline:hover {
        background: rgba(255, 215, 0, 0.15);
        border-color: #FFD700;
        color: #FFFFFF;
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
        transform: translateY(-2px);
    }
    
    /* Nút Đăng ký dùng thử (btn-primary) - cùng style với btn-outline */
    .nav-links .btn.btn-primary {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        border: 2px solid transparent;
        color: #000000;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }
    
    .nav-links .btn.btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .features-section,
    .benefits-section,
    .pricing-section {
        padding: 2rem 0;
    }
    
    .features-grid,
    .benefits-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .feature-card h3,
    .benefit-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p,
    .benefit-item p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .benefit-item {
        padding-left: 3rem;
        padding-right: 0;
    }
    
    .benefit-number {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
        border-width: 2px;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .pricing-header h3 {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pricing-features {
        margin-bottom: 1.5rem;
    }
    
    .pricing-features li {
        padding: 0.625rem 0;
        font-size: 0.9375rem;
    }
    
    .price-save {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
        margin-top: 0.5rem;
    }
    
    .pricing-card.trial .price-amount {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 0.9375rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding: 5px 1rem 0 1rem;
    }
    
    /* Đảm bảo nút Google có cùng màu trên mobile như desktop */
    .login-box .btn-google,
    .social-login .btn-google {
        background: #654321 !important;
        color: white !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .login-box .btn-google:hover,
    .social-login .btn-google:hover {
        background: #4a2c1a !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .benefits-grid,
    .pricing-grid {
        gap: 1.25rem;
    }
    
    .feature-card,
    .pricing-card {
        padding: 1.25rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
    }
}

/* Override cuối cùng để đảm bảo header trượt theo trên mobile */
@media (max-width: 768px) {
    header.landing-header,
    .landing-header,
    body .landing-header {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        will-change: auto !important;
    }
}

