/* TaskCash - Custom Global Styles */
/* Tailwind handles most styling; this file covers elements Tailwind can't easily do */

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f1420; }
::-webkit-scrollbar-thumb { background: #2d3a55; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3d4e6e; }

/* ── Selection ── */
::selection { background: var(--primary); color: white; }

/* ── Nav Links ── */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-active { color: #fff !important; border-bottom-color: var(--primary) !important; }

/* ── Mobile Links ── */
.mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.2s;
}
.mobile-link:hover { color: white; background: rgba(255,255,255,0.06); }

/* ── Footer Links ── */
.footer-link {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s;
}
.footer-link:hover { color: white; }

/* ── Social Icon ── */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #9ca3af;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
}
.social-icon:hover { background: var(--primary); color: white; border-color: transparent; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #0f1420;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-dim); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    border: 1.5px solid var(--primary);
    transition: all 0.2s;
    font-size: 0.875rem;
}
.btn-outline:hover { background: var(--primary); color: #0f1420; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    color: #d1d5db;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    font-size: 0.875rem;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }

/* ── Cards ── */
.card {
    background: #141925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    transition: all 0.25s;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.card-flat {
    background: #141925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
}

/* ── Offer Cards ── */
.offer-card {
    background: #141925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}
.offer-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,208,132,0.15); }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-primary { background: var(--primary-dim); color: var(--primary); }
.badge-yellow  { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-red     { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-blue    { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-gray    { background: rgba(107,114,128,0.15); color: #6b7280; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(255,255,255,0.07); }
.data-table td { padding: 14px 16px; font-size: 0.875rem; color: #d1d5db; border-bottom: 1px solid rgba(255,255,255,0.04); }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Form Inputs ── */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
}
.form-input:focus { border-color: var(--primary); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px var(--primary-dim); }
.form-input::placeholder { color: #4b5563; }

.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: #9ca3af; margin-bottom: 6px; letter-spacing: 0.03em; }

.form-select {
    appearance: none;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
.form-select:focus { border-color: var(--primary); }
.form-select option { background: #1a2035; color: white; }

/* ── Tabs ── */
.tab-btn {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
}
.tab-btn:hover { color: white; background: rgba(255,255,255,0.05); }
.tab-btn.active { color: var(--primary); background: var(--primary-dim); border-color: var(--primary); }

/* ── Progress Bar ── */
.progress-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: var(--primary); transition: width 0.6s ease; }

/* ── Stat Card ── */
.stat-card {
    background: #141925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px;
}

/* ── Glow Effect ── */
.glow { box-shadow: 0 0 30px var(--primary-dim); }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px var(--primary-dim); }
    50%       { box-shadow: 0 0 25px var(--primary); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ── Ticker ── */
.ticker-wrapper { overflow: hidden; white-space: nowrap; }
.ticker-content { display: inline-block; animation: ticker 30s linear infinite; }
.ticker-content:hover { animation-play-state: paused; }

/* ── Glass Card ── */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
}

/* ── FAQ Accordion ── */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-question { padding: 16px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: white; font-size: 0.95rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: #9ca3af; font-size: 0.9rem; line-height: 1.6; }
.faq-answer.open { max-height: 200px; padding-bottom: 16px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ── Payout ticker ── */
.payout-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #141925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-right: 12px;
}

/* ── Utility ── */
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.no-select { user-select: none; }
