/* ═══════════════════════════════════════
   RADHE PANEL — Global Theme
   ═══════════════════════════════════════ */
:root {
    --primary:      #FF7A00;
    --primary-dark: #E56A00;
    --primary-soft: rgba(255,122,0,0.12);

    --bg-main:  #0A0A0A;
    --bg-card:  #141414;
    --bg-input: #1C1C1C;
    --border:   #2A2A2A;

    --text-main:  #FFFFFF;
    --text-muted: #9A9A9A;

    --success: #22C55E;
    --danger:  #EF4444;
    --warning: #FACC15;

    --radius:   12px;
    --radius-lg:18px;
    --shadow:   0 4px 20px rgba(0,0,0,0.5);

    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html, body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
img { max-width:100%; display:block; }
button { font-family: inherit; cursor: pointer; border:none; outline:none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all .15s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,122,0,0.25);
}
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-dark {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* ─── Inputs ─── */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 15px;
    transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
}
.field input::placeholder { color: #555; }

/* ─── Card ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

/* ─── Text utilities ─── */
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm      { font-size: 12.5px; }
.text-center  { text-align: center; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }

/* ─── Layout ─── */
.container { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.page       { padding: 16px 0 100px; }

/* ─── Loader ─── */
.loader {
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast / Alert ─── */
.toast {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow);
    z-index: 9999;
    transition: transform .3s ease;
    max-width: 90%;
    font-size: 14px;
    font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }