* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        Arial,
        sans-serif;

    background: #080b10;
    color: #f5f7fa;
}

body {
    min-height: 100vh;
}


/* LOGIN */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at top,
            #18231c 0%,
            #0b1010 38%,
            #07090d 100%
        );
}

.login-card {
    width: 100%;
    max-width: 420px;

    padding: 34px;

    border-radius: 24px;

    background:
        rgba(17, 21, 26, 0.94);

    border:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 24px 80px
        rgba(0,0,0,0.45);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 34px;
}

.brand-mark {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #ff9d27,
            #ff6a00
        );

    color: #101010;
    font-weight: 900;
}

.brand h1 {
    margin: 0;
    font-size: 20px;
}

.brand p {
    margin: 4px 0 0;
    color: #8e99a6;
    font-size: 13px;
}

.login-heading {
    margin-bottom: 24px;
}

.login-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.login-heading p {
    margin: 0;
    color: #8e99a6;
    line-height: 1.5;
}

label {
    display: block;

    margin:
        18px 0
        8px;

    font-size: 13px;

    color: #aab3bd;
}

input {
    width: 100%;

    padding:
        14px 15px;

    border-radius: 12px;

    border:
        1px solid #293039;

    background: #0d1117;

    color: #fff;

    outline: none;

    font-size: 15px;
}

input:focus {
    border-color: #ff8a1f;
}

button {
    width: 100%;

    margin-top: 24px;

    padding: 14px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #ff9d27,
            #ff6a00
        );

    color: #101010;

    font-weight: 800;
    font-size: 15px;

    cursor: pointer;
}

.error-message {
    margin-bottom: 12px;

    padding: 12px;

    border-radius: 10px;

    background:
        rgba(255, 70, 70, 0.10);

    border:
        1px solid rgba(255, 70, 70, 0.25);

    color: #ff8585;

    font-size: 13px;
}

.login-footer {
    text-align: center;

    margin-top: 22px;

    color: #66717d;

    font-size: 12px;
}


/* ADMIN */

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

.sidebar {
    width: 250px;

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    padding: 24px 18px;

    background: #0c1015;

    border-right:
        1px solid rgba(255,255,255,0.07);

    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 34px;
}

.sidebar-brand strong {
    display: block;
}

.sidebar-brand span {
    display: block;

    margin-top: 3px;

    color: #7e8995;

    font-size: 12px;
}

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

nav a {
    padding: 12px 14px;

    border-radius: 11px;

    color: #9aa4af;

    text-decoration: none;

    transition: 0.15s;
}

nav a:hover,
nav a.active {
    color: #fff;

    background:
        rgba(255, 139, 31, 0.10);
}

nav a.active {
    color: #ff9a35;
}

.logout-button {
    margin-top: auto;

    background: #191e25;

    color: #e1e5e9;
}

.sidebar form {
    margin-top: auto;
}

.content {
    width: calc(100% - 250px);

    margin-left: 250px;

    padding: 34px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}

.top-header h1 {
    margin: 0;
    font-size: 30px;
}

.top-header p {
    margin: 6px 0 0;
    color: #7f8a96;
}

.admin-badge {
    padding: 8px 12px;

    border-radius: 999px;

    background:
        rgba(48, 201, 118, 0.10);

    color: #55d98f;

    font-size: 13px;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 22px;
}

.stat-card,
.panel {
    border-radius: 18px;

    border:
        1px solid rgba(255,255,255,0.07);

    background: #10151b;
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    display: block;

    color: #84909c;

    font-size: 13px;
}

.stat-card strong {
    display: block;

    margin-top: 12px;

    font-size: 28px;
}

.stat-card small {
    display: block;

    margin-top: 8px;

    color: #66717c;
}

.success {
    color: #54dc91;
}

.panel {
    padding: 24px;
}

.panel h2 {
    margin-top: 0;
}

.panel p {
    color: #8b96a1;
    line-height: 1.7;
}


/* MOBILE */

