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

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --bg-gradient: radial-gradient(circle at top, #0f172a 0%, #020617 100%);
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(2, 6, 23, 0.8);
    --input-border: rgba(255, 255, 255, 0.12);
    --success-color: #10b981;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main) !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8px;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 16px);
}

main {
    flex: 1;
}

/* Downloader Card Glassmorphism */
.card-downloader {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 50px -10px rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-downloader:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 60px 0 rgba(79, 70, 229, 0.25);
}

/* Premium Inputs */
.input-group-lg .form-control,
.input-group-lg .form-select,
.input-group-lg .btn {
    height: 3.8rem;
    border-radius: 16px !important;
    border: 1.5px solid var(--input-border);
    background-color: var(--input-bg) !important;
    color: var(--text-main) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group-lg .form-control::placeholder {
    color: #4b5563;
}

.input-group-lg .form-control:focus,
.input-group-lg .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background-color: rgba(2, 6, 23, 0.9) !important;
}

/* Submit Buttons */
.btn-primary {
    font-weight: 700;
    background: var(--primary-gradient);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.5);
    background: var(--primary-gradient);
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Fake Ad Buttons Cleaned Up but Retaining Functionality */
.btn-fake-ad {
    background: linear-gradient(45deg, #ef4444, #f97316);
    border: none;
    color: white;
    font-weight: 700;
    animation: pulse-ad 2.5s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.btn-fake-ad:hover {
    transform: translateY(-2px) scale(1.01);
    color: white;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.btn-fake-ad-alt {
    background: linear-gradient(45deg, #10b981, #06b6d4);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 16px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-fake-ad-alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    color: white;
}

@keyframes pulse-ad {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Badges list for platforms */
.badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge.text-bg-primary {
    background: rgba(79, 70, 229, 0.15) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge:hover {
    transform: translateY(-3px);
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.ad-container {
    background: rgba(2, 6, 23, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.ad-container::before {
    content: "Advertisement";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #0f172a;
    padding: 0 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fake-progress-container {
    height: 6px;
    width: 100%;
    background-color: var(--input-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    display: none;
}

.fake-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.1s linear;
}

footer {
    background: rgba(2, 6, 23, 0.8) !important;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-main);
}

/* Custom Scrollbar for speed & elegance */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.step-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    transition: all 0.3s ease;
}
.step-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Bootstrap Theme Overrides for dark background readability */
.text-muted, .text-secondary {
    color: var(--text-muted) !important;
}

.text-dark {
    color: #0f172a !important;
}

.lead {
    color: #e2e8f0 !important;
}

.bg-white {
    background-color: var(--input-bg) !important;
    color: var(--text-main) !important;
}

.bg-light {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

/* Minimalist refinement */
.card-downloader {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.card-downloader:hover {
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.15);
}

/* Extra UI Polish & Contrast Refinements */
.text-dark {
    color: #0f172a !important;
}
.alert {
    color: #f8fafc !important;
    border-radius: 16px !important;
}
.alert-warning {
    color: #f59e0b !important;
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}
.alert-info {
    color: #06b6d4 !important;
    background-color: rgba(6, 182, 212, 0.1) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
}
.alert-danger {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}
.alert-success {
    color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}
.bg-light {
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: var(--text-main) !important;
}
.text-muted, .text-secondary {
    color: var(--text-muted) !important;
}
::placeholder {
    color: #64748b !important;
}
select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

