/* ============ Rank Your App — custom styles ============ */

/* Sidebar nav */
.nav-item {
    color: #94a3b8;
}
.nav-item:hover {
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.4);
}
.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-dot {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    background: #f43f5e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Inputs */
.input-field {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: #e2e8f0;
    transition: border-color .15s, box-shadow .15s;
}
.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.input-field::placeholder { color: #475569; }
select.input-field option { background: #0f172a; }

/* Filter chips */
.filter-chip {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all .15s;
    white-space: nowrap;
}
.filter-chip:hover {
    color: #fff;
    border-color: #6366f1;
}
.filter-chip.active {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.4);
}

/* App cards (700x180) */
.app-card {
    max-width: 700px;
}

/* Wizard stepper */
.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: #1e293b;
    border: 2px solid #334155;
    color: #64748b;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.step-dot.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}
.step-dot.done {
    background: #10b981;
    border-color: transparent;
    color: #fff;
}
.step-label { color: #64748b; font-weight: 600; }
.step-label.active { color: #fff; }
.step-line {
    width: 48px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
}
.step-line.done { background: #10b981; }

/* Wizard platform options */
.platform-option.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

/* Flow steps (app details) */
.flow-step {
    padding: 1rem;
    border-radius: 1rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    margin-bottom: 0.75rem;
    transition: border-color .2s, opacity .2s;
}
.flow-step.current { border-color: #6366f1; }
.flow-step.done { border-color: rgba(16, 185, 129, 0.4); }
.flow-step.locked { opacity: 0.55; }

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    background: #1e293b;
    color: #64748b;
    border: 2px solid #334155;
}
.flow-step.current .step-circle { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; }
.flow-step.done .step-circle { background: #10b981; color: #fff; border-color: transparent; }

.reward-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Buttons */
.btn-primary {
    padding: 0.5rem 1.1rem;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    transition: opacity .15s;
    white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Stars */
.star { transition: color .15s, transform .15s; }
.star.active { color: #fbbf24; transform: scale(1.1); }

/* Toasts */
.toast {
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid;
    animation: fadeUp .35s ease both;
}
.toast-success { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.4); color: #6ee7b7; }
.toast-error   { background: rgba(244,63,94,0.12); border-color: rgba(244,63,94,0.4); color: #fda4af; }
.toast-info    { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.4); color: #a5b4fc; }

/* JS-injected toasts */
.js-toast {
    padding: 0.85rem 1.1rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid;
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeUp .3s ease both;
}
.js-toast.success { border-color: rgba(16,185,129,0.5); color: #6ee7b7; }
.js-toast.error   { border-color: rgba(244,63,94,0.5); color: #fda4af; }
.js-toast.info    { border-color: rgba(99,102,241,0.5); color: #a5b4fc; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
