:root {
    --bg-main: #0d0f12;
    --bg-elevated: #111419;
    --bg-card: #15191f;
    --bg-soft: #1c222b;
    --text-main: #f2f4f5;
    --text-muted: #949da8;
    --text-soft: #c9d1d9;
    --accent-primary: #6fd3c7;
    --accent-secondary: #d5ae5d;
    --accent-hover: #8ae1d8;
    --success: #62c78c;
    --danger: #e56b6f;
    --warning: #d5ae5d;
    --border: #29313b;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(13, 15, 18, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-container {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    color: var(--text-main);
    font-weight: 750;
    font-size: 1.08rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--text-soft);
    border-radius: var(--radius);
    font-weight: 650;
    font-size: 0.93rem;
    border: 1px solid transparent;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #181d24;
    border-color: #313a46;
    color: var(--text-main);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

main.container {
    flex: 1;
    padding-top: 34px;
    padding-bottom: 46px;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    color: var(--text-main);
    line-height: 1.16;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h2 {
    font-size: 1.45rem;
}

p {
    margin: 0 0 12px;
}

.account-header,
.page-header {
    margin-bottom: 28px;
}

.account-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.account-hero h1 {
    margin-bottom: 0;
}

.account-hero-title {
    min-width: 0;
}

.account-meta {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    color: var(--text-muted);
    font-weight: 700;
    text-align: left;
}

.account-meta code {
    color: var(--text-main);
}

.account-header p,
.page-header p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card,
.auth-box,
.faq-card,
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 22px;
}

.card-title {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 750;
}

.subscription-state {
    font-size: 1.5rem;
    font-weight: 780;
}

.subscription-state-active {
    color: var(--success);
}

.subscription-state-expired {
    color: var(--danger);
}

.account-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.account-action-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #15191f;
    color: var(--text-soft) !important;
    font-weight: 780;
    text-decoration: none;
}

.account-action-button:hover {
    border-color: #5ebcb2;
    background: #1d2e2a;
    color: var(--accent-hover) !important;
}

.account-section-card {
    width: min(760px, 100%);
    margin: 0 auto;
}

.account-form-card {
    margin-top: 12px;
}

.account-logout-row {
    margin-top: 22px;
    text-align: right;
}

.copy-notice {
    display: none;
    color: var(--success);
    font-size: 0.875rem;
}

.no-margin-link {
    margin-left: 0 !important;
}

.card-price {
    margin-bottom: 18px;
    color: var(--accent-secondary);
    font-size: 2.15rem;
    font-weight: 780;
}

.features {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    color: var(--text-soft);
}

.features li {
    margin: 9px 0;
}

.tariff-details {
    margin: 0 0 18px;
}

.tariff-details summary {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #15191f;
    color: var(--text-soft);
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.tariff-details summary::-webkit-details-marker {
    display: none;
}

.tariff-details summary:hover {
    border-color: #5ebcb2;
    color: var(--accent-hover);
}

.btn-primary,
.btn-primary-small,
.btn,
button.btn-primary,
button[type="submit"] {
    border: 0;
    border-radius: var(--radius);
    background: var(--accent-primary);
    color: #081110 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary,
button.btn-primary {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
}

.btn-primary-small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.92rem;
}

.btn {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.93rem;
}

.btn-outline,
.auth-link-button {
    border: 1px solid #355f5b;
    border-radius: var(--radius);
    background: #182521;
    color: var(--accent-primary) !important;
}

.btn-outline:hover,
.auth-link-button:hover {
    border-color: var(--accent-primary);
    background: #1d2e2a;
    color: var(--accent-hover) !important;
}

.btn-danger {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(229, 107, 111, 0.5);
    border-radius: var(--radius);
    background: rgba(229, 107, 111, 0.12);
    color: #ffd2d2;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.btn-danger:hover {
    background: rgba(229, 107, 111, 0.2);
    border-color: var(--danger);
}

.btn-primary:hover,
.btn-primary-small:hover,
button[type="submit"]:hover {
    background: var(--accent-hover);
    color: #081110 !important;
    transform: translateY(-1px);
}

button:disabled,
.btn:disabled,
.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.btn-danger:hover {
    background: rgba(229, 107, 111, 0.2);
    border-color: var(--danger);
    color: #ffd2d2 !important;
}

.auth-box {
    width: min(100%, 480px);
    margin: 34px auto;
    padding: 26px;
}

.auth-form {
    margin-top: 24px;
}

.form-label {
    display: block;
    margin: 14px 0 7px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 750;
}

.form-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0f1217;
    color: var(--text-main);
    font: inherit;
    outline: 0;
}