@media (
    max-width: 900px
) {

    .sidebar {
        width: 190px;
    }

    .content {
        width:
            calc(100% - 190px);

        margin-left: 190px;

        padding: 22px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (
    max-width: 650px
) {

    .admin-layout {
        display: block;
    }

    .sidebar {
        position: relative;

        width: 100%;
        height: auto;
    }

    .content {
        width: 100%;

        margin-left: 0;

        padding: 18px;
    }

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

    .top-header {
        align-items: flex-start;
        gap: 16px;
    }
}
/* USERS */

.user-search {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-search input {
    flex: 1;
    margin: 0;
}

.user-search button {
    width: auto;
    margin: 0;
    padding-left: 24px;
    padding-right: 24px;
}

.clear-search {
    color: #9aa4af;
    text-decoration: none;
    font-size: 13px;
}

.users-panel {
    margin-top: 18px;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.table-header h2 {
    margin: 0;
}

.table-header p {
    margin: 6px 0 0;
    color: #6f7a86;
    font-size: 13px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.users-table th {
    padding: 13px 15px;
    text-align: left;

    color: #727e8a;
    font-size: 12px;
    font-weight: 600;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

.users-table td {
    padding: 16px 15px;

    border-bottom:
        1px solid rgba(255,255,255,0.05);

    font-size: 13px;
}

.users-table tbody tr {
    transition: 0.15s;
}

.users-table tbody tr:hover {
    background:
        rgba(255,255,255,0.025);
}

.wallet-address {
    font-family: monospace;
    color: #d8dee6;
}

.plan-badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 7px;

    background:
        rgba(255, 145, 35, 0.10);

    color: #ff9b3d;

    font-size: 11px;
    font-weight: 700;
}

.status-active {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 7px;

    background:
        rgba(54, 211, 125, 0.10);

    color: #55d98f;

    font-size: 11px;
    font-weight: 700;
}

.status-inactive {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 7px;

    background:
        rgba(255,255,255,0.06);

    color: #909aa5;

    font-size: 11px;
}

.empty-table {
    text-align: center;
    color: #6f7a86;
    padding: 40px !important;
}
/* USER DETAILS */

.view-button {
    display: inline-block;

    padding: 7px 12px;

    border-radius: 8px;

    background:
        rgba(255, 145, 35, 0.10);

    color: #ff9b3d;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

.view-button:hover {
    background:
        rgba(255, 145, 35, 0.18);
}

.back-link {
    display: inline-block;

    margin-bottom: 12px;

    color: #ff9b3d;

    text-decoration: none;

    font-size: 13px;
}

.wallet-full {
    font-family: monospace;
    word-break: break-all;
}

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.detail-card {
    padding: 22px;

    border-radius: 18px;

    border:
        1px solid rgba(255,255,255,0.07);

    background: #10151b;
}

.detail-card h2 {
    margin:
        0 0 18px;

    font-size: 17px;
}

.detail-row {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding:
        11px 0;

    border-bottom:
        1px solid rgba(255,255,255,0.05);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span {
    color: #7d8894;
    font-size: 13px;
}

.detail-row strong {
    text-align: right;

    font-size: 13px;

    font-weight: 700;
}

.mono {
    font-family: monospace;
}

.break-text {
    max-width: 60%;

    word-break: break-all;
}

.accent {
    color: #ff9b3d;
}

@media (
    max-width: 900px
) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
/* ADMIN ACTIONS */

.admin-actions {
    margin-top: 18px;
}

.action-heading h2 {
    margin: 0;
}

.action-heading p {
    margin: 7px 0 20px;
    color: #7d8894;
    font-size: 13px;
}

.status-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.status-form > div {
    flex: 1;
}

.status-form label {
    margin-top: 0;
}

.status-form select {
    width: 100%;

    padding: 14px;

    border-radius: 12px;

    border: 1px solid #293039;

    background: #0d1117;
    color: #fff;

    outline: none;
}

.status-form button {
    width: auto;
    margin: 0;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 650px) {
    .status-form {
        display: block;
    }

    .status-form button {
        width: 100%;
        margin-top: 14px;
    }
}
/* EDIT USER VALUES */

.edit-values-form {
    margin-top: 8px;
}

.edit-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.edit-grid label {
    margin-top: 0;
}

.edit-values-form button {
    width: auto;

    padding-left: 28px;
    padding-right: 28px;
}

@media (max-width: 700px) {

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

    .edit-values-form button {
        width: 100%;
    }
}
