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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9, #f8fafc);
    min-height: 100vh;
}

/* Header */
header {
    background: #14213D;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to bottom right, #FCA311, #FDB750);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(252, 163, 17, 0.3);
}

.logo-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.logo-text p {
    font-size: 0.75rem;
    color: #d1d5db;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid #FCA311;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.login-btn, .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #14213D;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-btn:hover, .logout-btn:hover {
    background: #FCA311;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.hero h2 {
    font-size: 3.75rem;
    font-weight: bold;
    color: #14213D;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.hero-notice {
    display: block;
    max-width: 48rem;
    margin: 0 auto 2rem;
    background: #fee2e2;
    color: #b91c1c;
    border: 2px solid #fca5a5;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.15);
}

/* Video Section */
.video-container {
    max-width: 80rem;
    margin: 0 auto 4rem;
}

.video-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border: 2px solid #FCA311;
}

.video-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.video-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to bottom right, #FCA311, #FDB750);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-header h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #14213D;
}

.video-description {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.billing-label {
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.billing-label.active {
    color: #FCA311;
}

.billing-label.inactive {
    color: #9ca3af;
}

.switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background: #d1d5db;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.3s;
}

.switch.active {
    background: #FCA311;
}

.switch-thumb {
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 9999px;
    transition: transform 0.3s;
}

.switch.active .switch-thumb {
    transform: translateX(1.5rem);
}

.badge {
    background: #FCA311;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.pricing-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-card.popular {
    border: 4px solid #FCA311;
    box-shadow: 0 25px 50px -12px rgba(252, 163, 17, 0.3);
    transform: scale(1.05);
    background: linear-gradient(to bottom right, white, rgba(252, 163, 17, 0.05));
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #FCA311, #FDB750);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon.popular {
    background: linear-gradient(to bottom right, #FCA311, #FDB750);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-icon.normal {
    background: linear-gradient(to bottom right, #14213D, #1a2a4d);
}

.card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #14213D;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.price-box {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.price-box.popular {
    background: linear-gradient(to bottom right, rgba(252, 163, 17, 0.1), rgba(253, 183, 80, 0.1));
    border-color: #FCA311;
}

.price-box.normal {
    background: #f9fafb;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: bold;
}

.price-amount.popular {
    color: #FCA311;
}

.price-amount.normal {
    color: #14213D;
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.savings {
    padding-top: 0.75rem;
    border-top: 2px solid #d1d5db;
    margin-top: 0.75rem;
}

.savings-amount {
    font-size: 0.875rem;
    color: #FCA311;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.savings-monthly {
    font-size: 0.75rem;
    color: #6b7280;
}

.included {
    padding-top: 1rem;
    border-top: 2px solid #d1d5db;
    margin-top: 1rem;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.check-icon {
    width: 1rem;
    height: 1rem;
    color: #FCA311;
}

.description-box {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid;
    margin-bottom: 1.5rem;
}

.description-box.popular {
    background: rgba(252, 163, 17, 0.05);
    border-color: rgba(252, 163, 17, 0.3);
}

.description-box.normal {
    background: rgba(20, 33, 61, 0.05);
    border-color: rgba(20, 33, 61, 0.2);
}

.description-text {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.features-list {
    padding-top: 0.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #FCA311;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-text {
    font-size: 0.875rem;
    color: #374151;
}

.select-button {
    width: 100%;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.select-button.popular {
    background: linear-gradient(to right, #FCA311, #FDB750);
}

.select-button.popular:hover {
    background: linear-gradient(to right, #FDB750, #FCA311);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.select-button.normal {
    background: linear-gradient(to right, #14213D, #1a2a4d);
}

.select-button.normal:hover {
    background: linear-gradient(to right, #1a2a4d, #14213D);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.select-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 2px solid #f3f4f6;
}

.modal-header h2 {
    color: #14213D;
    font-size: 2rem;
}

.modal-body {
    padding: 2rem;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(to bottom right, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    font-weight: bold;
}

.success-message {
    text-align: center;
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2rem;
}

.license-info {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.license-info h3 {
    color: #14213D;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.license-key-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.license-key-box code {
    flex: 1;
    background: white;
    border: 2px solid #FCA311;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: bold;
    color: #FCA311;
    text-align: center;
    letter-spacing: 0.05em;
}

.copy-btn {
    padding: 0.75rem 1.5rem;
    background: #FCA311;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #FDB750;
}

.license-details {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.8;
}

.license-details strong {
    color: #374151;
    margin-right: 0.5rem;
}

.note {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.modal-btn {
    padding: 1rem 3rem;
    background: linear-gradient(to right, #14213D, #1a2a4d);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    background: linear-gradient(to right, #1a2a4d, #14213D);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.modal-btn:disabled {
    background: #9ca3af !important;
    color: #fff !important;
    opacity: 0.8;
    cursor: not-allowed;
    box-shadow: none;
}

.modal-btn.ecpay {
    background: linear-gradient(to right, #10b981, #059669);
}
.modal-btn.ecpay:hover {
    background: linear-gradient(to right, #059669, #10b981);
}

.modal-btn:disabled {
    background: #9ca3af;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: none;
}
.modal-btn.ecpay:disabled {
    background: linear-gradient(to right, #9ca3af, #6b7280);
}

.modal-btn.newebpay {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}
.modal-btn.newebpay:hover {
    background: linear-gradient(to right, #1d4ed8, #2563eb);
}

.modal-btn.newebpay:disabled {
    background: linear-gradient(to right, #9ca3af, #6b7280);
}

.modal-btn.cancel {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.modal-btn.cancel:hover {
    background: linear-gradient(to right, #b91c1c, #dc2626);
}

.modal-btn.crypto {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
}
.modal-btn.crypto:hover {
    background: linear-gradient(to right, #7c3aed, #8b5cf6);
}

.modal-btn.formpay {
    background: linear-gradient(to right, #f59e0b, #f97316);
}
.modal-btn.formpay:hover {
    background: linear-gradient(to right, #f97316, #f59e0b);
}

/* FAQ Section */
.faq-section {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 5rem;
}

.faq-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 3rem;
    border: 2px solid #e5e7eb;
}

.faq-title {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    color: #14213D;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: bold;
    color: #14213D;
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.625;
}

/* Licenses Section Enhancements */
.licenses-section .license-card {
    border-color: #FCA311;
}

.license-tip {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 1rem 0 0; 
    text-align: center;
    display: block;
    clear: both;
}

.license-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.license-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #14213D;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-active { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.status-revoked { background: #fee2e2; color: #991b1b; border: 1px solid #f43f5e; }
.status-expired { background: #e5e7eb; color: #374151; border: 1px solid #9ca3af; }
.status-pending { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }

.key-actions {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem;
    background: white;
    color: #14213D;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.toggle-btn:hover {
    border-color: #FCA311;
    color: #FCA311;
}

.icon-btn .icon {
    width: 20px;
    height: 20px;
}

.eye { color: #14213D; }
.eye-off { color: #9ca3af; }

/* Footer */
footer {
    background: #14213D;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    color: #d1d5db;
}

footer p:last-child {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Footer Contact Info */
footer .contact-info {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

footer .contact-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #FCA311;
    margin-bottom: 1rem;
}

footer .contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

footer .contact-info li {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #d1d5db;
}

footer .contact-info a {
    color: #00c3ff;
    text-decoration: none;
    transition: color 0.3s;
}

footer .contact-info a:hover {
    color: #FCA311;
}

/* Responsive Footer */
@media (max-width: 600px) {
    footer .contact-info {
        text-align: center;
    }
    footer .contact-info ul {
        text-align: center;
        display: block;
    }
}


/* Download & Manual Section */
.download-section .faq-card {
    border-color: #FCA311;
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.download-section .faq-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.download-grid .demo-item {
    grid-column: 1 / -1; /* span full width under two cards */
}
.download-section .faq-item h4 {
    margin-bottom: 0.25rem;
}
.download-section .faq-item p {
    flex: 1;
    margin-bottom: 0.75rem;
}
.download-section .copy-btn {
    align-self: flex-start;
    min-width: 140px;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ad Carousel */
.ad-carousel {
    position: relative;
    width: 100%;
    max-width: 60rem;
    margin: 1rem auto 0;
}

.ad-viewport {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    background: #000;
}

.ad-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease;
}

.ad-slide {
    flex: 0 0 100%;
    height: 100%;
}

.ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: none;
    background: rgba(20, 33, 61, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.ad-nav.prev { left: 1rem; }
.ad-nav.next { right: 1rem; }

.ad-nav:hover { background: rgba(252, 163, 17, 0.9); }

/* Responsive */
@media (max-width: 1400px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.popular {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .ad-carousel { max-width: 100%; margin-top: 1rem; }
    .hero h2 {
        font-size: 2.5rem;
    }

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

    .pricing-card.popular {
        transform: scale(1);
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    /* Stack download section to single column on mobile */
    .download-grid {
        grid-template-columns: 1fr;
    }
    .download-grid .demo-item {
        grid-column: auto;
    }
}
