/* Affi.vn Modern Frontend CSS */
/* ... (Imports and Variables kept but updated) ... */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --dta-primary: #6366f1;
    --dta-primary-hover: #4f46e5;
    --dta-secondary: #0ea5e9;
    --dta-accent: #ec4899;
    --dta-dark-bg: #0f172a;
    --dta-card-bg: #1e293b;
    --dta-card-border: #334155;
    --dta-text: #f8fafc;
    --dta-text-muted: #94a3b8;
    --dta-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --dta-gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --dta-gradient-2: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    --dta-gradient-3: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --dta-success: #10b981;
    --dta-warning: #f59e0b;
    --dta-danger: #ef4444;
    --dta-font: 'Inter', system-ui, -apple-system, sans-serif;
    --dta-radius: 12px;
    --dta-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --dta-nav-height: 70px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
}

/* CSS Logo */
.dta-css-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.dta-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dta-logo-shape {
    width: 20px;
    height: 20px;
    border: 2px solid #6366f1;
    border-radius: 6px;
    transform: rotate(45deg);
    position: relative;
}

.dta-logo-shape::after {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 8px;
    height: 8px;
    background: #ec4899;
    border-radius: 50%;
    box-shadow: 0 0 10px #ec4899;
    transition: all 0.3s ease;
}

.dta-css-logo:hover .dta-logo-shape::after {
    animation: dta-orbit 2s linear infinite;
}

@keyframes dta-orbit {
    0% {
        top: -6px;
        right: -6px;
    }

    25% {
        top: -6px;
        right: 18px;
    }

    50% {
        top: 18px;
        right: 18px;
    }

    75% {
        top: 18px;
        right: -6px;
    }

    100% {
        top: -6px;
        right: -6px;
    }
}

.dta-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1;
}

.dta-logo-text span {
    color: #6366f1;
}

/* Base Styles (Scoped to .dta-frontend-wrapper to avoid conflicts) */
.dta-frontend-wrapper {
    font-family: var(--dta-font);
    color: var(--dta-text);
    background-color: var(--dta-dark-bg);
    line-height: 1.6;
    min-height: 100vh;
    box-sizing: border-box;

    /* FORCE FULL WIDTH BREAKOUT */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    overflow-x: hidden;
}

.dta-frontend-wrapper *,
.dta-frontend-wrapper *::before,
.dta-frontend-wrapper *::after {
    box-sizing: inherit;
}

.dta-frontend-wrapper h1,
.dta-frontend-wrapper h2,
.dta-frontend-wrapper h3 {
    margin-top: 0;
    font-weight: 700;
    color: #fff;
}

.dta-frontend-wrapper a {
    color: var(--dta-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.dta-frontend-wrapper a:hover {
    color: var(--dta-primary);
}

/* Utilities */
.dta-container {
    max-width: 1280px;
    /* Increased from 1200px */
    margin: 0 auto;
    padding: 0 24px;
}

.dta-container-fluid {
    width: 100%;
    padding: 0 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.mt-5 {
    margin-top: 3rem;
}

.dta-text-gradient {
    background: var(--dta-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.dta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--dta-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.dta-btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.dta-btn-primary {
    background: var(--dta-gradient);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.dta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.23);
}

.dta-btn-outline {
    background: transparent;
    border: 2px solid var(--dta-card-border);
    color: var(--dta-text) !important;
}

.dta-btn-outline:hover {
    border-color: var(--dta-primary);
    color: var(--dta-primary) !important;
}

/* Navbar */
.dta-navbar {
    height: var(--dta-nav-height);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--dta-card-border);
}

.dta-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.dta-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white !important;
}

.dta-nav-links a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--dta-text-muted) !important;
}

.dta-nav-links a:hover,
.dta-nav-links a.active {
    color: white !important;
}

