/* ===========================
   Landiro Hosting Panel CSS
   =========================== */

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

:root {
    --sidebar-bg:     #0f172a;
    --sidebar-hover:  #1e293b;
    --sidebar-active: #2563eb;
    --sidebar-text:   #94a3b8;
    --sidebar-text-h: #e2e8f0;
    --sidebar-w:      240px;

    --bg:      #f1f5f9;
    --card-bg: #ffffff;
    --border:  #e2e8f0;

    --text:    #1e293b;
    --text-s:  #64748b;
    --text-m:  #94a3b8;

    --blue:    #2563eb;
    --blue-d:  #1d4ed8;
    --blue-l:  #dbeafe;
    --green:   #10b981;
    --green-l: #d1fae5;
    --red:     #ef4444;
    --red-l:   #fee2e2;
    --orange:  #f59e0b;
    --orange-l:#fef3c7;
    --purple:  #8b5cf6;
    --purple-l:#ede9fe;

    --r:  10px;
    --sh: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --sh-md: 0 4px 14px rgba(0,0,0,.1);
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    position: fixed; top: 0; left: 0; height: 100vh;
    display: flex; flex-direction: column;
    overflow-y: auto; z-index: 100;
    transition: transform .25s;
}

.sidebar-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.sidebar-logo-icon {
    width: 34px; height: 34px;
    background: var(--blue); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-logo-text { font-size: .95rem; font-weight: 700; color: #f1f5f9; letter-spacing: -.01em; }

.sidebar-nav { padding: 16px 10px; flex: 1; }

.nav-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #475569;
    padding: 0 8px; margin: 12px 0 4px;
}

.nav-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 10px; border-radius: 8px;
    color: var(--sidebar-text); font-size: .875rem; font-weight: 500;
    transition: all .15s; cursor: pointer; text-decoration: none;
    margin-bottom: 1px;
}
.nav-item:hover  { background: var(--sidebar-hover); color: var(--sidebar-text-h); text-decoration: none; }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item svg    { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; }

.topbar {
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    padding: 0 24px; height: 58px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: .95rem; font-weight: 600; }
.topbar-user  { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-s); }

.avatar {
    width: 32px; height: 32px; background: var(--blue-l); color: var(--blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .78rem; flex-shrink: 0;
}

.content { padding: 24px; flex: 1; }

/* ---- Page header ---- */
.page-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
}
.page-hdr h1 { font-size: 1.35rem; font-weight: 700; }
.page-hdr .sub { font-size: .8rem; color: var(--text-m); margin-top: 2px; }

/* ---- Cards ---- */
.card {
    background: var(--card-bg); border-radius: var(--r);
    border: 1px solid var(--border); box-shadow: var(--sh); overflow: hidden;
}
.card-hdr {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: .9rem; font-weight: 600; }
.card-body  { padding: 18px; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); background: #f8fafc; }

/* ---- Stats grid ---- */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px; margin-bottom: 22px;
}
.stat-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--r); padding: 18px; box-shadow: var(--sh);
}
.stat-icon {
    width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.blue   { background: var(--blue-l);   color: var(--blue);   }
.stat-icon.green  { background: var(--green-l);  color: var(--green);  }
.stat-icon.red    { background: var(--red-l);    color: var(--red);    }
.stat-icon.orange { background: var(--orange-l); color: var(--orange); }
.stat-icon.purple { background: var(--purple-l); color: var(--purple); }
.stat-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-m); margin-bottom: 4px; }
.stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--text); }
.stat-sub   { font-size: .75rem; color: var(--text-m); margin-top: 3px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: #f8fafc; }
th {
    padding: 9px 14px; text-align: left;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-m); border-bottom: 1px solid var(--border); white-space: nowrap;
}
td {
    padding: 11px 14px; font-size: .875rem;
    border-bottom: 1px solid var(--border); vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }

