:root {
    --ui-primary-300: #59b5ee;
    --ui-primary-400: #44a1d9;
    --ui-primary-500: #2c8ec4;
    --ui-primary-600: #0c7bb0;
    --ui-primary-700: #00689c;
    --layout-900: #01263f;
    --surface: #17181c;
    --surface-2: #20242c;
    --page: #151619;
    --black: #060b13;
    --bar: #002f46;
    --blue: var(--ui-primary-700);
    --blue-2: #07537d;
    --panel: #17181c;
    --panel-2: #202b3a;
    --line: #39424f;
    --text: #d6dde7;
    --muted: #9aa7b7;
    --green: #36bd73;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); }

.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #05131d, #003d5f);
}
.auth-panel {
    width: min(460px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 34px;
}
.eyebrow {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 11px 12px;
    color: var(--text);
    background: #252a32;
    font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
button, .request-button {
    border: 0;
    border-radius: 4px;
    background: var(--blue);
    color: #fff;
    padding: 10px 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}
button:hover, .request-button:hover { background: var(--blue-2); }
.hint, small { color: var(--muted); }
.alert {
    padding: 10px 12px;
    border: 1px solid #8d6c20;
    background: rgba(141,108,32,.2);
}

.app { min-height: 100vh; }
.impersonation-bar {
    height: 44px;
    display: grid;
    grid-template-columns: 280px 1fr auto;
    align-items: stretch;
    background: var(--black);
}
.logged-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}
.logged-box b { color: #fff; font-size: 13px; text-transform: none; }
.shield { color: #fff; font-size: 22px; }
.domain-search {
    max-width: 480px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #26201f;
}
.domain-search input {
    min-width: 380px;
    border: 0;
    background: transparent;
    color: var(--muted);
}
.impersonation-bar a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #fff;
    white-space: nowrap;
}

.topbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px 0 10px;
    background: #00324b;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #031b28;
    background: linear-gradient(135deg, #2cc3f1, #178ec4);
    clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%, 28% 50%);
    font-size: 16px;
    letter-spacing: 0;
    transform: none;
    font-weight: 950;
}
.brand b {
    display: block;
    font-size: 23px;
    line-height: 20px;
}
.brand small {
    display: block;
    color: #9fb6c7;
    font-size: 12px;
    letter-spacing: 3px;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-button, .ghost-button, .user-pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 4px;
    background: #07598a;
    color: #fff;
    font-weight: 800;
    text-transform: none;
    border: 0;
}
kbd {
    padding: 2px 5px;
    border-radius: 2px;
    background: rgba(0,0,0,.25);
    color: #fff;
}
.command-bar {
    height: 36px;
    margin: 12px 18px 8px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #2b3038;
}
.command-bar input {
    border: 0;
    background: transparent;
    padding: 0;
}
.crumb-row {
    display: flex;
    justify-content: space-between;
    margin: 0 18px 16px;
    color: #b6c0cc;
    font-size: 12px;
}

.stats { display: none; }
.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 407px;
    gap: 14px;
    padding: 0 18px 28px;
}
.main-column { display: grid; gap: 18px; }
.da-section, .card, .module-hero, .side-card {
    border: 1px solid var(--line);
    background: #151619;
    border-radius: 3px;
    overflow: hidden;
}
.da-section h2 {
    margin: 0;
    padding: 10px 14px;
    background: #0a689b;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    gap: 20px 28px;
    padding: 26px 26px 18px;
}
.icon-grid a {
    min-height: 74px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 9px;
    color: #9da6b5;
    text-align: center;
    font-weight: 650;
    font-size: 12px;
    border-radius: 4px;
    padding: 8px 6px;
}
.icon-grid a:hover { color: #fff; background: rgba(9,105,155,.16); }
.tile-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 950;
    color: #eef8ff;
    border: 1px solid #2c5e80;
    border-radius: 9px;
    background: linear-gradient(180deg, #114c74, #09364f);
    line-height: 1;
}
.tile-svg {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.22));
}
.right-column { display: grid; gap: 10px; align-content: start; }
.side-card { padding: 0; }
.account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 18px 34px;
}
.account-card h2 { margin-bottom: 3px; font-size: 22px; }
.account-card p { margin-bottom: 0; }
.account-card a {
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    padding: 7px 12px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}
.meters h3 {
    margin: 0;
    padding: 9px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #c4ced9;
    font-size: 13px;
    text-transform: uppercase;
}
.meters h3:first-child { border-top: 0; }
.meters div, .meters > p {
    margin: 0;
    padding: 10px 12px;
    background: #202a38;
    border-bottom: 1px solid #303948;
}
.meters p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #cbd4df;
    font-weight: 800;
}
.meters b { color: #bcd0e4; }
meter {
    width: 100%;
    height: 8px;
    margin-top: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 18px 28px;
}
.card, .module-hero { padding: 18px; }
.wide { grid-column: 1 / -1; }
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    background: rgba(54,189,115,.16);
    color: #80e0a8;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 900;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 18px;
}
td {
    padding: 10px 9px;
    border: 1px solid var(--line);
    color: #cbd4df;
    background: #20242c;
}
.inline-form, .dns-form {
    display: grid;
    grid-template-columns: 1fr 130px auto;
    gap: 10px;
    margin-bottom: 18px;
}
.dns-form { grid-template-columns: 90px 130px 1fr auto; }
.inline-form input[type="hidden"], .dns-form input[type="hidden"], .mini-form input { display: none; }
.split {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.split textarea { grid-column: 1 / -1; }
.user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.package-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.user-form .full, .user-form button, .package-form button {
    grid-column: 1 / -1;
}
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.check-row input {
    width: auto;
}
.table-action {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}
.domain-card {
    padding: 0;
    overflow: hidden;
}
.domain-card-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--line);
}
.domain-card-head h2 {
    margin: 4px 0 0;
}
.domain-meta {
    margin: 0;
}
.domain-meta td {
    padding: 11px 12px;
}
.domain-actions {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: start;
    gap: 10px;
    padding: 14px 22px 18px;
}
.domain-actions .mini-inline,
.domain-actions .inline-editor {
    margin: 0;
    min-width: 0;
}
.domain-actions .inline-editor[open] {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: max-content max-content;
    gap: 10px;
}
.domain-actions .inline-editor[open] summary {
    grid-column: 1;
}
.domain-actions .inline-editor .split {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    padding: 14px;
    background: #171b22;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.domain-actions .inline-editor button {
    grid-column: 1 / -1;
    width: fit-content;
}
.domain-actions .table-action,
.domain-actions button.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    font-size: 13px;
}
.domain-actions button.danger-button {
    background: #8f2d3a;
}
.domain-actions button.danger-button:hover {
    background: #b43a4a;
}
.email-panel { padding: 0; }
.email-domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}
.email-domain-header h2 { margin-bottom: 0; }
.email-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.mini-inline {
    display: inline-flex;
    margin: 0;
}
.mini-inline input { display: none; }
.inline-editor {
    margin-top: 14px;
}
.inline-editor summary {
    width: fit-content;
    cursor: pointer;
    list-style: none;
}
.inline-editor summary::-webkit-details-marker {
    display: none;
}
.danger-button {
    min-height: 30px;
    padding: 0 10px;
    background: #8f2d3a;
}
.danger-button:hover {
    background: #b43a4a;
}
.email-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.email-summary div {
    padding: 14px;
    background: #20242c;
    border: 1px solid var(--line);
}
.email-summary span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}
.email-summary strong { color: #fff; font-size: 20px; }
.bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.bulk-bar button {
    padding: 7px 10px;
    font-size: 12px;
}
.email-table {
    margin: 0;
}
.email-table td:first-child { width: 28%; }
.email-table td:last-child { width: 90px; }
.email-table input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}
.webmail-login {
    display: inline-flex;
    margin-top: 6px;
    color: #7fc9ff;
    font-weight: 850;
}
.webmail-login:hover { color: #fff; }
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.pager button {
    padding: 7px 10px;
    font-size: 12px;
}
.email-create-form {
    margin: 0;
    padding: 18px;
    border-top: 1px solid var(--line);
    grid-template-columns: 1fr 160px auto;
    align-items: end;
}
.email-create-form h3 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
.ticket {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}
.module-hero {
    margin: 0 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.module-hero h2 { font-size: 24px; margin-bottom: 5px; }
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.detail-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    background: #20242c;
}
.detail-grid span {
    display: block;
    color: var(--muted);
    margin-bottom: 5px;
}
.mini-form { margin: 0; }
.mini-form button {
    padding: 6px 9px;
    font-size: 11px;
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.search-grid a {
    display: grid;
    min-height: 58px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #20242c;
    color: #dce8f4;
    font-weight: 850;
    text-align: center;
}
.search-grid a:hover { border-color: var(--blue); background: #202d3a; }
.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.report-grid div {
    min-height: 82px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #20242c;
}
.report-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}
.report-grid strong {
    color: #fff;
    font-size: 24px;
}
.ftp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.ftp-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #20242c;
}
.ftp-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}
.ftp-grid strong {
    color: #fff;
    overflow-wrap: anywhere;
}
.ftp-connect-form {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin: 14px 0;
}
.fm-app {
    min-height: 100vh;
    background: #20252d;
    color: #f3f7fb;
}
.fm-topbar {
    height: 78px;
    display: grid;
    grid-template-columns: 450px auto auto auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 0 14px;
    background: #032f46;
    border-top: 3px solid #1e9bd0;
}
.fm-topbar .brand { min-width: 320px; }
.fm-topbar a, .fm-topbar button {
    color: #fff;
    font-weight: 850;
    white-space: nowrap;
}
.fm-top-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fm-top-form input[type="text"], .fm-top-form input:not([type]) {
    width: 150px;
}
.fm-shell {
    display: grid;
    grid-template-columns: 450px 1fr;
    height: calc(100vh - 78px);
}
.fm-sidebar {
    overflow: auto;
    padding: 0 6px 18px;
    background: #2b3038;
    border-right: 1px solid #4a515d;
}
.fm-folder {
    display: block;
    padding: 9px 16px 9px 72px;
    color: #f4f8fc;
    font-size: 20px;
    border-radius: 5px;
    position: relative;
}
.fm-folder:before {
    content: "DIR";
    position: absolute;
    left: 18px;
    color: #36a8e0;
    font-size: 12px;
    font-weight: 950;
}
.fm-folder.active, .fm-folder:hover {
    background: #154e70;
}
.fm-main {
    overflow: auto;
    background: #2d323b;
}
.fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 14px;
    color: #39aee9;
    font-weight: 850;
    border-bottom: 1px solid #46505e;
}
.fm-login {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.fm-login input[type="password"] { max-width: 320px; }
.fm-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 44px;
    padding: 0 14px;
    color: #cbd5df;
    border-bottom: 1px solid #46505e;
}
.fm-actions button, .fm-actions a {
    background: transparent;
    color: #9da6b1;
    padding: 0;
    text-transform: none;
    font-size: 18px;
}
.fm-actions a:not(.disabled):hover, .fm-actions button:not(:disabled):hover {
    color: #fff;
}
.fm-actions .disabled, .fm-actions button:disabled {
    opacity: .42;
    pointer-events: none;
}
.fm-table {
    margin: 0;
    width: 100%;
}
.fm-table tr:first-child td {
    background: #303641;
    color: #fff;
    font-size: 20px;
}
.fm-table td {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid #303743;
    background: #292f38;
    color: #fff;
    font-size: 18px;
}
.fm-table tr:nth-child(even) td {
    background: #2d333d;
}
.fm-table tr:hover td {
    background: #354050;
}
.fm-table input[type="checkbox"] {
    width: 26px;
    height: 26px;
}
.fm-name-cell {
    cursor: pointer;
    user-select: none;
}
.hidden-form {
    display: none;
}
.fm-file-icon {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 28px;
    margin-right: 12px;
    border-radius: 4px;
    background: #56b6e9;
    color: #083149;
    font-size: 11px;
    font-weight: 950;
}
.fm-editor {
    padding: 14px;
    border-bottom: 1px solid #46505e;
    background: #20252d;
}
.fm-editor textarea {
    min-height: 300px;
    font-family: Consolas, monospace;
}

