:root {
    color-scheme: dark;
    --bg: #09050a;
    --panel: #100811;
    --panel-raised: #190a17;
    --pink: #f0009a;
    --pink-bright: #ff0aa3;
    --pink-soft: #ff62c2;
    --line: #57103f;
    --text: #f8f2f8;
    --muted: #c5b6c8;
    --green: #10ef70;
    --gold: #ffc062;
    font-family: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 68% 7%, rgba(86, 0, 52, .12), transparent 35%),
        var(--bg);
    color: var(--text);
    font-size: 14px;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 273px;
    padding: 14px 15px 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, #090509 0%, #0b060b 100%);
    border-right: 1px solid #37122f;
    scrollbar-width: thin;
    scrollbar-color: #4a1640 transparent;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
    flex: 0 0 85px;
    margin: -1px -15px 24px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(106, 34, 86, .32);
}

.brand img { display: block; width: 100%; max-height: 63px; object-fit: contain; }

.admin-profile {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    margin: 0 6px 21px;
}

.avatar { position: relative; display: inline-flex; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: #44132e; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.avatar-large { width: 80px; height: 80px; border: 2px solid #f238ad; box-shadow: 0 0 13px rgba(242, 0, 154, .25); }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border: 2px solid #120a11; border-radius: 50%; background: #13e878; }
.profile-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.profile-copy strong { font-size: 15px; font-weight: 700; }
.profile-copy > span:not(.online-label) { color: #c7b9cb; font-size: 12px; }
.online-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 12px; background: rgba(0, 211, 89, .16); color: #56f78d; font-size: 11px; }
.online-label i, .presence i { width: 7px; height: 7px; border-radius: 50%; background: #18e96b; }

.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 46px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #efe7f1;
    font-size: 14px;
    font-weight: 500;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.nav-link:hover { background: rgba(237, 0, 146, .12); }
.nav-link.is-active {
    border-color: #ff36b4;
    background: linear-gradient(100deg, #fc0ba1, #b90070);
    box-shadow: 0 0 17px rgba(242, 0, 154, .36), inset 0 0 9px rgba(255,255,255,.08);
    color: #fff;
}
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; flex: 0 0 27px; color: #ff46b5; filter: drop-shadow(0 1px 5px rgba(255, 0, 146, .18)); }
.nav-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.nav-link:nth-child(3) .nav-icon, .nav-link:nth-child(4) .nav-icon, .nav-link:nth-child(7) .nav-icon { color: #ffc062; }
.nav-link.is-active .nav-icon { color: #fff; }
.logout-link { margin-top: 1px; }

.vip-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 92px;
    margin: auto 7px 35px;
    padding: 12px 14px;
    border: 1px solid #ff3bb5;
    border-radius: 13px;
    background:
        radial-gradient(ellipse at 15% 120%, rgba(255, 0, 171, .36), transparent 48%),
        linear-gradient(125deg, rgba(63, 5, 48, .92), rgba(20, 7, 18, .98));
    box-shadow: 0 0 16px rgba(241, 0, 151, .35), inset 0 0 14px rgba(242, 0, 154, .12);
}
.vip-crown { width: 34px; height: 34px; flex: 0 0 34px; color: #ffd473; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 1px 5px rgba(255, 195, 83, .25)); }
.vip-card div { display: flex; flex-direction: column; gap: 4px; }
.vip-card strong { color: #ffd473; font-size: 16px; }
.vip-card span:not(.vip-crown), .vip-card small { color: #ffe2a0; font-size: 12px; }
.vip-card small { align-self: center; margin-top: 1px; }

.workspace { min-height: 100vh; margin-left: 273px; }
.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    gap: 27px;
    height: 80px;
    padding: 0 27px;
    border-bottom: 1px solid rgba(94, 29, 75, .36);
    background: rgba(9, 5, 10, .93);
    backdrop-filter: blur(14px);
}
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle { width: 68px; height: 48px; flex: 0 0 68px; }
.hamburger { display: flex; width: 27px; flex-direction: column; gap: 5px; }
.hamburger i { width: 26px; height: 3px; border-radius: 3px; background: #f7eaf7; }
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 915px);
    height: 49px;
    padding: 0 19px;
    border: 1px solid #402039;
    border-radius: 28px;
    background: linear-gradient(100deg, rgba(29, 13, 30, .98), rgba(25, 11, 28, .9));
    box-shadow: inset 0 1px 2px rgba(255,255,255,.035);
}
.search-box > svg { width: 21px; height: 21px; flex: 0 0 21px; color: #f9effa; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: #c3b9c9; opacity: 1; }
.topbar-actions { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.notification-wrap { position: relative; }
.notification-button { position: relative; width: 34px; height: 40px; color: #f5d9f0; }
.notification-button > svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.notification-button i { position: absolute; top: 0; right: -3px; display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid #09050a; border-radius: 50%; background: #f01442; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.notification-popover { position: absolute; top: 49px; right: -9px; display: flex; width: 225px; flex-direction: column; gap: 7px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #150b15; box-shadow: 0 10px 28px #000; }
.notification-popover[hidden] { display: none; }
.notification-popover span { color: var(--muted); font-size: 12px; }
.top-profile { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.top-profile strong { font-size: 14px; font-weight: 600; }
.avatar-small { width: 41px; height: 41px; border: 2px solid #e653a8; }
.chevron { width: 17px; height: 17px; color: #e8d8e9; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.main-content { max-width: 1800px; margin: 0 auto; padding: 17px 23px 28px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; min-height: 77px; margin-bottom: 0; }
.heading-copy { display: flex; align-items: center; gap: 19px; }
.heading-icon { width: 38px; height: 38px; color: var(--pink); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 0 8px rgba(255, 0, 156, .4)); }
h1, h2, p { margin: 0; }
.heading-copy h1 { margin-bottom: 2px; font-size: 29px; letter-spacing: -.7px; line-height: 1.1; }
.heading-copy p { color: #f3e8f4; font-size: 14px; }
.date-filter { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 13px; border: 1px solid #57103f; border-radius: 11px; background: linear-gradient(110deg, #170a16, #100811); color: #f5eaf4; cursor: pointer; }
.date-filter > svg:first-child { width: 20px; height: 20px; color: #ffc7ed; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.date-filter .chevron { width: 16px; height: 16px; margin-left: 1px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px; }
.stat-card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 147px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 17px 19px 19px;
    overflow: hidden;
    border: 1px solid #701050;
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(35, 7, 28, .98), rgba(20, 7, 19, .98));
    box-shadow: inset 0 1px 11px rgba(245, 0, 153, .08), 0 0 8px rgba(150,0,94,.08);
}
.stat-card::before { position: absolute; top: 0; left: 12%; width: 70%; height: 1px; background: linear-gradient(90deg, transparent, #ff3db3, transparent); content: ""; }
.stat-icon { position: absolute; top: 15px; left: 18px; z-index: 1; width: 36px; height: 36px; color: #ff36b0; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: rgba(240, 0, 154, .12); filter: drop-shadow(0 0 7px rgba(255, 0, 160, .46)); }
.stat-icon.gold { color: #ffc062; fill: rgba(255, 192, 98, .11); filter: drop-shadow(0 0 7px rgba(255, 190, 60, .28)); }
.stat-watermark { position: absolute; top: 22px; right: 20px; width: 66px; height: 66px; color: rgba(171, 27, 116, .14); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: currentColor; filter: blur(.3px); }
.stat-value { position: relative; z-index: 1; margin-bottom: 3px; font-size: clamp(22px, 1.75vw, 29px); font-weight: 700; line-height: 1.2; letter-spacing: -.45px; white-space: nowrap; }
.stat-label { position: relative; z-index: 1; color: #e6dce9; font-size: 16px; }
.stat-growth { position: absolute; right: 18px; bottom: 17px; display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-size: 15px; font-weight: 600; white-space: nowrap; }
.stat-growth svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.feature-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.06fr); gap: 22px; margin-top: 25px; }
.panel { min-width: 0; border: 1px solid #640f48; border-radius: 14px; background: linear-gradient(135deg, rgba(17, 8, 17, .99), rgba(12, 6, 12, .98)); box-shadow: inset 0 1px 10px rgba(245,0,153,.035); }
.growth-panel { height: 259px; padding: 15px 16px 10px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 25px; }
.panel-heading h2 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.range-tabs { display: flex; align-items: center; gap: 5px; }
.range-tabs button { min-width: 51px; height: 30px; padding: 0 12px; border: 1px solid #37162f; border-radius: 18px; background: #160b17; color: #e7dce9; font-size: 12px; cursor: pointer; }
.range-tabs button.selected { border-color: #ed139e; background: #eb0796; box-shadow: 0 0 12px rgba(238, 0, 150, .35); color: #fff; font-weight: 700; }
.chart-wrap { position: relative; height: 202px; margin: 9px 5px 0 1px; padding: 0 3px 22px 40px; }
.chart-y-labels { position: absolute; top: 3px; bottom: 21px; left: 0; display: flex; flex-direction: column; justify-content: space-between; color: #c9bdce; font-size: 12px; }
.growth-chart { display: block; width: 100%; height: 177px; overflow: visible; }
.chart-grid-lines { fill: none; stroke: rgba(190, 143, 180, .2); stroke-width: .8; }
.chart-area { fill: url(#chart-fill); }
.chart-line { fill: none; stroke: #ff169f; stroke-width: 2.6; filter: url(#chart-glow); }
.chart-points circle { fill: #ff36af; stroke: #fff0fb; stroke-width: 1.5; }
.chart-x-labels { position: absolute; right: 1px; bottom: 0; left: 40px; display: flex; justify-content: space-between; color: #d5c9d8; font-size: 12px; }

.promo-banner { position: relative; height: 259px; overflow: hidden; border: 1px solid #d1148a; border-radius: 14px; background: #28071c; box-shadow: 0 0 14px rgba(240,0,153,.1); }
.promo-photo { position: absolute; top: 0; right: 0; width: 52%; height: 100%; object-fit: cover; object-position: center 14%; }
.promo-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33, 1, 23, .14) 0%, rgba(40, 2, 29, .45) 50%, rgba(23, 3, 19, .03) 100%), linear-gradient(0deg, rgba(22,0,16,.21), transparent 60%); }
.promo-content { position: absolute; top: 50%; left: 7%; display: flex; max-width: 64%; flex-direction: column; align-items: center; transform: translateY(-45%); text-align: center; }
.promo-logo { display: block; width: min(100%, 400px); height: 108px; object-fit: contain; filter: drop-shadow(0 0 13px rgba(255,0,166,.4)); }
.promo-content p { margin-top: -1px; color: #ff43b5; font-size: 21px; font-style: italic; font-weight: 700; text-shadow: 0 1px 4px #160012; }
.promo-content p b { color: #ffafd9; }
.promo-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; padding: 8px 15px; border: 1px solid #ff58bd; border-radius: 22px; background: linear-gradient(100deg, #fc0ba1, #b90070); box-shadow: 0 0 14px rgba(255,0,159,.38); font-size: 13px; font-weight: 700; }
.promo-button > svg:first-child { width: 17px; height: 17px; color: #ffc062; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.promo-button > svg:last-child { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.promo-heart { position: absolute; width: 44px; height: 44px; color: #ff249f; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 0 7px #ff138e); }
.heart-one { bottom: 22px; left: 4%; }
.heart-two { top: 19px; right: 28%; width: 33px; height: 33px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1.06fr) minmax(275px, .7fr); gap: 22px; margin-top: 19px; }
.lower-grid > .panel { height: 288px; padding: 15px 16px 12px; }
.panel-heading > a { display: inline-flex; align-items: center; gap: 7px; color: #ff0c9d; font-size: 14px; font-weight: 700; white-space: nowrap; }
.panel-heading > a svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.user-list { margin-top: 10px; }
.user-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 78px 67px; align-items: center; min-height: 47px; border-bottom: 1px solid rgba(120, 71, 109, .16); }
.user-row:last-child { border-bottom: 0; }
.user-avatar { width: 41px; height: 41px; border: 1px solid #7d315f; }
.avatar-position-two img { object-position: 46% 22%; filter: hue-rotate(-8deg) saturate(.95); }
.avatar-position-three img { object-position: 53% 24%; filter: hue-rotate(10deg) saturate(.88); }
.avatar-position-four img { object-position: 43% 23%; filter: hue-rotate(-17deg) saturate(1.05); }
.avatar-position-five img { object-position: 50% 20%; filter: hue-rotate(14deg) saturate(.9); }
.user-name, .activity-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.user-name strong { font-size: 14px; line-height: 1.1; }
.user-name small, .activity-copy small { overflow: hidden; color: #c9bece; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.verified { display: inline-grid; width: 14px; height: 14px; place-items: center; margin-left: 3px; border-radius: 50%; background: #1687ff; color: #fff; vertical-align: middle; }
.verified svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.presence { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.presence.online { color: #12e872; }
.presence.offline { color: #d0c7d4; }
.presence.offline i { background: #b7adbf; }
.user-row time, .activity-row time { color: #c9bece; font-size: 11px; text-align: right; white-space: nowrap; }

.activity-list { position: relative; margin-top: 9px; }
.activity-list::before { position: absolute; top: 16px; bottom: 15px; left: 9px; width: 1px; background: rgba(230, 0, 142, .44); content: ""; }
.activity-row { position: relative; display: grid; grid-template-columns: 24px 44px minmax(0, 1fr) 65px; align-items: center; min-height: 47px; gap: 5px; border-bottom: 1px solid rgba(120, 71, 109, .14); }
.activity-row:last-child { border-bottom: 0; }
.activity-dot { z-index: 1; width: 14px; height: 14px; border: 1px solid #ff59c1; border-radius: 50%; background: #ed0798; box-shadow: 0 0 8px rgba(239,0,153,.36); }
.activity-icon { width: 25px; height: 25px; justify-self: center; color: #ff50b7; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: rgba(240, 0, 154, .1); }
.activity-icon.gold { color: #ffc062; fill: rgba(255, 192, 98, .1); filter: drop-shadow(0 0 4px rgba(255, 184, 70, .2)); }
.activity-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy small { font-size: 11px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; margin-top: 18px; }
.quick-grid button { display: flex; min-width: 0; height: 89px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #75104f; border-radius: 14px; background: linear-gradient(135deg, rgba(38, 7, 29, .97), rgba(18, 7, 17, .98)); font-size: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick-grid button:hover { transform: translateY(-2px); border-color: #ec0c9c; box-shadow: 0 0 13px rgba(240,0,153,.2); }
.quick-grid button > svg { width: 35px; height: 35px; color: #ff3faf; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: rgba(240, 0, 154, .12); filter: drop-shadow(0 0 6px rgba(255, 0, 156, .32)); }
.quick-grid button:nth-child(2) > svg { color: #ffc062; fill: rgba(255, 192, 98, .1); }
.quick-action-link {
    display: flex;
    min-width: 0;
    height: 89px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #75104f;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(38, 7, 29, .97), rgba(18, 7, 17, .98));
    font-size: 12px;
    text-align: center;
}
.quick-action-link svg { width: 34px; height: 34px; color: #ff3faf; stroke: currentColor; stroke-width: 1.8; fill: rgba(240, 0, 154, .12); }

.module-placeholder { display: flex; align-items: flex-start; gap: 18px; min-height: 180px; padding: 26px; }
.module-placeholder .heading-icon { flex: 0 0 auto; }
.module-placeholder h1 { margin: 0 0 9px; font-size: 25px; }
.module-placeholder p { margin-bottom: 18px; color: var(--muted); line-height: 1.6; }
.module-placeholder a { color: #ff32b0; font-weight: 600; }
.toast { position: fixed; z-index: 40; right: 24px; bottom: 22px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #7a1557; border-radius: 10px; background: #190d19; box-shadow: 0 8px 28px #0009; color: var(--text); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.sidebar-scrim { display: none; }

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 50% 20%, rgba(240, 0, 154, .18), transparent 36%), #09050a;
}
.admin-login-card {
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px;
    border: 1px solid #9d1b67;
    border-radius: 18px;
    background: #150912;
    box-shadow: 0 18px 55px rgba(0,0,0,.55), 0 0 22px rgba(240,0,154,.12);
}
.admin-login-card img { width: 260px; max-width: 100%; margin: 0 auto 4px; }
.admin-login-card h1 { text-align: center; font-size: 24px; }
.admin-login-card label { display: flex; flex-direction: column; gap: 7px; color: #e9dfea; }
.admin-login-card input { height: 48px; padding: 0 13px; border: 1px solid #68204f; border-radius: 10px; background: #0d080d; color: #fff; outline: none; }
.admin-login-card input:focus { border-color: #f0009a; }
.admin-login-card button, .module-form button { height: 46px; border: 0; border-radius: 10px; background: linear-gradient(90deg,#ef0a96,#bc0870); color: #fff; font-weight: 700; cursor: pointer; }
.admin-error { padding: 10px 12px; border: 1px solid #b12c52; border-radius: 9px; background: #32101a; color: #ffd7df; }

.admin-module { min-height: calc(100vh - 100px); }
.module-heading { display: flex; align-items: center; justify-content: space-between; min-height: 77px; margin-bottom: 13px; }
.module-heading h1 { font-size: 29px; }
.module-heading p { margin-top: 4px; color: var(--muted); }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #70204e; border-radius: 20px; color: #e9deea; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #20df72; box-shadow: 0 0 9px #20df72; }
.module-search { display: block; max-width: 360px; margin: 0 0 12px auto; }
.module-search input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid #5d1c47; border-radius: 20px; background: #140912; color: #fff; outline: none; }
.module-search span { display: none; }
.module-toolbar { display: flex; justify-content: flex-end; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #5b1a44; border-radius: 14px; background: #100810; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.admin-table th, .admin-table td { padding: 13px 12px; border-bottom: 1px solid #35162d; text-align: left; vertical-align: middle; }
.admin-table th { color: #dcbfd1; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table td { color: #f4edf3; font-size: 13px; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: #bdaebe; }
.status-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 13px; background: #30202d; color: #ddd1dd; text-transform: capitalize; }
.status-pill.active, .status-pill.approved { background: rgba(16,195,95,.16); color: #63e998; }
.status-pill.pending, .status-pill.open { background: rgba(240,160,20,.13); color: #ffd27a; }
.status-pill.suspended, .status-pill.rejected, .status-pill.closed { background: rgba(220,45,72,.14); color: #ff8a9d; }
.inline-action { display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px 2px 0; }
.inline-action input { width: 95px; height: 34px; padding: 0 8px; border: 1px solid #572044; border-radius: 7px; background: #0d080d; color: #fff; }
.inline-action button, .secondary { height: 34px; padding: 0 10px; border: 1px solid #692151; border-radius: 8px; background: #1b0d18; color: #fff; cursor: pointer; }
.inline-action button.success { border-color: #209858; color: #64e59a; }
.inline-action button.danger { border-color: #b83255; color: #ff91a5; }
.empty-table { height: 90px; text-align: center !important; color: #bdaebe !important; }
.module-form { max-width: 680px; display: grid; gap: 12px; margin-bottom: 18px; padding: 18px; border: 1px solid #64204a; border-radius: 14px; background: #100810; }
.module-form label { display: flex; flex-direction: column; gap: 7px; color: #dcd1dc; }
.module-form input, .module-form select, .module-form textarea { min-height: 43px; padding: 10px 12px; border: 1px solid #5e1d47; border-radius: 9px; background: #0c080c; color: #fff; }
.module-form textarea { min-height: 110px; resize: vertical; }
.admin-flash { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #286d49; border-radius: 10px; background: #10251a; color: #b7f1cf; }
.admin-flash.error { border-color: #853454; background: #2a101b; color: #ffc0d4; }
.app-release-card { max-width: 680px; margin-bottom: 18px; padding: 18px; }
.app-release-card p { color: var(--muted); line-height: 1.7; }
.app-upload-form { margin-top: 20px; }
.app-upload-form small { color: var(--muted); line-height: 1.6; }
.module-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.method-heading { margin-top: 24px; }
.empty-module-card { max-width: 680px; padding: 28px; border: 1px solid #64204a; border-radius: 14px; background: #100810; }
.empty-module-card p { margin-top: 8px; color: var(--muted); }

@media (max-width: 1300px) {
    .sidebar { width: 245px; padding-right: 12px; padding-left: 12px; }
    .workspace { margin-left: 245px; }
    .brand { margin-right: -12px; margin-left: -12px; }
    .stats-grid { gap: 14px; }
    .stat-card { padding-right: 13px; padding-left: 14px; }
    .stat-label { max-width: calc(100% - 76px); margin-bottom: 14px; font-size: 13px; }
    .stat-growth { right: 12px; bottom: 11px; font-size: 12px; }
    .feature-grid, .lower-grid { gap: 15px; }
    .growth-panel .panel-heading h2 { font-size: 15px; white-space: nowrap; }
    .lower-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .quick-actions { grid-column: 1 / -1; height: auto !important; }
    .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .sidebar { width: 245px; transform: translateX(-101%); transition: transform .24s ease; box-shadow: 15px 0 40px rgba(0,0,0,.4); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-scrim { position: fixed; z-index: 19; inset: 0; background: rgba(0,0,0,.6); }
    body.sidebar-open .sidebar-scrim { display: block; }
    .workspace { margin-left: 0; }
    .topbar { gap: 13px; padding: 0 18px; }
    .menu-toggle { width: 37px; flex-basis: 37px; }
    .main-content { padding-right: 18px; padding-left: 18px; }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .growth-panel, .promo-banner { height: 270px; }
    .growth-panel { max-width: none; }
    .promo-photo { width: 48%; }
    .promo-content { left: 5%; max-width: 62%; }
    .lower-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .quick-actions { grid-column: 1 / -1; }
    .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .topbar { height: 67px; gap: 9px; padding: 0 12px; }
    .menu-toggle { width: 31px; flex-basis: 31px; }
    .hamburger, .hamburger i { width: 23px; }
    .search-box { height: 42px; gap: 7px; padding: 0 11px; }
    .search-box > span { font-size: 24px; }
    .search-box input { min-width: 0; font-size: 12px; }
    .topbar-actions { gap: 10px; }
    .top-profile { gap: 0; }
    .top-profile strong, .top-profile .chevron { display: none; }
    .avatar-small { width: 35px; height: 35px; }
    .notification-button { width: 27px; }
    .main-content { padding: 14px 13px 22px; }
    .page-heading { min-height: 67px; }
    .heading-copy { gap: 10px; }
    .heading-icon { width: 32px; height: 32px; }
    .heading-copy h1 { font-size: 24px; }
    .heading-copy p { font-size: 12px; }
    .date-filter { height: 37px; gap: 6px; padding: 0 9px; font-size: 11px; }
    .date-filter > svg:first-child { width: 17px; height: 17px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .stat-card { height: 132px; padding: 14px 12px; }
    .stat-icon { top: 12px; left: 13px; width: 30px; height: 30px; }
    .stat-watermark { top: 18px; right: 9px; width: 48px; height: 48px; }
    .stat-value { margin-bottom: 4px; font-size: clamp(19px, 5.4vw, 25px); }
    .stat-label { max-width: calc(100% - 55px); margin-bottom: 12px; font-size: 11px; }
    .stat-growth { right: 10px; bottom: 11px; font-size: 11px; }
    .feature-grid { gap: 13px; margin-top: 15px; }
    .growth-panel { height: 252px; padding: 13px 10px 9px; }
    .panel-heading h2 { font-size: 15px; }
    .range-tabs { gap: 3px; }
    .range-tabs button { min-width: 41px; height: 27px; padding: 0 8px; font-size: 11px; }
    .chart-wrap { margin-top: 8px; padding-left: 34px; }
    .chart-y-labels { font-size: 10px; }
    .chart-x-labels { left: 34px; font-size: 10px; }
    .promo-banner { height: 224px; }
    .promo-photo { width: 56%; object-position: center 10%; }
    .promo-content { left: 3%; max-width: 66%; }
    .promo-logo { height: 81px; }
    .promo-content p { font-size: 15px; }
    .promo-button { margin-top: 10px; padding: 7px 11px; font-size: 11px; }
    .promo-heart { width: 31px; height: 31px; }
    .lower-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 13px; }
    .lower-grid > .panel { height: auto; min-height: 278px; padding: 14px 12px 10px; }
    .quick-actions { grid-column: auto; min-height: 248px !important; }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
    .quick-grid button { height: 82px; }
    .quick-action-link { height: 82px; }
    .user-row { grid-template-columns: 47px minmax(0, 1fr) 70px 58px; min-height: 47px; }
    .user-avatar { width: 38px; height: 38px; }
    .user-name strong { font-size: 13px; }
    .user-name small { font-size: 10px; }
    .presence { gap: 4px; font-size: 10px; }
    .user-row time, .activity-row time { font-size: 10px; }
    .activity-row { grid-template-columns: 22px 37px minmax(0, 1fr) 59px; gap: 4px; min-height: 47px; }
    .activity-icon { width: 22px; height: 22px; }
}

@media (max-width: 370px) {
    .date-filter { gap: 4px; padding: 0 6px; font-size: 10px; }
    .stats-grid { gap: 8px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 11px; }
    .stat-growth { font-size: 10px; }
    .user-row { grid-template-columns: 42px minmax(0, 1fr) 62px 52px; }
    .user-row time, .activity-row time { font-size: 9px; }
    .presence { font-size: 9px; }
}