/* ---- Badges ---- */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; line-height: 1.6; white-space: nowrap;
}
.badge-success   { background: var(--green-l);  color: #059669; }
.badge-danger    { background: var(--red-l);    color: #dc2626; }
.badge-warning   { background: var(--orange-l); color: #d97706; }
.badge-info      { background: var(--blue-l);   color: var(--blue); }
.badge-secondary { background: #f1f5f9;         color: #64748b; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 15px; border-radius: 8px;
    font-size: .85rem; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all .15s;
    text-decoration: none; line-height: 1.4; white-space: nowrap;
    font-family: inherit;
}
.btn-primary  { background: var(--blue);  color: #fff; border-color: var(--blue);  }
.btn-primary:hover  { background: var(--blue-d); border-color: var(--blue-d); color: #fff; text-decoration: none; }
.btn-success  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover  { background: #059669; color: #fff; text-decoration: none; }
.btn-danger   { background: var(--red);   color: #fff; border-color: var(--red);   }
.btn-danger:hover   { background: #dc2626; color: #fff; text-decoration: none; }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover  { background: #f8fafc; text-decoration: none; }
.btn-ghost    { background: transparent; color: var(--text-s); border-color: transparent; }
.btn-ghost:hover    { background: #f1f5f9; text-decoration: none; }
.btn-sm  { padding: 5px 10px; font-size: .78rem; }
.btn-xs  { padding: 3px 8px;  font-size: .72rem; }
.btn-lg  { padding: 11px 22px; font-size: .95rem; }
.btn-block { width: 100%; justify-content: center; }
.btn svg   { width: 15px; height: 15px; }
.btn-sm svg { width: 13px; height: 13px; }

/* ---- Forms ---- */
.form-grid   { display: grid; gap: 14px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-group  { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1/-1; }

label { font-size: .82rem; font-weight: 600; color: var(--text); }

input, select, textarea {
    padding: 9px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: .875rem; color: var(--text);
    background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .75rem; color: var(--text-m); }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

/* ---- Alerts ---- */
.alert {
    padding: 11px 15px; border-radius: 8px; font-size: .875rem;
    margin-bottom: 18px; display: flex; align-items: flex-start; gap: 9px;
}
.alert-success { background: var(--green-l); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger,
.alert-error   { background: var(--red-l);   color: #7f1d1d; border: 1px solid #fca5a5; }
.alert-warning { background: var(--orange-l);color: #78350f; border: 1px solid #fcd34d; }
.alert-info    { background: var(--blue-l);  color: #1e3a8a; border: 1px solid #93c5fd; }
.alert svg     { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ---- Auth pages ---- */
.auth-page {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; background: var(--bg); padding: 20px;
}
.auth-card {
    background: var(--card-bg); border-radius: 14px; padding: 38px;
    width: 100%; max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,.1); border: 1px solid var(--border);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-logo-icon {
    width: 38px; height: 38px; background: var(--blue); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.auth-logo-text { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.auth-card h1   { font-size: 1.25rem; font-weight: 700; margin-bottom: 5px; }
.auth-card .sub { color: var(--text-s); font-size: .875rem; margin-bottom: 24px; }
.auth-footer    { margin-top: 18px; text-align: center; font-size: .875rem; color: var(--text-s); }

/* ---- Progress ---- */
.progress-wrap { background: #f1f5f9; border-radius: 6px; height: 7px; overflow: hidden; }
.progress-bar  { height: 100%; border-radius: 6px; background: var(--blue); transition: width .3s; }
.progress-bar.warn { background: var(--orange); }
.progress-bar.danger { background: var(--red); }

/* ---- Tariff info card ---- */
.tariff-card {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff; border-radius: var(--r); padding: 22px;
    position: relative; overflow: hidden;
}
.tariff-card::before {
    content: ''; position: absolute;
    top: -30px; right: -30px; width: 110px; height: 110px;
    background: rgba(255,255,255,.08); border-radius: 50%;
}
.tariff-card-name  { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.tariff-card-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.2); padding: 2px 8px;
    border-radius: 12px; font-size: .72rem; font-weight: 700; margin-bottom: 16px;
}
.tariff-card-grid {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; position: relative; z-index: 1;
}
.tariff-card-item { background: rgba(255,255,255,.13); border-radius: 8px; padding: 10px 12px; }
.tariff-card-item .lbl { font-size: .68rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.tariff-card-item .val { font-size: 1rem; font-weight: 700; }

/* ---- File Manager ---- */
.fm-wrap {
    display: flex; height: calc(100vh - 170px); min-height: 400px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--sh); overflow: hidden;
}

.fm-sidebar {
    width: 200px; border-right: 1px solid var(--border);
    background: #f8fafc; display: flex; flex-direction: column; flex-shrink: 0;
}
.fm-sidebar-hdr {
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-m);
}
.fm-tree { flex: 1; overflow-y: auto; }
.fm-tree-item {
    padding: 7px 14px; font-size: .82rem; cursor: pointer;
    color: var(--text-s); display: flex; align-items: center; gap: 6px;
    transition: background .1s;
}
.fm-tree-item:hover  { background: #e2e8f0; }
.fm-tree-item.active { background: var(--blue-l); color: var(--blue); }
.fm-tree-item svg    { width: 14px; height: 14px; flex-shrink: 0; }

.fm-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.fm-toolbar {
    padding: 8px 12px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    background: #fff; flex-shrink: 0;
}
.fm-path {
    flex: 1; padding: 5px 10px; background: #f1f5f9; border-radius: 6px;
    font-size: .78rem; color: var(--text-s); font-family: monospace;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 60px; border: 1px solid transparent;
}

.fm-content { flex: 1; overflow-y: auto; padding: 6px; }

.fm-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 2px;
}
.fm-item {
    padding: 10px 6px; border-radius: 8px; cursor: pointer; text-align: center;
    transition: background .1s; user-select: none;
}
.fm-item:hover    { background: #f1f5f9; }
.fm-item.selected { background: var(--blue-l); }
.fm-item-icon { width: 44px; height: 44px; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; }
.fm-item-icon svg { width: 38px; height: 38px; }
.fm-item-name {
    font-size: .72rem; color: var(--text); word-break: break-all;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.3;
}

.fm-list-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 6px; cursor: pointer;
    font-size: .84rem; transition: background .1s;
}
.fm-list-item:hover    { background: #f1f5f9; }
.fm-list-item.selected { background: var(--blue-l); }
.fm-list-icon  { width: 18px; height: 18px; flex-shrink: 0; }
.fm-list-name  { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-list-size  { font-size: .75rem; color: var(--text-m); width: 80px; text-align: right; white-space: nowrap; }
.fm-list-date  { font-size: .75rem; color: var(--text-m); width: 130px; text-align: right; white-space: nowrap; }

.fm-statusbar {
    padding: 5px 14px; border-top: 1px solid var(--border);
    font-size: .75rem; color: var(--text-m); background: #f8fafc;
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.fm-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; color: var(--text-m); padding: 40px; text-align: center;
}
.fm-empty svg { width: 52px; height: 52px; margin-bottom: 12px; opacity: .35; }

/* ---- Multi-select checkboxes ---- */
.fm-item { position: relative; }
.fm-item::before {
    content: '';
    position: absolute; top: 5px; left: 5px;
    width: 17px; height: 17px; border-radius: 4px;
    border: 2px solid #cbd5e1; background: #fff;
    opacity: 0; transition: opacity .12s, background .12s, border-color .12s;
    pointer-events: none; z-index: 2;
}
.fm-item:hover::before { opacity: 1; }
.fm-item.selected::before {
    opacity: 1; background: var(--blue); border-color: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 11px; background-repeat: no-repeat; background-position: center;
}
/* Selection mode — faint checkboxes visible on all items */
.fm-content.sel-mode .fm-item::before { opacity: .28; }
.fm-content.sel-mode .fm-item:hover::before { opacity: .85; }
.fm-content.sel-mode .fm-item.selected::before { opacity: 1; }

/* List view checkbox */
.fm-list-chk {
    width: 16px; height: 16px; flex-shrink: 0; border-radius: 3px;
    border: 2px solid #cbd5e1; background: #fff;
    transition: background .12s, border-color .12s;
}
.fm-list-item.selected .fm-list-chk {
    background: var(--blue); border-color: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 10px; background-repeat: no-repeat; background-position: center;
}

/* Select-all header checkbox */
.fm-hdr-chk {
    width: 16px; height: 16px; border-radius: 3px;
    border: 2px solid #cbd5e1; background: #fff; flex-shrink: 0;
    transition: background .12s, border-color .12s;
}
.fm-hdr-chk.partial { background: var(--blue-l); border-color: var(--blue); }
.fm-hdr-chk.all {
    background: var(--blue); border-color: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 10px; background-repeat: no-repeat; background-position: center;
}

/* Selection action bar */
.fm-sel-bar {
    padding: 6px 12px; background: var(--blue-l);
    border-bottom: 1px solid #93c5fd;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .82rem; flex-shrink: 0; gap: 8px;
}
.fm-sel-count { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ---- File Text Editor ---- */
.fm-editor-back {
    position: fixed; inset: 0; background: rgba(15,23,42,.65); z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fm-editor {
    background: #fff; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,.35);
    display: flex; flex-direction: column;
    width: 90vw; max-width: 1040px; height: 90vh; overflow: hidden;
}
.fm-editor-hdr {
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 48px;
}
.fm-editor-icon { color: var(--text-m); flex-shrink: 0; }
.fm-editor-title { font-weight: 600; font-size: .88rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-editor-saved { font-size: .78rem; color: #10b981; font-weight: 600; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.fm-editor-saved.show { opacity: 1; }
.fm-editor-body { flex: 1; overflow: hidden; display: flex; }
.fm-editor-body textarea {
    flex: 1; border: none; outline: none; resize: none;
    font-family: 'Consolas', 'Fira Code', 'Monaco', 'Courier New', monospace;
    font-size: .82rem; line-height: 1.65; padding: 14px 18px;
    background: #1e1e2e; color: #cdd6f4; caret-color: #89b4fa;
    tab-size: 4; -moz-tab-size: 4;
    width: 100%;
}
.fm-editor-body textarea::selection { background: #313244; }
.fm-editor-footer {
    padding: 6px 14px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0; font-size: .73rem; color: var(--text-m);
}
.fm-editor-info { font-style: italic; }

.fm-drop-zone {
    border: 2px dashed var(--border); border-radius: 8px;
    padding: 16px; text-align: center; cursor: pointer;
    color: var(--text-m); font-size: .82rem; transition: all .2s;
    background: #fafbfc;
}
.fm-drop-zone:hover, .fm-drop-zone.drag-over {
    border-color: var(--blue); background: var(--blue-l); color: var(--blue);
}

/* ---- Context menu ---- */
.ctx-menu {
    position: fixed; background: #fff; border: 1px solid var(--border);
    border-radius: 9px; box-shadow: var(--sh-md); z-index: 1000;
    min-width: 160px; padding: 4px; font-size: .84rem;
}
.ctx-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 12px; cursor: pointer; border-radius: 6px;
    color: var(--text); transition: background .1s;
}
.ctx-item:hover  { background: #f1f5f9; }
.ctx-item.danger { color: var(--red); }
.ctx-item.danger:hover { background: var(--red-l); }
.ctx-item svg    { width: 14px; height: 14px; flex-shrink: 0; }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ---- Modal ---- */
.modal-back {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
    background: #fff; border-radius: 12px; width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-hdr {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: .9rem; font-weight: 600; }
.modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-m); padding: 4px; border-radius: 4px;
    line-height: 0; display: flex;
}
.modal-close:hover { color: var(--text); background: #f1f5f9; }
.modal-body    { padding: 18px; }
.modal-footer  { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---- Utilities ---- */
.flex          { display: flex; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 22px; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-m); }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }
.hidden       { display: none !important; }
.divider      { height: 1px; background: var(--border); margin: 18px 0; }
.w-full       { width: 100%; }

/* ---- Responsive ---- */
#sidebar-toggle { display: none; }

/* Overlay is always hidden by default; JS sets display:block when sidebar opens */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 199; cursor: pointer;
}

@media (max-width: 768px) {
    #sidebar-toggle { display: flex; }
    .sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
        z-index: 200;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.35); }
    .main { margin-left: 0; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .fm-sidebar { display: none; }
    .tariff-card-grid { grid-template-columns: 1fr 1fr; }
    .content { padding: 14px; }
    .fm-list-size, .fm-list-date { display: none; }
}