@media (max-width: 1100px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .icon-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
    .right-column { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .impersonation-bar, .topbar, .dashboard-layout, .grid { display: block; }
    .domain-search { max-width: none; margin: 0; }
    .domain-search input { min-width: 0; }
    .topbar, .top-actions { padding: 10px; }
    .top-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .brand { margin-bottom: 10px; }
    .icon-grid, .right-column, .detail-grid, .ftp-grid, .split, .user-form, .package-form, .inline-form, .dns-form, .search-grid, .report-grid, .email-summary, .email-create-form { grid-template-columns: 1fr; }
    .da-section, .side-card { margin-bottom: 14px; }
    .module-hero { flex-direction: column; align-items: stretch; }
}

/* Premium File Manager Multi-Site & Evolution Theme Styles */
.fm-app {
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.fm-site-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid #334155;
}
.fm-site-label {
    font-size: 11px;
    font-weight: 900;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fm-site-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fm-site-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #1e293b;
    color: #94a3b8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #334155;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.fm-site-tab:hover {
    background: #334155;
    color: #f8fafc;
    border-color: #38bdf8;
    transform: translateY(-1px);
}
.fm-site-tab.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.active-dot {
    color: #4ade80;
    font-size: 14px;
    margin-left: 2px;
    text-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}
.fm-site-bar-right {
    margin-left: auto;
}
.fm-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.fm-refresh-btn:hover {
    background: #0f172a;
    color: #7dd3fc;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.fm-breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: #090d16;
    border-bottom: 1px solid #1e293b;
}
.fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}
.bc-item {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.08);
    transition: all 0.15s ease;
}
.bc-item:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}
.bc-sep {
    color: #475569;
    font-size: 11px;
}
.fm-search-box input {
    width: 280px;
    padding: 7px 14px;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}
