* {
    box-sizing: border-box;
}

:root {
    --bg: #080b0d;
    --sidebar: #0c1013;
    --panel: #11171b;
    --panel-hover: #151c21;
    --border: #202a30;
    --text: #eef3f5;
    --muted: #7e8b92;
    --accent: #62e6b4;
    --accent-soft: rgba(98, 230, 180, 0.10);
    --danger: #ff6b6b;
    --warning: #e8bd69;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 70% 0%, rgba(98, 230, 180, 0.055), transparent 28%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    min-height: 100vh;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 245px;
    min-height: 100vh;
    background: rgba(12, 16, 19, 0.96);
    border-right: 1px solid var(--border);
    padding: 30px 18px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 5px;
    padding: 0 14px;
}

.subtitle {
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 5px 14px 35px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

nav a:hover {
    color: var(--text);
    background: var(--panel);
}

nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(98, 230, 180, 0.12);
}

/* MAIN */

.main {
    margin-left: 245px;
    width: calc(100% - 245px);
    padding: 38px 45px 60px;
    max-width: 1600px;
}

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 38px;
}

h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

header p {
    color: var(--muted);
    margin: 7px 0 0;
    font-size: 14px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(17, 23, 27, 0.7);
    color: #aeb9be;
    font-size: 12px;
}

.status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(98, 230, 180, 0.8);
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.card {
    background: linear-gradient(
        145deg,
        rgba(20, 28, 32, 0.95),
        rgba(13, 18, 21, 0.95)
    );
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 22px;
    min-height: 125px;
    position: relative;
    overflow: hidden;
    transition: 0.2s ease;
}

.card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -45px;
    top: -45px;
    background: var(--accent-soft);
    border-radius: 50%;
    filter: blur(15px);
}

.card:hover {
    transform: translateY(-2px);
    border-color: #2d3b42;
    background: var(--panel-hover);
}

.label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.value {
    margin-top: 17px;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* PANELS */

.panel {
    background: rgba(14, 19, 22, 0.9);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 24px;
    margin-bottom: 18px;
    min-height: 150px;
}

.panel h2 {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

#prediction-data,
#alert-data {
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    background: #0a0e10;
    border: 1px solid #182126;
    border-radius: 9px;
    padding: 15px;
    overflow-x: auto;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        width: 190px;
    }

    .main {
        margin-left: 190px;
        width: calc(100% - 190px);
        padding: 25px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 18px;
    }
}

/* =========================
   ORSYN LOGIN
   ========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(circle at 50% 35%, rgba(98, 230, 180, 0.09), transparent 28%),
        radial-gradient(circle at 15% 85%, rgba(44, 78, 89, 0.10), transparent 30%),
        #080b0d;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(circle at center, black, transparent 75%);
    pointer-events: none;
}

.login-box {
    width: 100%;
    max-width: 410px;
    padding: 46px 42px 42px;
    position: relative;
    z-index: 1;
    background:
        linear-gradient(145deg, rgba(19, 27, 31, 0.97), rgba(10, 14, 17, 0.98));
    border: 1px solid #253139;
    border-radius: 18px;
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(98, 230, 180, 0.045);
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(98, 230, 180, 0.55),
        transparent
    );
}

.login-box .logo {
    padding: 0;
    text-align: center;
    font-size: 29px;
    letter-spacing: 8px;
}

.login-box .subtitle {
    padding: 6px 0 42px;
    text-align: center;
    font-size: 9px;
    letter-spacing: 4px;
}

.login-box h1 {
    margin: 0;
    text-align: center;
    font-size: 25px;
    letter-spacing: -0.5px;
}

.login-description {
    margin: 9px 0 30px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#login-form input {
    width: 100%;
    height: 51px;
    padding: 0 16px;
    border: 1px solid #27343b;
    border-radius: 9px;
    outline: none;
    background: #0a0f12;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s ease;
}

#login-form input::placeholder {
    color: #59666d;
}

#login-form input:hover {
    border-color: #33434b;
}

#login-form input:focus {
    border-color: rgba(98, 230, 180, 0.55);
    box-shadow: 0 0 0 3px rgba(98, 230, 180, 0.07);
    background: #0b1114;
}

#login-form button {
    width: 100%;
    height: 51px;
    margin-top: 8px;
    border: 1px solid rgba(98, 230, 180, 0.5);
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        rgba(98, 230, 180, 0.18),
        rgba(98, 230, 180, 0.08)
    );
    color: var(--accent);
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: 0.2s ease;
}

#login-form button:hover {
    transform: translateY(-1px);
    background: rgba(98, 230, 180, 0.16);
    border-color: rgba(98, 230, 180, 0.75);
    box-shadow: 0 8px 25px rgba(98, 230, 180, 0.08);
}

#login-form button:active {
    transform: translateY(0);
}

#error {
    min-height: 18px;
    margin-top: 3px;
    color: var(--danger);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 500px) {
    .login-page {
        padding: 18px;
    }

    .login-box {
        padding: 38px 25px 32px;
        border-radius: 15px;
    }
}

/* =========================
   ORSYN USERS
   ========================= */

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.panel-header h2 {
    margin: 0;
}

