/* ── F-One Audio Separator — Styles ──────────────────────────────────────── */
#fone-sep-app,
#fone-mix-app,
.fone-sep-wrap,
.fone-mix-wrap {
    --fone-bg:       #0d0d1a;
    --fone-surface:  #1a1a2e;
    --fone-border:   #2a2a45;
    --fone-gold:     #e8a020;
    --fone-gold-dk:  #c4861a;
    --fone-white:    #ffffff;
    --fone-muted:    #888aa0;
    --fone-success:  #22c55e;
    --fone-danger:   #ef4444;
    --fone-radius:   10px;
}

.fone-sep-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff !important;
    background: transparent;
}

/* Force dark on all inner elements */
#fone-sep-app * { box-sizing: border-box; }

/* ── Locked / Login Required ─────────────────────────────────────────────── */
.fone-sep-locked {
    text-align: center;
    padding: 64px 24px;
    background: #1a1a2e !important;
    border: 2px dashed #2a2a45 !important;
    border-radius: 10px;
}
.fone-sep-lock-icon { font-size: 52px; margin-bottom: 14px; }
.fone-sep-locked h3 { font-size: 24px; margin: 0 0 10px; color: #ffffff !important; }
.fone-sep-locked p  { color: #888aa0 !important; margin: 0 0 28px; font-size: 15px; }

/* ── Drop Zone ───────────────────────────────────────────────────────────── */
.fone-sep-dropzone {
    background: #1a1a2e !important;
    border: 2px dashed #2a2a45 !important;
    border-radius: 10px;
    padding: 56px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin-bottom: 16px;
}
.fone-sep-dropzone:hover,
.fone-sep-dropzone.dragover {
    border-color: #e8a020 !important;
    background: rgba(232,160,32,.06) !important;
}
.fone-sep-drop-icon  { font-size: 52px; margin-bottom: 14px; }
.fone-sep-drop-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #ffffff !important; }
.fone-sep-drop-sub   { font-size: 13px; color: #888aa0 !important; margin: 0 0 22px; }

/* ── File Bar ────────────────────────────────────────────────────────────── */
.fone-sep-file-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    border: 1px solid #2a2a45;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #ffffff;
}
.fone-sep-file-name { opacity: .85; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.fone-sep-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all .2s;
    margin: 4px;
    color: #ffffff;
}
.fone-sep-btn-primary {
    background: #e8a020;
    color: #0d0d1a;
    border-color: #e8a020;
}
.fone-sep-btn-primary:hover { background: #c4861a; border-color: #c4861a; color: #0d0d1a; }
.fone-sep-btn-block  { display: block; width: 100%; text-align: center; padding: 14px; font-size: 17px; margin: 0 0 16px; }
.fone-sep-btn-outline {
    background: transparent;
    color: #e8a020;
    border-color: #e8a020;
}
.fone-sep-btn-outline:hover { background: #e8a020; color: #0d0d1a; }
.fone-sep-btn-dl {
    background: #22c55e;
    color: #fff;
    display: block;
    text-align: center;
    margin-top: 10px;
    border-color: #22c55e;
}
.fone-sep-btn-dl:hover { background: #16a34a; color: #fff; }
.fone-sep-btn-tip {
    background: #e8a020;
    color: #0d0d1a;
    border-color: #e8a020;
}
.fone-sep-btn-tip:hover { background: #c4861a; color: #0d0d1a; }
.fone-sep-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}
.fone-sep-btn-danger { background: #ef4444; color: #fff; }

/* ── Progress ────────────────────────────────────────────────────────────── */
.fone-sep-progress {
    text-align: center;
    padding: 48px 20px;
    background: #1a1a2e;
    border-radius: 10px;
    margin-bottom: 16px;
}
.fone-sep-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #2a2a45;
    border-top-color: #e8a020;
    border-radius: 50%;
    animation: fone-spin .8s linear infinite;
    margin: 0 auto 18px;
}
@keyframes fone-spin { to { transform: rotate(360deg); } }
#fone-sep-progress-msg { color: #888aa0; font-size: 15px; margin: 0; }

/* ── Error ───────────────────────────────────────────────────────────────── */
.fone-sep-error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.4);
    color: #fca5a5;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ── Results ─────────────────────────────────────────────────────────────── */
.fone-sep-results { margin-top: 8px; }
.fone-sep-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.fone-sep-results-header h3 { margin: 0; font-size: 22px; color: #ffffff; }
.fone-sep-check { font-size: 24px; }

.fone-sep-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 560px) { .fone-sep-tracks { grid-template-columns: 1fr; } }

.fone-sep-track {
    background: #1a1a2e;
    border: 1px solid #2a2a45;
    border-radius: 10px;
    padding: 20px;
}
.fone-sep-track-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #e8a020;
}
.fone-sep-track audio { width: 100%; }

/* ── Tip Block ───────────────────────────────────────────────────────────── */
.fone-sep-tip {
    text-align: center;
    background: rgba(232,160,32,.08);
    border: 1px solid rgba(232,160,32,.3);
    border-radius: 10px;
    padding: 22px;
    margin-top: 24px;
}
.fone-sep-tip-msg { font-size: 15px; font-weight: 500; margin: 0 0 12px; color: #ffffff; }

/* ── History ─────────────────────────────────────────────────────────────── */
.fone-sep-history { margin-top: 48px; }
.fone-sep-history h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a45;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.fone-sep-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #1a1a2e;
    border: 1px solid #2a2a45;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ffffff;
}
.fone-sep-history-name { font-weight: 600; }
.fone-sep-history-links a {
    margin-left: 10px;
    color: #e8a020;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}
.fone-sep-history-links a:hover { text-decoration: underline; }
.fone-sep-muted { color: #888aa0; font-size: 14px; }

/* ── Ad Slots ────────────────────────────────────────────────────────────── */
.fone-sep-ad { margin: 20px 0; text-align: center; }