.fm-search-box input:focus {
    border-color: #38bdf8;
    background: #0f172a;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}
.fm-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}
.fm-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.fm-act-btn:not(.disabled):hover {
    background: #334155;
    color: #ffffff;
    border-color: #64748b;
}
.fm-act-btn.danger {
    background: #451a21;
    border-color: #7f1d1d;
    color: #f87171;
}
.fm-act-btn.danger:not(:disabled):hover {
    background: #991b1b;
    color: #ffffff;
}
.fm-act-btn.disabled, .fm-act-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.fm-count {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    margin-left: auto;
}
.fm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #38bdf8;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
.fm-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}
.fm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: transparent;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.fm-btn-outline:hover {
    color: #ffffff;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

/* Vibrant File Badges */
.fm-icon-badge {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 26px;
    padding: 0 6px;
    margin-right: 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.badge-folder { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); color: #422006; }
.badge-php    { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); color: #ffffff; }
.badge-html   { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: #ffffff; }
.badge-css    { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); color: #ffffff; }
.badge-js     { background: linear-gradient(135deg, #eab308 0%, #d97706 100%); color: #1e1b4b; }
.badge-img    { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #022c22; }
.badge-zip    { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #ffffff; }
.badge-cfg    { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #451a03; }
.badge-sql    { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: #ffffff; }
.badge-txt    { background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: #ffffff; }
.badge-file   { background: linear-gradient(135deg, #475569 0%, #334155 100%); color: #cbd5e1; }

.fm-file-name {
    font-weight: 700;
    color: #f8fafc;
    font-size: 14px;
}
.perm-badge {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 6px;
    color: #6ee7b7;
}
.fm-size-cell, .fm-date-cell, .fm-owner-cell {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}
.fm-row-act {
    display: inline-block;
    padding: 4px 10px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    margin-left: 6px;
    transition: all 0.15s ease;
}
.fm-row-act:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}
.fm-empty {
    text-align: center;
    padding: 60px;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}
.fm-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}
.fm-editor-header h3 {
    margin: 0;
    font-size: 16px;
    color: #f8fafc;
    font-weight: 800;
}
.fm-login-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}
.err-banner {
    background: #2d1619;
    border-bottom: 1px solid #7f1d1d;
}
.banner-title { font-weight: 900; color: #f87171; }
.banner-msg   { color: #fca5a5; font-size: 13px; }
.fm-retry-btn {
    margin-left: auto;
    padding: 5px 12px;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 900;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.fm-retry-btn:hover {
    background: #7dd3fc;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}



