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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #060608;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadein {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.delay1 {
    animation-delay: 0.2s;
}

.delay2 {
    animation-delay: 0.4s;
}

.delay3 {
    animation-delay: 0.6s;
}

.delay4 {
    animation-delay: 0.8s;
}

/* Header Styles */
.lang-switcher {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
}

.page-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.logo-link {
    font-size: 24px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 48px;
}

.logo {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: -2px;
    margin: 0;
}

.headline {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 900px;
}

.subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 48px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-btn {
    background: #ffffff;
    color: #000000;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.invite-only {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 96px auto 0;
    width: 100%;
}

.faq-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
}

.faq-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 32px;
    text-align: center;
}

.faq-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.7;
}

/* Footer */
.footer {
    margin-top: 96px;
    text-align: center;
    padding: 24px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Login Section */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
}

.login-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.login-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 32px;
}

.message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.info-message {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
}

.login-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.login-footer p {
    margin-bottom: 8px;
}

.login-footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
    padding: 48px 24px;
}

.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.dashboard-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 48px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.card-content {
    color: rgba(255, 255, 255, 0.8);
}

.info-row, .usage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child, .usage-row:last-child {
    border-bottom: none;
}

.info-label, .usage-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.info-value, .usage-value {
    font-size: 16px;
    font-weight: 600;
}

.credits-display {
    text-align: center;
    padding: 24px;
}

.credits-number {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 12px;
}

.credits-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* Top-up Packages */
.topup-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.topup-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.topup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.topup-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.topup-popular {
    border-color: rgba(59, 130, 246, 0.5);
}

.topup-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.topup-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.topup-credits {
    margin-bottom: 8px;
}

.topup-major {
    font-size: 36px;
    font-weight: bold;
    display: block;
}

.topup-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.topup-chat {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.topup-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.4;
    min-height: 2.6rem;
}

.topup-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.topup-btn {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.topup-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Subscription Plans */
.plan-description {
    margin-bottom: 32px;
    text-align: center;
    font-size: 16px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.plan-featured {
    border-color: rgba(59, 130, 246, 0.5);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.plan-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}

.plan-period {
    font-size: 16px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
}

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

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

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

.plan-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.plan-btn-featured {
    background: #ffffff;
    color: #000000;
    border: none;
}

.plan-btn-featured:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.billing-description {
    margin-bottom: 24px;
    font-size: 16px;
}

.stripe-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #ffffff;
    color: #000000;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.stripe-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.billing-disabled {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.dashboard-footer {
    margin-top: 48px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dashboard-footer a:hover {
    color: #ffffff;
}

/* Legal Pages */
.legal-section {
    min-height: 100vh;
    padding: 48px 24px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 12px;
}

.legal-updated {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
}

.legal-content {
    line-height: 1.8;
}

.intro-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.legal-section-item {
    margin-bottom: 32px;
}

.legal-section-item h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.legal-section-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
}

.legal-section-item p, .legal-section-item ul {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section-item ul {
    list-style-position: inside;
    padding-left: 20px;
}

.legal-section-item li {
    margin-bottom: 8px;
}

.legal-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.legal-footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-message {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-message a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn, .cookie-btn-outline {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn {
    background: #ffffff;
    color: #000000;
    border: none;
}

.cookie-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cookie-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 56px;
    }

    .headline {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .faq-box {
        padding: 32px 24px;
    }

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

    .login-container {
        padding: 32px 24px;
    }

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

    .credits-number {
        font-size: 56px;
    }

    .topup-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

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

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn, .cookie-btn-outline {
        flex: 1;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-btn, .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 48px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
}

.modal-header {
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary {
    padding: 14px 32px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.card-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header-with-action .card-title {
    margin-bottom: 0;
}

/* Plan Comparison */
.plan-comparison {
    margin-bottom: 32px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.comparison-table td {
    color: rgba(255, 255, 255, 0.7);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.plan-current {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 32px 24px;
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-header-with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .card-header-with-action .btn-secondary {
        width: 100%;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}
