/* ========================================
   KTAlive - Premium Stylesheet
   Dark + Pink/Purple Gradient Theme
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg-dark: #06060c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --pink: #e84393;
    --purple: #a855f7;
    --gradient: linear-gradient(135deg, #e84393, #a855f7, #6c5ce7);
    --gradient-subtle: linear-gradient(135deg, rgba(232,67,147,0.12), rgba(168,85,247,0.12));
    --glow-pink: 0 0 60px rgba(232, 67, 147, 0.15);
    --glow-purple: 0 0 60px rgba(168, 85, 247, 0.15);
    --text: #e8e8ed;
    --text-dim: #8888a0;
    --text-muted: #55556a;
    --radius: 16px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 16px 0;
    background: rgba(6, 6, 12, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s;
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px; font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-size: 14px; color: var(--text-dim); font-weight: 500;
    transition: color 0.3s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
    padding: 10px 24px !important;
    background: var(--gradient) !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 600 !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--glow-pink); }

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; right: -30%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(232,67,147,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 12s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute; bottom: -40%; left: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 15s ease-in-out infinite reverse;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 40px); }
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(232,67,147,0.15);
    border-radius: 50px;
    font-size: 13px; font-weight: 600;
    color: var(--pink);
    margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--pink); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px; color: var(--text-dim);
    max-width: 520px; margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-glow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 50px; font-size: 16px;
    font-weight: 700; border: none; cursor: pointer;
    transition: all 0.3s;
}
.btn-glow.primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 30px rgba(232,67,147,0.25);
}
.btn-glow.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(232,67,147,0.4);
}
.btn-glow.secondary {
    background: rgba(255,255,255,0.05); color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-glow.secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ===== SECTION COMMON ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag {
    display: inline-block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--pink); margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-header p { color: var(--text-dim); max-width: 550px; margin: 0 auto; font-size: 16px; }

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232,67,147,0.2);
    box-shadow: var(--glow-pink);
}

/* ===== PLATFORMS ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.platform-card {
    padding: 32px 20px;
    text-align: center;
}
.platform-card .icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: var(--gradient-subtle);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.platform-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.platform-card p { font-size: 12px; color: var(--text-muted); }

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; counter-reset: step;
}
.step-card { padding: 32px; counter-increment: step; position: relative; }
.step-card::before {
    content: counter(step, decimal-leading-zero);
    font-family: 'Outfit', sans-serif;
    font-size: 48px; font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0.3;
    display: block; margin-bottom: 16px;
}
.step-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); }

/* ===== OFFERS ===== */
.offers-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.offer-card { padding: 28px; }
.offer-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.offer-logo {
    width: 50px; height: 50px; border-radius: 12px;
    background: var(--gradient-subtle);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.offer-logo img { width: 100%; height: 100%; object-fit: cover; }
.offer-title { font-size: 18px; font-weight: 700; }
.offer-platform { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.offer-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
.offer-earning {
    display: inline-block; padding: 8px 16px;
    background: var(--gradient-subtle);
    border-radius: 50px;
    font-size: 14px; font-weight: 700;
    color: var(--pink);
    margin-bottom: 16px;
}
.offer-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.like-btn, .rating-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 50px;
    font-size: 13px; cursor: pointer;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.2s;
}
.like-btn:hover { border-color: rgba(255,80,80,0.3); color: #ff5050; }
.like-btn.liked { background: rgba(255,80,80,0.1); border-color: rgba(255,80,80,0.3); color: #ff5050; }
.rating-display { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
.stars { color: #ffd700; letter-spacing: 2px; }

/* Rating modal */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 2000;
    align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #12121e; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    max-width: 400px; width: 90%;
}
.modal h3 { margin-bottom: 16px; }
.star-select { display: flex; gap: 8px; margin-bottom: 16px; }
.star-select span {
    font-size: 32px; cursor: pointer; opacity: 0.3;
    transition: opacity 0.2s, transform 0.2s;
}
.star-select span:hover, .star-select span.active { opacity: 1; transform: scale(1.2); }

/* ===== APPLY FORM ===== */
.apply-section { background: rgba(232,67,147,0.03); }
.apply-form {
    max-width: 600px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-dim); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff; font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    outline: none; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--pink);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-btn {
    width: 100%; padding: 16px;
    background: var(--gradient); color: #fff;
    border: none; border-radius: 50px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,67,147,0.3);
}
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== FOOTER ===== */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.footer p { color: var(--text-muted); font-size: 13px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 60px; height: 60px;
    background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.3s;
    animation: whatsappPulse 3s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 40px rgba(37,211,102,0.6); }
}

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 100px; right: 28px;
    padding: 14px 24px;
    background: #12121e;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: rgba(0,200,0,0.2); color: #51cf66; }
.toast.error { border-color: rgba(255,0,0,0.2); color: #ff6b6b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(6,6,12,0.98);
        padding: 24px;
        border-bottom: 1px solid var(--border);
    }
    .hero { padding: 100px 0 60px; }
    .hero-buttons { flex-direction: column; }
    .btn-glow { justify-content: center; }
    .offers-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}
