/**
 * VPN Vietnam - Support Apps CSS
 * @version 1.0.0
 * @date 2025-10-24
 */

/* ===== Variables ===== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
    --white: #ffffff;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --panel-bg: #111827;
    --panel-bg-hover: #1f2937;
    --panel-border: rgba(255, 255, 255, 0.1);
    --text-on-panel: #f8fafc;
    --text-on-panel-muted: #cbd5e1;
    --border-radius: 16px;
    --box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Main Container ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-container h1 {
    color: var(--text-heading);
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
}

.main-container h1 i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* ===== Tab Navigation ===== */
.tab-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
    border-bottom: none;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    color: var(--text-body);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.tab-button:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-heading);
    transform: translateY(-3px);
}

.tab-button.active {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.tab-button i {
    font-size: 1.3rem;
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* ===== Download Box ===== */
.download-box {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0;
    color: #0f172a;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.download-box h2 {
    color: #0f172a;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #0f172a;
}

.download-box h2 i {
    margin-right: 12px;
}

.version-info {
    font-size: 18px;
    margin-bottom: 30px;
    color: #475569;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.download-button.primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: var(--white);
}

.download-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.download-button.android {
    background: linear-gradient(135deg, #34c759 0%, #1a9e4a 100%);
    color: var(--white);
}

.download-button.android:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.45);
}

.download-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.download-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.download-button i {
    margin-right: 10px;
}

.system-info {
    margin-top: 20px;
    font-size: 15px;
    color: #475569;
}

.system-info i {
    margin-right: 8px;
}

/* ===== Features Section ===== */
.features-section {
    margin: 40px 0;
}

.features-section h2 {
    color: var(--text-heading);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    background: #f8fafc;
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-color);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    color: #0f172a;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

/* ===== Platform Section ===== */
.platform {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    margin: 25px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.platform h2 {
    color: #0f172a;
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 20px;
}

.platform h2 i {
    color: var(--primary-color);
}

.platform ol,
.platform ul {
    line-height: 1.8;
    margin-left: 20px;
    color: var(--text-body);
}

.platform li {
    margin-bottom: 12px;
}

.platform-separator {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Step Box ===== */
.step-box {
    background: #f8fafc;
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    padding: 25px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.step-box h3 {
    color: #0f172a;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    font-size: 18px;
    flex-shrink: 0;
}

.step-box ol,
.step-box ul {
    line-height: 1.8;
    color: #334155;
}

.step-box li {
    margin-bottom: 10px;
    color: #334155;
}

.step-box p.step-desc {
    color: #475569;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
}

/* ===== Step Images ===== */
.step-image {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
}

.step-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.step-image img:hover {
    transform: scale(1.02);
}

/* ===== Alert Boxes ===== */
.warning-box,
.success-box,
.info-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    border-left: 4px solid;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning-color);
    color: var(--warning-color);
}

.success-box {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.success-box strong {
    color: var(--success-color);
}

.info-box {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: var(--info-color);
    color: var(--info-color);
}

/* ===== Code Styling ===== */
.step-box code {
    background: rgba(15, 23, 42, 0.08);
    color: #be185d;
}

code {
    background: rgba(15, 23, 42, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: 'Space Grotesk', monospace;
    color: #be185d;
    font-size: 14px;
}

pre {
    background: #0f0f23;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Support Section ===== */
.support-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    color: var(--text-body);
    border-left: none;
}

.support-section h2 {
    color: var(--text-heading);
}

.support-intro {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.support-list {
    font-size: 16px;
    line-height: 2.2;
    list-style: none;
    padding-left: 0;
    color: var(--text-body);
}

.support-list li {
    margin-bottom: 15px;
}

.support-list i {
    margin-right: 10px;
    width: 25px;
    text-align: center;
    color: var(--primary-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .tab-navigation {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        justify-content: flex-start;
    }

    .tab-button {
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 14px;
    }

    .download-box {
        padding: 25px 20px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-button {
        width: 100%;
    }
}

/* ===== Modern Footer (support-apps only) ===== */
.footer-modern {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.18), transparent 45%);
    pointer-events: none;
}

.footer-modern-container {
    position: relative;
    z-index: 1;
    padding-top: 24px;
    padding-bottom: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 20px;
}

.footer-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--white);
}

.brand-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.brand-desc {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-list p {
    margin: 0 0 10px;
    color: var(--white);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
}

.contact-list a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-list a:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

.footer-logo {
    margin-top: 10px;
    display: inline-flex;
}

.footer-logo img {
    width: 180px;
    height: auto;
    opacity: 0.95;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #dbeafe;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-links i {
    color: var(--primary-color);
    width: 16px;
}

.payment-icons {
    display: flex;
    gap: 12px;
    font-size: 26px;
    margin-bottom: 12px;
}

.payment-icons i {
    color: #c7d2fe;
}

.payment-note {
    margin: 0 0 12px;
    color: var(--gray);
    font-size: 14px;
}

.certification-link {
    display: inline-flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.certification-link img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 14px;
    position: relative;
    z-index: 1;
}

.footer-bottom-modern p {
    color: #cbd5e1;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-card {
        padding: 18px 16px;
    }

    .brand-card h3 {
        font-size: 20px;
    }
}

/* ===== Footer Conflict Fix (support-apps) ===== */
.sa-footer .sa-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 20px;
}

.sa-footer .sa-footer-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 100%;
}

.sa-footer .sa-footer-links {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.sa-footer .sa-footer-links li {
    margin-bottom: 10px;
}

.sa-footer .sa-footer-links a {
    color: #dbeafe;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.sa-footer .sa-footer-links a:hover {
    color: var(--white);
}

.sa-footer .sa-footer-logo {
    display: inline-flex !important;
    margin-top: 12px;
    width: auto !important;
    max-width: 180px !important;
}

.sa-footer .sa-footer-logo img {
    display: block;
    width: 180px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

.sa-footer .sa-contact-list p {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sa-footer .sa-payment-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 26px;
}

.sa-footer .sa-certification-link {
    display: inline-flex;
    max-width: 180px;
}

.sa-footer .sa-certification-link img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1100px) {
    .sa-footer .sa-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sa-footer .sa-footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Override style.css — chữ đen trên nền sáng (support-apps) */
body.page-support-apps .main-container .features-section h2,
body.page-support-apps .main-container .platform h2,
body.page-support-apps .main-container .platform.support-section h2 {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background: none !important;
    background-clip: border-box !important;
}

body.page-support-apps .main-container .feature-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.page-support-apps .main-container .feature-card h3 {
    color: #0f172a !important;
}

body.page-support-apps .main-container .feature-card p {
    color: #334155 !important;
}

body.page-support-apps .main-container .feature-card i {
    color: #6366f1 !important;
    -webkit-text-fill-color: #6366f1 !important;
    background: none !important;
}

body.page-support-apps .main-container .download-box {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.page-support-apps .main-container .download-box h2 {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background: none !important;
}

body.page-support-apps .main-container .version-info,
body.page-support-apps .main-container .system-info {
    color: #475569 !important;
    opacity: 1 !important;
}

body.page-support-apps .main-container .step-box h3 {
    color: #0f172a !important;
}

body.page-support-apps .main-container .step-box ol,
body.page-support-apps .main-container .step-box ul,
body.page-support-apps .main-container .step-box li,
body.page-support-apps .main-container .step-box p.step-desc {
    color: #334155 !important;
}

body.page-support-apps .main-container .platform ol,
body.page-support-apps .main-container .platform ul,
body.page-support-apps .main-container .platform li {
    color: #334155 !important;
}

body.page-support-apps .main-container .success-box,
body.page-support-apps .main-container .success-box strong,
body.page-support-apps .main-container .success-box ul,
body.page-support-apps .main-container .success-box li {
    color: #047857 !important;
}

body.page-support-apps .main-container .warning-box,
body.page-support-apps .main-container .warning-box p {
    color: #b45309 !important;
}