.panel-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

#tier-filter {
    min-width: 135px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #0a0f12;
    color: #c9d2d6;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

#tier-filter:focus {
    border-color: rgba(98, 230, 180, 0.45);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #1a2429;
    border-radius: 10px;
    background: #0a0e10;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

thead {
    background: rgba(255, 255, 255, 0.018);
}

th {
    padding: 13px 16px;
    text-align: left;
    color: #66747b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
    border-bottom: 1px solid #1b252a;
}

td {
    padding: 15px 16px;
    border-bottom: 1px solid #182126;
    color: #c5ced2;
    font-size: 12px;
    vertical-align: middle;
}

tbody tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: rgba(98, 230, 180, 0.025);
}

tbody tr:last-child td {
    border-bottom: none;
}

.user-name {
    color: #edf2f4;
    font-weight: 600;
    font-size: 13px;
}

.user-id {
    margin-top: 4px;
    color: #58666d;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.mono {
    color: #9ba8ae;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.tier {
    display: inline-flex;
    align-items: center;
    min-width: 55px;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tier-free {
    color: #89969c;
    background: rgba(137, 150, 156, 0.08);
    border: 1px solid rgba(137, 150, 156, 0.14);
}

.tier-pro {
    color: var(--accent);
    background: rgba(98, 230, 180, 0.08);
    border: 1px solid rgba(98, 230, 180, 0.18);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(98, 230, 180, 0.055);
    border: 1px solid rgba(98, 230, 180, 0.10);
    color: #93b5a9;
    font-size: 9px;
    letter-spacing: 0.3px;
}

.muted {
    color: #59666d;
}

.date {
    color: #89969c;
    white-space: nowrap;
}

.loading,
.empty,
.error {
    padding: 35px !important;
    text-align: center;
    color: var(--muted);
}

.error {
    color: var(--danger);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.pagination button {
    height: 35px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #0b1013;
    color: #9aa7ac;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: 0.18s ease;
}

.pagination button:hover:not(:disabled) {
    color: var(--accent);
    border-color: rgba(98, 230, 180, 0.35);
    background: rgba(98, 230, 180, 0.05);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: default;
}

#page-info {
    color: #68767c;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    min-width: 55px;
    text-align: center;
}

@media (max-width: 700px) {
    .panel-header {
        flex-direction: column;
    }

    #tier-filter {
        width: 100%;
    }

    .pagination {
        justify-content: center;
    }
}


/* =========================
   ORSYN PREDICTIONS
   ========================= */

.prediction-cards {
    margin-bottom: 25px;
}

.prediction-filters {
    display: flex;
    gap: 8px;
}

.prediction-filters select {
    height: 38px;
    min-width: 135px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #0a0f12;
    color: #aeb9be;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s ease;
}

.prediction-filters select:hover,
.prediction-filters select:focus {
    border-color: rgba(98, 230, 180, 0.4);
    color: var(--text);
}

.prediction-table {
    min-width: 1180px;
}

.prediction-table th {
    white-space: nowrap;
}

.prediction-table td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.market-name {
    max-width: 330px;
    color: #e5ecef;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.45;
}

.market-id {
    margin-top: 5px;
    color: #536168;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
}

.signal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.signal-moving {
    color: #9db1b8;
    background: rgba(157, 177, 184, 0.07);
    border: 1px solid rgba(157, 177, 184, 0.13);
}

.signal-strong {
    color: var(--warning);
    background: rgba(232, 189, 105, 0.08);
    border: 1px solid rgba(232, 189, 105, 0.17);
}

.signal-extreme {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.17);
}

.category-tag {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(98, 230, 180, 0.045);
    border: 1px solid rgba(98, 230, 180, 0.10);
    color: #8faea3;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.number-cell {
    color: #c4cdd1;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    white-space: nowrap;
}