/* Hero Section - Full Width */
.dta-hero.full-width {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 180px 0 120px;
    background: radial-gradient(circle at 50% 10%, #2e1065 0%, var(--dta-dark-bg) 60%);
}

.dta-hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.dta-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dta-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.dta-hero h1 {
    font-size: 3.5rem;
    /* Reduced from 4rem */
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.dta-hero p {
    font-size: 1.25rem;
    color: var(--dta-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.dta-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Trust Badges */
.dta-trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    color: var(--dta-text-muted);
    font-size: 0.95rem;
}

.dta-trust-badges i {
    color: var(--dta-success);
    margin-right: 8px;
}

/* Stats Section */
.dta-section {
    padding: 80px 0;
}

.dta-stats {
    background: var(--dta-card-bg);
    border-top: 1px solid var(--dta-card-border);
    border-bottom: 1px solid var(--dta-card-border);
}

.dta-stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.dta-stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--dta-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--dta-text-muted);
    font-size: 1rem;
    margin-top: 5px;
}

.dta-stat-divider {
    width: 1px;
    height: 60px;
    background: var(--dta-card-border);
    display: none;
}

@media(min-width: 900px) {
    .dta-stat-divider {
        display: block;
    }
}

@media (max-width: 600px) {
    .dta-css-logo span {
        display: none;
    }
}

/* Landing Page Utilities */
.dta-glass-box {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dta-glass-box h3,
.dta-glass-box h4 {
    color: #fff;
    margin-top: 0;
}

.dta-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .dta-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dta-highlight-text {
    color: #818cf8;
    font-weight: bold;
}

/* Campaign Landing Overrides */
.camp-body ul li {
    margin-bottom: 10px;
    color: #cbd5e1;
}

.camp-body ul li i,
.camp-body ul li strong {
    color: #fff;
}

/* Features & Cards */
.dta-bg-dark {
    background: var(--dta-dark-bg);
}

.dta-section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dta-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.dta-section-header p {
    font-size: 1.1rem;
    color: var(--dta-text-muted);
}

.dta-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dta-feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--dta-card-border);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.dta-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(30, 41, 59, 0.8);
}

.dta-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.dta-feature-card p {
    color: var(--dta-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.dta-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dta-primary);
    margin-bottom: 24px;
}

.gradient-1 {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.gradient-2 {
    background: rgba(236, 72, 153, 0.1);
    color: #f472b6;
}

.gradient-3 {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

/* Process Section */
.dta-bg-gradient {
    background: linear-gradient(180deg, var(--dta-dark-bg) 0%, #1e1b4b 100%);
}

.dta-process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    position: relative;
    gap: 30px;
}

.dta-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--dta-card-bg);
    border: 2px solid var(--dta-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.dta-step-connector {
    flex: 1;
    height: 2px;
    background: var(--dta-card-border);
    margin-top: 30px;
    display: none;
}

@media(min-width: 768px) {
    .dta-step-connector {
        display: block;
    }
}

.dta-btn-white {
    background: white;
    color: var(--dta-primary) !important;
    font-weight: 700;
    padding: 16px 40px;
    font-size: 1.1rem;
}

.dta-btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Auth Form */
.dta-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dta-dark-bg);
    padding: 20px;
}

.dta-auth-box {
    background: var(--dta-card-bg);
    padding: 40px;
    border-radius: var(--dta-radius);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--dta-card-border);
    box-shadow: var(--dta-shadow);
}

.dta-form-group {
    margin-bottom: 20px;
}

.dta-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dta-text-muted);
}

.dta-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dta-card-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.2s;
}

.dta-input:focus {
    outline: none;
    border-color: var(--dta-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.dta-footer {
    background: #020617;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.dta-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.dta-footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 16px;
}

.dta-footer-logo span {
    color: var(--dta-primary);
}

.dta-footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.dta-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dta-footer ul li {
    margin-bottom: 12px;
}

.dta-footer ul li a {
    color: var(--dta-text-muted);
    transition: color 0.2s;
}

.dta-footer ul li a:hover {
    color: white;
}

.dta-social-links {
    display: flex;
    gap: 16px;
}

.dta-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.dta-social-links a:hover {
    background: var(--dta-primary);
    transform: translateY(-3px);
}

.dta-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dta-container-fluid {
        padding: 0 20px;
    }

    /* Fix Hero Title */
    .dta-hero h1 {
        font-size: 2rem;
        /* Reduced from 2.5rem */
        line-height: 1.3;
        padding: 0 10px;
    }

    .dta-hero p {
        font-size: 1rem;
    }

    .dta-stats-grid {
        gap: 30px;
    }

    .dta-stat-divider {
        display: none;
    }

    .dta-process-steps {
        flex-direction: column;
    }

    .dta-step-connector {
        display: none;
    }

    .dta-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .dta-social-links {
        justify-content: center;
    }

    .dta-nav-links {
        display: none;
    }

    /* Hero Actions Mobile */
    .dta-hero-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }

    .dta-hero-actions .dta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        /* Reduced padding */
        font-size: 1rem;
        /* Smaller font */
        height: auto;
    }

    /* Ensure Icon has space but doesn't break line */
    .dta-btn i {
        margin-left: 8px;
    }
}