/* =============================================
   Tik2BD Pro — Professional Stylesheet
   ============================================= */

:root {
    --primary: #7c3aed;
    --primary-light: #a855f7;
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --bg: #07070f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(124, 58, 237, 0.5);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
    --shadow-cyan: 0 0 40px rgba(6, 182, 212, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== ANIMATED BACKGROUND BLOBS ===== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #7c3aed, transparent);
    top: -200px; left: -200px;
    animation-delay: 0s;
}
.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #06b6d4, transparent);
    top: 30%; right: -150px;
    animation-delay: -4s;
}
.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: 10%; left: 20%;
    animation-delay: -8s;
    opacity: 0.07;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 1.5rem;
    background: rgba(7, 7, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}
.logo-text span { color: var(--cyan-light); }
.logo-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-top: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-cta {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124,58,237,0.3); }
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 140px 1.5rem 80px;
    text-align: center;
}
.hero-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.3px;
}
.badge-dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}
.hero-gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* ===== DOWNLOADER BOX ===== */
.downloader-box {
    width: 100%;
    max-width: 680px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: border-color 0.3s;
}
.downloader-box:focus-within {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1), var(--shadow-glow);
}
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    transition: border-color 0.2s;
}
.input-wrapper.valid { border-color: rgba(6,182,212,0.5); }
.input-wrapper.invalid { border-color: rgba(239,68,68,0.5); }
.input-icon { color: var(--text-muted); flex-shrink: 0; }
#urlInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0.6rem 0;
    min-width: 0;
}
#urlInput::placeholder { color: var(--text-muted); }
.input-action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
    background: rgba(255,255,255,0.07);
    color: var(--text-secondary);
}
.input-action-btn:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.input-action-btn.danger { color: #f87171; }
.input-action-btn.danger:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.hidden { display: none !important; }

.download-main-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}
.download-main-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.download-main-btn:hover:not(:disabled)::before { opacity: 1; }
.download-main-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}
.download-main-btn:active:not(:disabled) { transform: translateY(0); }
.download-main-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== STATS ===== */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.5rem;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}
@media (max-width: 480px) {
    .hero-stats { gap: 1rem; padding: 0.875rem 1rem; }
    .stat-number { font-size: 1.1rem; }
}

/* ===== RESULT AREA ===== */
#resultArea { width: 100%; max-width: 680px; }

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===== Video Result Card ===== */
.result-meta {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0;
}
.result-info {
    flex: 1;
    min-width: 0;
}
.result-info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}
.result-author {
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 500;
    display: block;
    margin-bottom: 0.6rem;
}

/* ── Thumbnail with overlay buttons ── */
.video-thumb-wrap {
    position: relative;
    width: 120px;
    min-width: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    flex-shrink: 0;
    aspect-ratio: 9 / 16;
}
.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-overlay-row {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
}
.thumb-dl-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 0;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, opacity 0.15s;
    width: 100%;
}
.thumb-dl-pill:active { transform: scale(0.95); }
.thumb-dl-pill.hd {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
}
.thumb-dl-pill.sd {
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}
.thumb-dl-pill.disabled {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.4);
    cursor: default;
}
.thumb-dl-pill:not(.disabled):hover { opacity: 0.85; }
/* ===== Photo Gallery Grid ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.photo-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.photo-preview {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.photo-card:hover .photo-preview img {
    transform: scale(1.05);
}
.photo-broken {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}
.photo-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: white;
    transition: opacity 0.2s;
}
.photo-dl-btn:hover { opacity: 0.85; }
@media (max-width: 480px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.hd-remaining-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.hd-lock-box {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid var(--border);
}

.hd-lock-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.hd-lock-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.result-btn.sd:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Loading */
.loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(124,58,237,0.2);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.error-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideUp 0.3s ease;
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 90px 1.5rem;
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-tag {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}
.section-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.step-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.step-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.step-card:hover::before { opacity: 1; }
.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}
.step-icon-wrap {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-light);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.step-arrow { color: var(--text-muted); flex-shrink: 0; }
@media (max-width: 768px) {
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
}

/* ===== FEATURES ===== */
.features-section {
    background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04) 50%, transparent);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124,58,237,0.25);
    transform: translateY(-3px);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon.purple { background: rgba(124,58,237,0.15); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.2); }
.feature-icon.cyan { background: rgba(6,182,212,0.12); color: var(--cyan-light); border: 1px solid rgba(6,182,212,0.2); }
.feature-icon.green { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.feature-icon.orange { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.2); }
.feature-icon.pink { background: rgba(236,72,153,0.12); color: #f472b6; border: 1px solid rgba(236,72,153,0.2); }
.feature-icon.blue { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(124,58,237,0.3); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-item.open .faq-question { color: var(--primary-light); }
.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--primary-light); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 1.25rem;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 1.25rem 1.1rem;
}
.faq-answer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-logo { margin-bottom: 0.875rem; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; }
.footer-links-group h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.footer-links-group a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}
.footer-links-group a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 260px;
    max-width: 340px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.info { border-color: rgba(124,58,237,0.3); }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast.success .toast-icon { color: #4ade80; }
.toast.error .toast-icon { color: #f87171; }
.toast.info .toast-icon { color: var(--primary-light); }
.toast.hide { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

@media (max-width: 480px) {
    .section { padding: 60px 1.25rem; }
    .hero-section { padding: 110px 1.25rem 60px; }
    .toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
    .toast { min-width: unset; max-width: 100%; }
}