.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="text"] {
    width: 100%;
    min-height: 46px;
    display: block;
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0f1217;
    color: var(--text-main);
    font: inherit;
    outline: 0;
}

.form-input:focus {
    border-color: #5ebcb2;
    box-shadow: 0 0 0 3px rgba(111, 211, 199, 0.12);
}

.auth-form .btn-primary {
    margin-top: 20px;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.auth-link-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-weight: 750;
    flex: 1 1 180px;
    text-align: center;
}

.auth-link-button.secondary {
    border-color: rgba(213, 174, 93, 0.45);
    background: rgba(213, 174, 93, 0.1);
    color: var(--accent-secondary) !important;
}

.auth-link-button.secondary:hover {
    border-color: var(--accent-secondary);
    background: rgba(213, 174, 93, 0.16);
}

.user-id-line {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.user-id-line code,
.command-snippet {
    border-radius: var(--radius);
    background: #0f1217;
    color: var(--text-main);
}

.user-id-line code {
    padding: 3px 7px;
}

.code-display {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid #355f5b;
    border-radius: var(--radius);
    background: #0f1217;
    color: var(--accent-primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(1.8rem, 8vw, 2.7rem);
    font-weight: 780;
    letter-spacing: 0.14em;
    text-align: center;
}

.compact-code {
    max-width: 260px;
    margin-left: 0;
    font-size: clamp(1.6rem, 6vw, 2.25rem);
}

.command-snippet {
    padding: 12px;
}

.telegram-login-box {
    min-height: 52px;
    margin: 24px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.fallback-details {
    margin: 20px 0;
    color: var(--text-muted);
    text-align: left;
}

.alert {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.alert-success {
    background: rgba(98, 199, 140, 0.12);
    border-color: rgba(98, 199, 140, 0.28);
    color: #b8f3d2;
}

.alert-error {
    background: rgba(229, 107, 111, 0.12);
    border-color: rgba(229, 107, 111, 0.28);
    color: #ffd2d2;
}

.alert-warning {
    background: rgba(221, 176, 86, 0.12);
    border-color: rgba(221, 176, 86, 0.30);
    color: #f0d8a1;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-soft);
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--text-main);
    font-weight: 750;
}

tr:hover td {
    background: #181d24;
}

.faq-container,
.instructions-container {
    width: min(900px, 100%);
    margin: 0 auto;
}

.faq-card,
.step-card {
    padding: 22px;
    margin-bottom: 18px;
}

.faq-item {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-of-type {
    border-top: 0;
}

.step-card {
    border-left: 3px solid var(--accent-primary);
}

.app-links,
.nav-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.sub-link-container {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0f1217;
}

.sub-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-link-input {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
}

.sub-link-copy {
    flex: 0 0 auto;
}

input,
pre {
    max-width: 100%;
}

pre {
    overflow-x: auto;
}

.status,
.status-active,
.status-paid,
.status-succeeded,
.status-pending,
.status-expired,
.status-failed,
.status-cancelled {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 750;
}

.status-active,
.status-paid,
.status-succeeded {
    background: rgba(98, 199, 140, 0.14);
    color: #9ef0c2;
}

.status-pending {
    background: rgba(213, 174, 93, 0.15);
    color: #ffd98d;
}

.status-expired,
.status-failed,
.status-cancelled {
    background: rgba(229, 107, 111, 0.14);
    color: #ffb4b4;
}

.account-admin-actions {
    margin-top: 14px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: -8px 0 22px;
}

.admin-body {
    overflow: hidden;
    background: #dfe5eb;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.42;
}

.admin-shell {
    height: 100vh;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    background: #dfe5eb;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) minmax(168px, 240px);
    gap: 8px;
    overflow: hidden;
    padding: 8px;
    border-right: 1px solid #aab7c4;
    background: #cbd5df;
    color: #1f2933;
}

.admin-sidebar-panel {
    min-width: 0;
    border: 1px solid #aab7c4;
    border-radius: 4px;
    background: #f7f9fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-sidebar-top {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.admin-brand {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d2dbe4;
    color: #0f1720;
    font-size: 1rem;
    font-weight: 800;
}

.admin-brand:hover {
    color: #0f6f67;
}

.admin-user-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding: 8px;
    border: 1px solid #c4ced8;
    border-radius: 4px;
    background: #edf2f6;
}

.admin-user-label {
    overflow-wrap: anywhere;
    color: #17202a;
    font-weight: 750;
}

.admin-user-role {
    margin-top: 3px;
    color: #5d6b78;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-logout {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid #aab7c4;
    border-radius: 4px;
    background: #ffffff;
    color: #24313f;
    font-size: 0.86rem;
    font-weight: 750;
}

.admin-logout:hover {
    border-color: #14877d;
    background: #e8f6f4;
    color: #0b625b;
}

.admin-sidebar-nav {
    display: block;
    overflow-y: auto;
    padding: 8px;
}

.admin-sidebar-link {
    min-height: 34px;
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 3px;
    color: #24313f;
    font-size: 0.93rem;
    font-weight: 720;
    line-height: 1.2;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    border-color: #7dbdb7;
    background: #dff1ef;
    color: #0b625b;
}

.admin-sidebar-link.active {
    box-shadow: inset 4px 0 0 #14877d;
}

.admin-sidebar-bottom {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.admin-sidebar-title {
    margin: 0 0 8px;
    color: #526170;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-log-list {
    display: grid;
    gap: 5px;
    overflow-y: auto;
    min-height: 0;
}

.admin-log-item {
    display: grid;
    gap: 2px;
    padding: 7px 8px;
    border: 1px solid #d2dbe4;
    border-radius: 3px;
    background: #edf2f6;
    color: #24313f;
    font-size: 0.8rem;
}

.admin-log-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-log-item time,
.admin-empty-log {
    color: #637180;
    font-size: 0.74rem;
}

.admin-main {
    height: 100vh;
    min-width: 0;
    overflow: auto;
    padding: 8px;
    background: #e5ebf0;
}

.admin-content {
    min-height: calc(100vh - 16px);
    width: 100%;
    padding: 18px 20px 24px;
    border: 1px solid #aab7c4;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.admin-body .admin-inline-nav {
    display: none;
}

.admin-body .account-header,
.admin-body .page-header {
    margin-bottom: 20px;
}

.admin-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dce4eb;
}

.admin-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-body .account-header p,
.admin-body .page-header p {
    max-width: none;
    margin: 0;
    color: #627080;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body .card-title,
.admin-body th {
    color: #17202a;
}

.admin-body h1 {
    font-size: 2rem;
}

.admin-body h2 {
    font-size: 1.25rem;
}

.admin-body h3 {
    font-size: 1.05rem;
}

.admin-body .muted,
.admin-body .form-hint,
.admin-body .metric-sub,
.admin-body .user-meta-row {
    color: #627080;
}

.admin-body .card,
.admin-body .auth-box,
.admin-body .faq-card,
.admin-body .step-card {
    background: #fbfcfd;
    border-color: #d6dee7;
    box-shadow: none;
}

.admin-body .form-input,
.admin-body textarea.form-input {
    background: #ffffff;
    border-color: #c8d3dd;
    color: #17202a;
}

.admin-body .form-input:focus {
    border-color: #14877d;
    box-shadow: 0 0 0 3px rgba(20, 135, 125, 0.12);
}

.admin-body table {
    color: #24313f;
}

.admin-body td,
.admin-body th {
    border-bottom-color: #e4eaf0;
}

.admin-body th,
.admin-body td {
    padding: 10px 9px;
}

.admin-body tr:hover td {
    background: #f6f9fb;
}

.admin-body .admin-nav-link,
.admin-body .admin-filter,
.admin-body .admin-link-button,
.admin-body .account-action-button {
    background: #ffffff;
    border-color: #cfd8e2;
    color: #24313f !important;
}

.admin-body .admin-nav-link:hover,
.admin-body .admin-nav-link.active,
.admin-body .admin-filter:hover,
.admin-body .admin-filter.active {
    border-color: #14877d;
    background: #e8f6f4;
    color: #0b625b !important;
}

.admin-body .btn-primary,
.admin-body .btn-primary-small,
.admin-body button.btn-primary,
.admin-body button[type="submit"] {
    background: #14877d;
    color: #ffffff !important;
}

.admin-body .btn-primary:hover,
.admin-body .btn-primary-small:hover,
.admin-body button[type="submit"]:hover {
    background: #0f6f67;
    color: #ffffff !important;
}

.admin-body .btn,
.admin-body .btn-outline {
    border: 1px solid #c8d3dd;
    background: #ffffff;
    color: #24313f !important;
}

.admin-body .btn:hover,
.admin-body .btn-outline:hover {
    border-color: #14877d;
    background: #e8f6f4;
    color: #0b625b !important;
}

.admin-nav-link,
.admin-filter,
.admin-link-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #15191f;
    color: var(--text-soft) !important;
    font-weight: 750;
}

.admin-nav-link:hover,
.admin-nav-link.active,
.admin-filter:hover,
.admin-filter.active {
    border-color: #5ebcb2;
    background: #1d2e2a;
    color: var(--accent-hover) !important;
}

.admin-filter-row,
.admin-toolbar,
.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}

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

.admin-search {
    width: min(680px, 100%);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-search .form-input {
    flex: 1 1 260px;
}

.admin-filter-form {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) repeat(4, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.admin-search-field {
    min-width: 0;
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

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

.admin-table {
    min-width: 720px;
}

.id-cell {
    white-space: nowrap;
}

.id-combo {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.user-summary-cell {
    min-width: 260px;
}

.user-stack,
.role-stack,
.subscription-cell,
.action-links {
    display: grid;
    gap: 7px;
}

.user-meta-row,
.user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.user-meta-row {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mini-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 750;
}

.subscription-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.action-links {
    justify-items: start;
}

.compact-table .admin-table {
    min-width: 520px;
}

.empty-cell {
    padding: 24px 12px;
    color: var(--text-muted);
    text-align: center;
}

.muted {
    color: var(--text-muted);
}

.subtle-link {
    margin-left: 8px;
    color: var(--accent-secondary) !important;
    font-size: 0.9rem;
    font-weight: 750;
}

.admin-details {
    margin-bottom: 18px;
}

.admin-details summary {
    cursor: pointer;
    color: var(--text-main);
    font-weight: 780;
}

.admin-details form {
    margin-top: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    align-items: end;
}

.node-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-form {
    margin-top: 18px;
}

.broadcast-form {
    display: grid;
    gap: 14px;
}

.full-field {
    grid-column: 1 / -1;
}

.textarea-input {
    min-height: 150px;
    resize: vertical;
}

.check-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.promo-input {
    width: min(280px, 100%);
}

.field span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 750;
}

.inline-form {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.telegram-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.role-select {
    width: auto;
    min-width: 140px;
}

.role-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 780;
}

.role-main_admin {
    background: rgba(213, 174, 93, 0.18);
    color: #ffd98d;
}

.role-admin {
    background: rgba(111, 211, 199, 0.14);
    color: #9bf4eb;
}

.role-support {
    background: rgba(137, 167, 255, 0.16);
    color: #c7d3ff;
}

.danger-zone {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(229, 107, 111, 0.26);
}

.check-field {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-weight: 750;
}

.check-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.radio-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.metric-card {
    text-align: left;
}

.metric-card h3 {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.metric-value {
    margin-top: 10px;
    color: var(--text-main);
    font-size: 2.2rem;
    font-weight: 780;
}

.small-metric {
    font-size: 1.35rem;
}

.metric-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.announcement-stack {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
}

.announcement-card {
    padding: 16px 18px;
    border: 1px solid #355f5b;
    border-radius: var(--radius);
    background: #13201d;
}

.announcement-title {
    margin-bottom: 6px;
    color: var(--text-main);
    font-weight: 780;
}

.announcement-body {
    white-space: pre-line;
}

.mini-list {
    display: grid;
    gap: 10px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.footer {
    margin-top: auto;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer .container {
    width: min(1180px, calc(100% - 32px));
}

/* --- Card header section --- */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.card-head h2,
.card-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

/* --- Small hint text under inputs --- */
.form-hint {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.83rem;
}

/* --- Two-panel layout (builder + preview) --- */
.two-panel {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1.4fr);
    gap: 24px;
    align-items: start;
}

/* --- Happ demo phone mockup --- */
.phone-mockup {
    background: var(--bg-soft);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 18px 16px;
    max-width: 380px;
    min-height: 460px;
    margin: 0 auto;
}

.phone-mockup-title {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-weight: 750;
    color: var(--text-main);
}

/* --- Happ drag/drop items --- */
.happ-list {
    min-height: 360px;
}

.happ-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    cursor: grab;
    user-select: none;
}

.happ-item:active { cursor: grabbing; }

.happ-item-separator {
    background: var(--bg-soft);
    border-color: #355f5b;
}

.happ-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.drag-handle {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
    letter-spacing: 0;
}

/* --- Provisioning job list --- */
.job-list {
    display: grid;
    gap: 10px;
}

.job-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 160ms ease, background 160ms ease;
}

.job-item:hover {
    border-color: #5ebcb2;
    background: #1d2e2a;
    color: var(--text-main);
}

.job-item h3 { margin: 0 0 4px; font-size: 1rem; }
.job-item p  { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

/* --- Checklist (acceptance / protocol profiles) --- */
.checklist {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.checklist-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 4px 0;
    color: var(--text-soft);
    font-size: 0.93rem;
    cursor: pointer;
}

.checklist-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
    cursor: pointer;
}

/* --- Protocol profile card header row --- */
.profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.profile-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 6px;
}

.active-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 650;
    color: var(--text-soft);
}

.active-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* --- Input group (text + button side by side) --- */
.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-input { flex: 1 1 auto; }
.input-group .btn        { flex-shrink: 0; }

.form-block {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.happ-toolbar {
    align-items: center;
    margin-bottom: 18px;
}

.happ-builder-grid {
    grid-template-columns: minmax(320px, 0.72fr) minmax(360px, 1.28fr);
}

.admin-happ-list {
    min-height: 480px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.admin-body .happ-item {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
    background: #ffffff;
    border-color: #d9e1e8;
    color: #17202a;
    cursor: default;
}

.admin-body .happ-item-separator {
    background: #eef7f5;
    border-color: #b8d8d3;
}

.happ-item-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.happ-item-title {
    overflow: hidden;
    color: #17202a;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.happ-item-meta {
    overflow: hidden;
    color: #627080;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.happ-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.icon-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8d3dd;
    border-radius: 8px;
    background: #ffffff;
    color: #24313f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.icon-button:hover {
    border-color: #14877d;
    background: #e8f6f4;
    color: #0b625b;
}

.icon-button.danger {
    border-color: #e6b9bd;
    color: #a3313b;
}

.icon-button.danger:hover {
    border-color: #c9414f;
    background: #fff0f1;
    color: #8e2430;
}

.protocol-choice-card {
    padding: 10px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #f8fafc;
}

.provision-log {
    height: 360px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid #c8d3dd;
    border-radius: 8px;
    background: #0f1720;
    color: #dce7f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .nav-container {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links a {
        padding-left: 8px;
        padding-right: 8px;
    }

    main.container {
        padding-top: 24px;
    }

    .account-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .account-meta {
        padding-top: 0;
    }

    .card,
    .auth-box,
    .faq-card,
    .step-card {
        padding: 18px;
    }

    .auth-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .sub-link-row {
        align-items: stretch;
        flex-direction: column;
    }

    .sub-link-copy {
        width: 100%;
    }

    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions .btn,
    .admin-filter-actions .admin-link-button {
        width: 100%;
    }

    table {
        min-width: 620px;
    }
}

@media (max-width: 860px) {
    .two-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-body {
        overflow: auto;
    }

    .admin-shell {
        height: auto;
        min-height: 100vh;
        display: block;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        display: grid;
        grid-template-rows: none;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid #aab7c4;
    }

    .admin-sidebar-bottom {
        display: none;
    }

    .admin-sidebar-nav {
        max-height: 260px;
    }

    .admin-main {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .admin-content {
        min-height: 0;
        padding: 18px 16px 28px;
    }

    .admin-body .admin-inline-nav {
        display: none;
        margin: 0 0 18px;
    }

    .admin-page-head {
        display: grid;
    }

    .admin-head-actions {
        justify-content: flex-start;
    }

    .happ-builder-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   Admin theme — flat, readable, phpMyAdmin-inspired palette.
   Scoped under .admin-body so public pages are unaffected.
   ============================================================ */

.admin-body {
    background: #f2f2f2;
    color: #111111;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, "Helvetica Neue", Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.45;
}

.admin-body .admin-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    background: #f2f2f2;
}

/* ---- Left navigation panel ---- */
.admin-body .admin-sidebar {
    grid-template-rows: auto minmax(0, 1fr) minmax(150px, 220px);
    gap: 0;
    padding: 0;
    border-right: 1px solid #8c8c8c;
    background: #ffffff;
}

.admin-body .pma-navi-logo {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    background: #4a6f8a;
    border-bottom: 1px solid #3a5a72;
}

.admin-body .pma-navi-logo .admin-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-height: 0;
    padding: 0;
    border: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.admin-body .pma-navi-logo .admin-brand span {
    color: #cfe2f0;
    font-weight: 400;
}

.admin-body .pma-navi-logo .admin-brand:hover { color: #ffffff; }

.admin-body .admin-sidebar-nav {
    padding: 4px 0;
    background: #ffffff;
}

.admin-body .pma-navi-section {
    margin: 0;
    padding: 6px 12px 4px;
    color: #666666;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.admin-body .pma-navi-item {
    min-height: 0;
    margin: 0;
    padding: 5px 12px 5px 22px;
    border: 0;
    border-radius: 0;
    color: #14457a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='9'><rect width='8' height='6' x='0' y='1.5' fill='none' stroke='%23888' stroke-width='1'/></svg>") no-repeat 9px 7px;
}

.admin-body .pma-navi-item:hover {
    border: 0;
    background-color: #dceeff;
    color: #0d3a6a;
}

.admin-body .pma-navi-item.active {
    background-color: #cce0f5;
    box-shadow: none;
    color: #0d3a6a;
    font-weight: 700;
}

.admin-body .admin-sidebar-bottom {
    padding: 6px 8px 8px;
    border-top: 1px solid #d0d0d0;
    background: #f9f9f9;
}

.admin-body .admin-log-item {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background: #ffffff;
    color: #222222;
    font-size: 11px;
}

.admin-body .admin-log-item time,
.admin-body .admin-empty-log {
    color: #777777;
    font-size: 10.5px;
}

/* ---- Server breadcrumb bar ---- */
.admin-body .admin-main {
    padding: 0;
    background: #f2f2f2;
}

.admin-body .pma-server-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 34px;
    padding: 0 12px;
    background: #e8e8e8;
    border-bottom: 1px solid #9aa7b3;
    font-size: 12px;
}

.admin-body .pma-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #111111;
}

.admin-body .pma-breadcrumb a {
    color: #14457a;
    font-weight: 600;
    text-decoration: none;
}

.admin-body .pma-breadcrumb a:hover { text-decoration: underline; }

.admin-body .pma-server-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 5px;
    border: 1px solid #8a9aaa;
    border-radius: 0;
    background: #dce5ed;
    color: #2c597d;
    font-size: 9.5px;
    font-weight: 700;
}

.admin-body .pma-crumb-sep { color: #999999; }

.admin-body .pma-server-user {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #333333;
}

.admin-body .pma-user-name { font-weight: 700; color: #111111; }

.admin-body .pma-user-role {
    padding: 1px 6px;
    border: 1px solid #c0cad4;
    border-radius: 0;
    background: #eaeaea;
    color: #444444;
    font-size: 10.5px;
    font-weight: 700;
}

.admin-body .pma-logout {
    padding: 3px 10px;
    border: 1px solid #888888;
    border-radius: 0;
    background: #d0d0d0;
    color: #111111;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
}

.admin-body .pma-logout:hover {
    background: #c0c0c0;
    border-color: #666666;
}

/* ---- Tabs — orange-top accent ---- */
.admin-body .pma-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 2px;
    padding: 8px 12px 0;
    background: #f2f2f2;
    border-bottom: 1px solid #9aa7b3;
}

.admin-body .pma-tab {
    position: relative;
    top: 1px;
    padding: 5px 12px;
    border: 1px solid #aaaaaa;
    border-bottom: 0;
    border-radius: 0;
    background: #e0e0e0;
    color: #333333;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
}

.admin-body .pma-tab:hover {
    background: #eeeeee;
    color: #111111;
}

.admin-body .pma-tab.active {
    border-color: #9aa7b3;
    border-top: 3px solid #e06000;
    padding-top: 3px;
    background: #ffffff;
    color: #111111;
    z-index: 2;
}

/* ---- Content panel ---- */
.admin-body .admin-content {
    min-height: calc(100vh - 70px);
    padding: 16px 18px 26px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.admin-body h1 { font-size: 18px; font-weight: 700; color: #111111; }
.admin-body h2 { font-size: 15px; font-weight: 700; color: #111111; }
.admin-body h3 { font-size: 13px; font-weight: 700; color: #111111; }

.admin-body .account-header,
.admin-body .page-header,
.admin-body .admin-page-head {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-body .account-header p,
.admin-body .page-header p,
.admin-body .admin-page-head p {
    color: #555555;
    font-size: 12px;
}

/* ---- Data tables ---- */
.admin-body table,
.admin-body .admin-table {
    border-collapse: collapse;
    border: 1px solid #a0a0a0;
    color: #111111;
    font-size: 12px;
}

.admin-body th,
.admin-body .admin-table th {
    padding: 4px 9px;
    border: 1px solid #a0a0a0;
    background: #d8d8d8;
    color: #111111;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.admin-body td,
.admin-body .admin-table td {
    padding: 4px 9px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    color: #111111;
}

.admin-body tbody tr:nth-child(even) td { background: #f5f5f5; }

.admin-body table tr:hover td,
.admin-body .admin-table tbody tr:hover td { background: #cce4ff; }

.admin-body .empty-cell { color: #666666; background: #ffffff; }

/* ---- Buttons — flat, no gradient, no rounding ---- */
.admin-body .btn,
.admin-body .btn-outline,
.admin-body .admin-nav-link,
.admin-body .admin-filter,
.admin-body .admin-link-button,
.admin-body .account-action-button {
    min-height: 0;
    padding: 3px 11px;
    border: 1px solid #888888 !important;
    border-radius: 0 !important;
    background: #d8d8d8 !important;
    color: #111111 !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: none;
    text-decoration: none;
}

.admin-body .btn:hover,
.admin-body .btn-outline:hover,
.admin-body .admin-nav-link:hover,
.admin-body .admin-filter:hover {
    border-color: #555555 !important;
    background: #c8c8c8 !important;
    color: #000000 !important;
}

.admin-body .admin-nav-link.active,
.admin-body .admin-filter.active {
    border-color: #5b8db8 !important;
    background: #cce4ff !important;
    color: #0d3a6a !important;
}

.admin-body .btn-primary,
.admin-body .btn-primary-small,
.admin-body button.btn-primary,
.admin-body button[type="submit"] {
    padding: 3px 11px;
    border: 1px solid #5b8db8 !important;
    border-radius: 0 !important;
    background: #cce4ff !important;
    color: #0d3a6a !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: none;
}

.admin-body .btn-primary:hover,
.admin-body .btn-primary-small:hover,
.admin-body button.btn-primary:hover,
.admin-body button[type="submit"]:hover {
    border-color: #3a6d9a !important;
    background: #b5d5f5 !important;
    color: #071e40 !important;
}

.admin-body .btn-danger {
    border: 1px solid #c06060 !important;
    border-radius: 0 !important;
    background: #f5d0d0 !important;
    color: #7a1414 !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: none;
}

.admin-body .btn-danger:hover {
    border-color: #993333 !important;
    background: #e8b0b0 !important;
    color: #5a0000 !important;
}

.admin-body .btn:disabled,
.admin-body .btn-primary:disabled,
.admin-body button:disabled {
    opacity: .5;
    cursor: default;
}

/* ---- Form controls ---- */
.admin-body .form-input,
.admin-body input[type="text"],
.admin-body input[type="number"],
.admin-body input[type="password"],
.admin-body input[type="search"],
.admin-body input[type="email"],
.admin-body select,
.admin-body textarea,
.admin-body textarea.form-input {
    padding: 3px 6px;
    border: 1px solid #a0a0a0;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 12px;
}

.admin-body .form-input:focus,
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
    border-color: #5b8db8;
    box-shadow: 0 0 0 2px rgba(91,141,184,.2);
    outline: none;
}

.admin-body .field span,
.admin-body .form-label {
    color: #333333;
    font-size: 11.5px;
    font-weight: 600;
}

/* ---- Cards ---- */
.admin-body .card,
.admin-body .auth-box,
.admin-body .faq-card,
.admin-body .step-card,
.admin-body section.card {
    border: 1px solid #a0a0a0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.admin-body .card-head {
    margin: 0;
    padding: 5px 10px;
    border-bottom: 1px solid #c0c8d0;
    background: #e0e8f0;
}

.admin-body .card-head h3 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #1a3c5e;
}

.admin-body .card > :not(.card-head) {
    margin-left: 10px;
    margin-right: 10px;
}

/* ---- Status pills ---- */
.admin-body .status,
.admin-body .status-active,
.admin-body .status-paid,
.admin-body .status-succeeded,
.admin-body .status-pending,
.admin-body .status-expired,
.admin-body .status-failed,
.admin-body .status-cancelled {
    padding: 1px 7px;
    border-radius: 0;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #111111;
}

.admin-body .status-active,
.admin-body .status-paid,
.admin-body .status-succeeded {
    background: #d4eed4;
    border-color: #70b070;
    color: #1a4d1a;
}

.admin-body .status-pending {
    background: #fdf0d0;
    border-color: #d0a040;
    color: #5a3a00;
}

.admin-body .status-expired,
.admin-body .status-failed,
.admin-body .status-cancelled {
    background: #f5d8d8;
    border-color: #cc7070;
    color: #6a1010;
}

/* ---- Alerts ---- */
.admin-body .alert,
.admin-body .alert-success,
.admin-body .alert-error,
.admin-body .flash {
    padding: 7px 12px 7px 14px;
    border: 1px solid #bbbbbb;
    border-left-width: 4px;
    border-radius: 0;
    font-size: 12px;
    color: #111111;
}

.admin-body .alert-success {
    background: #e8f8e8;
    border-color: #50a050;
    border-left-color: #2a7a2a;
    color: #1a4d1a;
}

.admin-body .alert-error {
    background: #fce8e8;
    border-color: #cc5555;
    border-left-color: #993333;
    color: #6a1010;
}

/* ---- code/pre ---- */
.admin-body code {
    padding: 1px 5px;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    background: #f0f0f0;
    color: #222222;
    font-size: 11px;
}

/* ---- Misc ---- */
.admin-body .muted,
.admin-body .form-hint,
.admin-body .metric-sub,
.admin-body .user-meta-row { color: #555555; }

.admin-body a { color: #14457a; }
.admin-body a:hover { color: #0d3a6a; }