.shift-cell {
    color: var(--accent);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 27px;
    border-radius: 6px;
    background: rgba(98, 230, 180, 0.07);
    border: 1px solid rgba(98, 230, 180, 0.12);
    color: var(--accent);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.confidence {
    color: #9ca9ae;
    font-size: 10px;
    white-space: nowrap;
}

.prediction-table tbody tr {
    position: relative;
}

.prediction-table tbody tr:hover {
    background:
        linear-gradient(
            90deg,
            rgba(98, 230, 180, 0.035),
            rgba(98, 230, 180, 0.012)
        );
}

.prediction-table tbody tr:hover .market-name {
    color: #ffffff;
}

.prediction-table tbody tr:hover .score {
    border-color: rgba(98, 230, 180, 0.28);
    background: rgba(98, 230, 180, 0.10);
}

.prediction-table .loading {
    height: 180px;
}

.prediction-table .empty,
.prediction-table .error {
    height: 150px;
}

@media (max-width: 900px) {
    .prediction-filters {
        width: 100%;
        flex-direction: column;
    }

    .prediction-filters select {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .prediction-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   ORSYN ALERTS
   ========================= */

.alert-cards {
    margin-bottom: 25px;
}

.alert-filters {
    display: flex;
    gap: 8px;
}

.alert-filters select {
    height: 38px;
    min-width: 130px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #0a0f12;
    color: #aeb9be;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s ease;
}

.alert-filters select:hover,
.alert-filters select:focus {
    border-color: rgba(98, 230, 180, 0.4);
    color: var(--text);
}

.alert-table {
    min-width: 1250px;
}

.alert-table th {
    white-space: nowrap;
}

.priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 67px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.9px;
}

.priority-high {
    color: var(--warning);
    background: rgba(232, 189, 105, 0.08);
    border: 1px solid rgba(232, 189, 105, 0.17);
}

.priority-critical {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.09);
    border: 1px solid rgba(255, 107, 107, 0.18);
    box-shadow: 0 0 14px rgba(255, 107, 107, 0.04);
}

.direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 5px 8px;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
}

.direction-up {
    color: var(--accent);
    background: rgba(98, 230, 180, 0.07);
    border: 1px solid rgba(98, 230, 180, 0.13);
}

.direction-down {
    color: #ff8f8f;
    background: rgba(255, 107, 107, 0.07);
    border: 1px solid rgba(255, 107, 107, 0.13);
}

.direction-flat {
    color: #89969c;
    background: rgba(137, 150, 156, 0.06);
    border: 1px solid rgba(137, 150, 156, 0.11);
}

.lifecycle {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 6px;
    color: #9db5ad;
    background: rgba(98, 230, 180, 0.045);
    border: 1px solid rgba(98, 230, 180, 0.10);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.alert-table tbody tr {
    transition: background 0.18s ease;
}

.alert-table tbody tr:hover {
    background:
        linear-gradient(
            90deg,
            rgba(98, 230, 180, 0.035),
            rgba(98, 230, 180, 0.012)
        );
}

.alert-table tbody tr:hover .market-name {
    color: #ffffff;
}

.alert-table tbody tr:hover .score {
    border-color: rgba(98, 230, 180, 0.28);
    background: rgba(98, 230, 180, 0.10);
}

.alert-table .loading {
    height: 180px;
}

.alert-table .empty,
.alert-table .error {
    height: 150px;
}

@media (max-width: 900px) {
    .alert-filters {
        width: 100%;
        flex-direction: column;
    }

    .alert-filters select {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .alert-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   ORSYN DASHBOARD
   ========================= */

.main {
    max-width: 1500px;
}

.cards {
    gap: 14px;
}

.card {
    min-height: 132px;
    padding: 23px;
    background:
        linear-gradient(145deg, rgba(19, 27, 31, 0.98), rgba(11, 16, 19, 0.98));
}

.card .value {
    font-size: 34px;
}

.panel {
    padding: 26px;
    background:
        linear-gradient(145deg, rgba(16, 22, 26, 0.96), rgba(10, 15, 18, 0.96));
}

.panel-header {
    margin-bottom: 26px;
}

.panel-header h2 {
    font-size: 16px;
    letter-spacing: -0.3px;
}

.intel-grid,
.alert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.alert-grid {
    grid-template-columns: repeat(3, 1fr);
}

.metric {
    padding: 17px 18px;
    border: 1px solid #1d282e;
    border-radius: 9px;
    background: rgba(8, 12, 14, 0.7);
}

.metric span {
    display: block;
    color: #718087;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    margin-top: 9px;
    color: #e9eff1;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.5px;
}

.distribution {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.distribution-item > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.distribution-item span {
    color: #89969c;
    font-size: 11px;
}

.distribution-item strong {
    color: #cbd4d7;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.bar {
    height: 5px;
    overflow: hidden;
    border-radius: 10px;
    background: #182126;
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(98, 230, 180, 0.22);
    transition: width 0.6s ease;
}

.alert-status {
    padding: 7px 11px;
    border: 1px solid #273238;
    border-radius: 7px;
    color: #75838a;
    background: rgba(255, 255, 255, 0.018);
    font-size: 10px;
}

.recent {
    margin-top: 4px;
    border-top: 1px solid #1b252a;
    padding-top: 19px;
}

.recent-title {
    margin-bottom: 10px;
    color: #718087;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.recent .empty {
    padding: 18px 0 !important;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 11px;
}

@media (max-width: 900px) {
    .intel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .intel-grid,
    .alert-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   ORSYN SUBSCRIPTIONS
   ========================= */

.subscription-cards {
    margin-bottom: 25px;
}

.subscription-table {
    min-width: 900px;
}

.subscription-table th {
    white-space: nowrap;
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.subscription-active {
    color: var(--accent);
    background: rgba(98, 230, 180, 0.07);
    border: 1px solid rgba(98, 230, 180, 0.14);
}

.subscription-inactive {
    color: #69767c;
    background: rgba(105, 118, 124, 0.06);
    border: 1px solid rgba(105, 118, 124, 0.11);
}

.subscription-table tbody tr:hover {
    background:
        linear-gradient(
            90deg,
            rgba(98, 230, 180, 0.035),
            rgba(98, 230, 180, 0.012)
        );
}

@media (max-width: 700px) {
    .subscription-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   ORSYN SUBSCRIPTIONS
   ========================= */

.subscription-cards {
    margin-bottom: 25px;
}

.subscription-table {
    min-width: 900px;
}

.subscription-table th {
    white-space: nowrap;
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.subscription-active {
    color: var(--accent);
    background: rgba(98, 230, 180, 0.07);
    border: 1px solid rgba(98, 230, 180, 0.14);
}

.subscription-inactive {
    color: #69767c;
    background: rgba(105, 118, 124, 0.06);
    border: 1px solid rgba(105, 118, 124, 0.11);
}

.subscription-table tbody tr {
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.subscription-table tbody tr:hover {
    background:
        linear-gradient(
            90deg,
            rgba(98, 230, 180, 0.035),
            rgba(98, 230, 180, 0.012)
        );
}

.subscription-table td {
    vertical-align: middle;
}

.subscription-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
    color: var(--text);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.subscription-user {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.subscription-user-name {
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
}

.subscription-user-id {
    color: var(--muted);
    font-size: 9px;
}

.subscription-telegram {
    color: var(--muted);
    font-family: monospace;
    font-size: 10px;
}

.subscription-date {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.subscription-filter {
    min-width: 150px;
}

@media (max-width: 700px) {
    .subscription-cards {
        grid-template-columns: 1fr 1fr;
    }

    .subscription-table {
        min-width: 760px;
    }
}


/* =========================
   SUBSCRIPTIONS CATEGORY SELECT
   ========================= */

.subscription-filter,
#categoryFilter {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;

    height: 38px;
    padding: 0 38px 0 13px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 17px) 16px / 5px 5px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px) 16px / 5px 5px no-repeat,
        var(--panel);

    color: var(--text);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.3px;

    outline: none;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.subscription-filter:hover,
#categoryFilter:hover {
    border-color: rgba(98, 230, 180, 0.35);
}

.subscription-filter:focus,
#categoryFilter:focus {
    border-color: rgba(98, 230, 180, 0.55);
    box-shadow: 0 0 0 3px rgba(98, 230, 180, 0.06);
}

#categoryFilter option {
    background: var(--panel);
    color: var(--text);
}


/* FORCE DARK CATEGORY SELECT */

select#categoryFilter,
select.subscription-filter {
    all: unset !important;

    box-sizing: border-box !important;
    display: block !important;

    width: 160px !important;
    height: 38px !important;

    padding: 0 36px 0 13px !important;

    border: 1px solid #202a30 !important;
    border-radius: 8px !important;

    background-color: #11171b !important;
    color: #eef3f5 !important;

    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 650 !important;

    line-height: 38px !important;
    cursor: pointer !important;
    outline: none !important;

    appearance: auto !important;
    -webkit-appearance: auto !important;
}

select#categoryFilter:hover,
select.subscription-filter:hover {
    border-color: #3a4a51 !important;
}

select#categoryFilter:focus,
select.subscription-filter:focus {
    border-color: #62e6b4 !important;
    box-shadow: 0 0 0 3px rgba(98, 230, 180, 0.06) !important;
}

select#categoryFilter option,
select.subscription-filter option {
    background: #11171b !important;
    color: #eef3f5 !important;
}

