:root {
    --tl-bg: #eef3f8;
    --tl-surface: #ffffff;
    --tl-soft: #f6f8fb;
    --tl-border: #dbe4ef;
    --tl-text: #17223b;
    --tl-muted: #64748b;
    --tl-primary: #2161f3;
    --tl-primary-soft: #e9f0ff;
    --tl-danger: #d8164f;
    --tl-success: #069669;
    --tl-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

.btn,
button,
input,
select,
textarea {
    font: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--tl-border);
    border-radius: 8px;
    background: var(--tl-surface);
    color: var(--tl-text);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.btn-outline-secondary {
    border-color: var(--tl-border);
}

.btn-primary {
    border-color: var(--tl-primary);
    background: var(--tl-primary);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(0.94);
}

.btn-outline-danger {
    border-color: rgba(216, 22, 79, 0.3);
    color: var(--tl-danger);
}

.btn-sm {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

.nav {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.nav-link {
    text-decoration: none;
}

.auth-shell {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(33, 97, 243, 0.14), transparent 32rem),
        linear-gradient(135deg, #eef3f8 0%, #f8fbff 100%);
    color: var(--tl-text);
    font-family: Tahoma, Arial, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 460px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--tl-border);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
    padding: 28px;
}

.auth-card-wide {
    width: min(100%, 820px);
}

.auth-brand-logo {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 26px;
    text-decoration: none;
}

.auth-brand-logo img {
    display: block;
    width: min(100%, 300px);
    height: 82px;
    object-fit: contain;
    object-position: center;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

[dir="rtl"] .auth-brand {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.auth-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2161f3, #7c3aed);
    font-size: 26px;
    box-shadow: 0 12px 30px rgba(33, 97, 243, 0.25);
}

.auth-brand strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.auth-brand span,
.auth-header p,
.auth-footer {
    color: var(--tl-muted);
    font-weight: 700;
}

.auth-header {
    margin-bottom: 22px;
}

.auth-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.auth-header p {
    margin: 8px 0 0;
    line-height: 1.7;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.auth-form input {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid var(--tl-border);
    padding: 10px 13px;
    color: var(--tl-text);
    background: #fff;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 4px rgba(33, 97, 243, 0.12);
}

.auth-form button {
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--tl-primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.auth-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 800;
}

.auth-alert-error {
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.auth-alert-success {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.auth-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-top: 18px;
}

.auth-register-callout {
    width: 100%;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--tl-border);
    border-radius: 12px;
    background: var(--tl-soft);
    text-align: center;
}

.auth-register-callout .btn {
    color: var(--tl-primary);
    background: var(--tl-surface);
}

.auth-request-page {
    padding-block: 36px 70px;
}

.auth-request-header {
    text-align: center;
}

.landing-form.auth-request-form {
    box-shadow: none;
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.auth-footer a {
    color: var(--tl-primary);
    text-decoration: none;
    font-weight: 900;
}

.creator-credit {
    width: min(1560px, calc(100% - 48px));
    margin: -8px auto 22px;
    color: var(--tl-muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.creator-credit-auth {
    position: fixed;
    right: 0;
    bottom: 14px;
    left: 0;
    width: 100%;
    margin: 0;
}

body[data-theme="dark"] {
    --tl-bg: #101828;
    --tl-surface: #172033;
    --tl-soft: #1e293b;
    --tl-border: #334155;
    --tl-text: #f8fafc;
    --tl-muted: #b6c2d4;
    --tl-primary-soft: #1d3b78;
    --tl-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.dashboard-shell {
    min-height: 100vh;
    margin: 0;
    background: var(--tl-bg);
    color: var(--tl-text);
    font-family: Tahoma, Arial, sans-serif;
}

.dashboard-topbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 8vw;
    background: var(--tl-surface);
    border-bottom: 1px solid var(--tl-border);
}

.dashboard-topbar h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.dashboard-topbar p {
    margin: 4px 0 0;
    color: var(--tl-muted);
    font-weight: 700;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-page {
    width: min(1560px, calc(100% - 48px));
    margin: 24px auto;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 22px;
}

[dir="rtl"] .dashboard-page {
    grid-template-columns: 1fr 290px;
}

[dir="rtl"] .dashboard-sidebar {
    grid-column: 2;
}

[dir="rtl"] .dashboard-content {
    grid-column: 1;
    grid-row: 1;
}

.dashboard-sidebar,
.dashboard-content,
.panel,
.metric-card,
.profile-card,
.subscription-banner {
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    box-shadow: var(--tl-shadow);
}

.dashboard-sidebar {
    border-radius: 12px;
    padding: 16px;
    align-self: start;
    position: sticky;
    top: 18px;
}

.profile-card {
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    display: grid;
    gap: 4px;
}

.profile-card strong {
    font-size: 18px;
}

.profile-card span {
    color: var(--tl-muted);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-menu {
    gap: 8px;
}

.dashboard-menu .nav-link {
    border-radius: 8px;
    color: var(--tl-text);
    font-weight: 800;
    padding: 12px 14px;
}

.dashboard-menu .nav-link:hover,
.dashboard-menu .nav-link.active {
    background: var(--tl-primary);
    color: #fff;
}

.dashboard-content {
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 20px;
}

.page-heading h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.page-heading p {
    margin: 6px 0 0;
    color: var(--tl-muted);
    font-weight: 700;
}

.customer-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--tl-primary);
    font-size: 13px;
    font-weight: 900;
}

.customer-heading-actions {
    justify-content: flex-end;
}

.customer-subscription-banner {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.customer-subscription-banner strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.customer-action {
    min-height: 106px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    background: var(--tl-surface);
    color: var(--tl-text);
    text-decoration: none;
    box-shadow: var(--tl-shadow);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.customer-action:hover {
    border-color: var(--tl-primary);
    box-shadow: 0 16px 32px rgba(33, 97, 243, 0.14);
    transform: translateY(-2px);
}

.customer-action-primary {
    border-color: rgba(33, 97, 243, 0.45);
    background: linear-gradient(135deg, var(--tl-primary), #4f46e5);
    color: #fff;
}

.customer-action-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    background: var(--tl-primary-soft);
    color: var(--tl-primary);
    font-size: 20px;
    font-weight: 900;
}

.customer-action-primary .customer-action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.customer-action strong,
.customer-action small {
    display: block;
}

.customer-action strong {
    font-size: 15px;
    font-weight: 900;
}

.customer-action small {
    margin-top: 6px;
    color: var(--tl-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.customer-action-primary small {
    color: rgba(255, 255, 255, 0.8);
}

.customer-metric-grid {
    margin-bottom: 18px;
}

.panel-hint {
    margin: 5px 0 0;
    color: var(--tl-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.customer-empty-state {
    padding: 22px 12px;
    border-radius: 8px;
    background: var(--tl-soft);
    color: var(--tl-muted);
    text-align: center;
    font-weight: 800;
}

.customer-help-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.customer-help-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--tl-primary-soft);
    color: var(--tl-primary);
    font-size: 20px;
    font-weight: 900;
}

.customer-help-panel h3 {
    margin: 0;
}

.customer-help-panel p {
    margin: 4px 0 0;
    color: var(--tl-muted);
    font-weight: 700;
    line-height: 1.6;
}

.customer-help-panel > div:nth-child(2) {
    flex: 1;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric-card {
    min-height: 118px;
    border-radius: 10px;
    padding: 18px;
    text-decoration: none;
    color: var(--tl-text);
    display: grid;
    align-content: space-between;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--tl-primary);
}

.metric-card span {
    color: var(--tl-muted);
    font-weight: 800;
}

.metric-card strong {
    font-size: 30px;
    font-weight: 900;
}

.revenue-card {
    background: var(--tl-primary);
    color: #fff;
}

.revenue-card span {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    border-radius: 10px;
    padding: 16px;
}

.panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.panel h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
}

.table {
    color: var(--tl-text);
    margin-bottom: 0;
}

.table th {
    color: var(--tl-muted);
    font-size: 13px;
    border-bottom-color: var(--tl-border);
}

.table td {
    border-bottom-color: var(--tl-border);
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    background: var(--tl-primary-soft);
    color: var(--tl-primary);
    font-size: 12px;
    font-weight: 900;
}

.activity-list {
    display: grid;
    gap: 8px;
}

.activity-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    background: var(--tl-soft);
    color: var(--tl-text);
    text-decoration: none;
}

.activity-row span {
    color: var(--tl-muted);
    font-size: 13px;
    font-weight: 700;
}

.subscription-banner {
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: center;
}

.subscription-banner.is-valid {
    border-color: rgba(6, 150, 105, 0.35);
}

.subscription-banner.is-invalid {
    border-color: rgba(216, 22, 79, 0.35);
}

.subscription-banner span {
    display: block;
    color: var(--tl-muted);
    font-weight: 800;
}

.subscription-banner strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

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

.renewal-payment-panel {
    grid-column: 1 / -1;
}

.renewal-support-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    background: rgba(236, 253, 245, 0.8);
    color: #065f46;
    font-weight: 800;
}

.renewal-support-contact a:not(.btn) {
    color: #047857;
    font-weight: 900;
    text-decoration: underline;
}

.whatsapp-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.whatsapp-fab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 10px 14px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.34), 0 3px 8px rgba(15, 23, 42, 0.12);
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.whatsapp-fab:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 18px 38px rgba(22, 163, 74, 0.4), 0 4px 10px rgba(15, 23, 42, 0.14);
}

.whatsapp-fab:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.42);
    outline-offset: 3px;
}

.whatsapp-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.whatsapp-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.whatsapp-fab-chevron {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-inline-start: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 16px;
    line-height: 1;
    transition: transform 180ms ease;
}

.whatsapp-widget.is-open .whatsapp-fab-chevron {
    transform: rotate(180deg);
}

.whatsapp-popover {
    width: min(328px, calc(100vw - 36px));
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(16, 185, 129, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--tl-text);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
    transform-origin: bottom right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.whatsapp-widget:not(.is-open) .whatsapp-popover {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.97);
}

.whatsapp-widget.is-open .whatsapp-popover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.whatsapp-popover-kicker {
    color: #059669;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.whatsapp-popover strong {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
}

.whatsapp-popover p {
    margin: 0;
    color: var(--tl-muted);
    font-size: 13px;
    line-height: 1.7;
    font-weight: 700;
}

.whatsapp-popover-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-top: 4px;
    padding: 0 13px;
    border-radius: 11px;
    background: #ecfdf5;
    color: #047857;
    text-decoration: none;
    font-weight: 900;
    transition: background 160ms ease, transform 160ms ease;
}

.whatsapp-popover-link:hover {
    background: #d1fae5;
    color: #065f46;
    transform: translateY(-1px);
}

[dir="rtl"] .whatsapp-widget {
    right: auto;
    left: 22px;
    justify-items: start;
}

[dir="rtl"] .whatsapp-popover {
    transform-origin: bottom left;
}

.renewal-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.renewal-plan-card {
    display: block;
    min-width: 0;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    background: linear-gradient(145deg, var(--tl-surface), var(--tl-soft));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.renewal-plan-card-body {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.renewal-plan-card strong {
    font-size: 17px;
    font-weight: 900;
}

.renewal-plan-card b {
    color: var(--tl-primary);
    font-size: 22px;
    font-weight: 900;
}

.renewal-plan-card small {
    color: var(--tl-muted);
    font-weight: 800;
}

.subscription-payment-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    background: var(--tl-soft);
}

.renewal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.subscription-payment-form label {
    display: grid;
    gap: 7px;
    color: var(--tl-muted);
    font-weight: 900;
}

.subscription-payment-form textarea {
    min-height: 84px;
    resize: vertical;
}

.subscription-payment-form .btn {
    justify-self: start;
}

.renewal-payment-methods {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.renewal-payment-method {
    display: grid;
    grid-template-columns: minmax(120px, 0.3fr) 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(33, 97, 243, 0.2);
    border-radius: 9px;
    background: var(--tl-primary-soft);
}

.renewal-payment-method span {
    color: var(--tl-primary);
    font-weight: 900;
}

.renewal-payment-method b {
    overflow-wrap: anywhere;
    font-weight: 900;
}

.subscription-activation-form label {
    display: grid;
    gap: 8px;
    color: var(--tl-muted);
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--tl-border);
    background: var(--tl-surface);
    color: var(--tl-text);
    padding: 9px 12px;
    outline: none;
}

.form-control:focus {
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 4px rgba(33, 97, 243, 0.12);
}

.admin-notice {
    padding: 13px 15px;
    margin-bottom: 18px;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    font-weight: 800;
}

.admin-notice-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.admin-notice-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.admin-notice-info {
    border-color: rgba(33, 97, 243, 0.2);
    background: var(--tl-primary-soft);
    color: var(--tl-text);
}

.credential-reveal {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    background: linear-gradient(145deg, #ecfdf5, #f0fdf4);
    color: #064e3b;
}

.credential-reveal-compact {
    margin-top: 16px;
}

.credential-reveal > div:first-child {
    display: grid;
    gap: 4px;
}

.credential-reveal span,
.credential-reveal small {
    color: #047857;
    font-size: 13px;
    font-weight: 800;
}

.credential-reveal strong {
    font-size: 19px;
    font-weight: 900;
}

.credential-reveal p {
    margin: 0;
    color: #065f46;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.credential-grid > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.62);
}

.credential-grid b {
    overflow-wrap: anywhere;
    color: #064e3b;
    font-size: 16px;
}

.account-workflow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.account-create-form,
.account-steps {
    display: grid;
    gap: 16px;
}

.account-create-form header,
.account-steps header {
    margin-bottom: 0;
}

.account-create-form header p {
    margin: 6px 0 0;
    color: var(--tl-muted);
    font-weight: 700;
}

.account-plan-field {
    grid-column: 1 / -1;
}

.account-steps h3 {
    margin: 0;
    font-size: 20px;
}

.account-steps ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-inline-start: 22px;
    color: var(--tl-text);
    font-weight: 800;
    line-height: 1.8;
}

.account-steps li::marker {
    color: var(--tl-primary);
    font-weight: 900;
}

.account-approval-box {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(33, 97, 243, 0.24);
    border-radius: 12px;
    background: var(--tl-primary-soft);
}

.account-approval-box h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.account-approval-box p {
    margin: 5px 0 0;
    color: var(--tl-muted);
    font-weight: 700;
    line-height: 1.7;
}

.request-approval-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.request-approval-form label {
    display: grid;
    gap: 7px;
}

.request-approval-form label span {
    color: var(--tl-muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-info-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-info-strip > div {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    background: var(--tl-soft);
}

.payment-receipts-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    background: var(--tl-soft);
}

.payment-receipts-list strong {
    width: 100%;
    color: var(--tl-text);
    font-weight: 900;
}

.admin-info-strip span,
.plan-editor-heading span,
.plan-editor-card label > span,
.request-review-form label > span {
    color: var(--tl-muted);
    font-size: 13px;
    font-weight: 800;
}

.plan-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.plan-editor-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--tl-border);
    border-radius: 12px;
    background: var(--tl-surface);
    box-shadow: var(--tl-shadow);
}

.plan-editor-card.is-new {
    border-style: dashed;
}

.plan-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan-editor-heading > div {
    display: grid;
    gap: 4px;
}

.plan-editor-heading strong {
    font-size: 20px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-form-grid label,
.request-review-form label {
    display: grid;
    gap: 7px;
}

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

.admin-check-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
}

.request-review-panel header {
    align-items: flex-start;
}

.request-review-panel header p {
    margin: 6px 0 0;
}

.request-contact-actions {
    display: flex;
    gap: 8px;
}

.request-review-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) 1fr auto;
    gap: 12px;
    align-items: end;
}

.request-review-form textarea {
    min-height: 86px;
    resize: vertical;
}

.activation-steps {
    display: grid;
    gap: 10px;
    color: var(--tl-text);
    font-weight: 800;
    line-height: 1.8;
}

.activation-steps p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--tl-soft);
}

@media (max-width: 1200px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-page,
    [dir="rtl"] .dashboard-page {
        width: min(100% - 24px, 760px);
        grid-template-columns: 1fr;
    }

    [dir="rtl"] .dashboard-sidebar,
    [dir="rtl"] .dashboard-content {
        grid-column: auto;
        grid-row: auto;
    }

    .dashboard-sidebar {
        position: static;
    }

    .dashboard-topbar,
    .page-heading,
    .subscription-banner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .customer-subscription-banner,
    .customer-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-subscription-banner .btn {
        grid-column: 1 / -1;
    }

    .plan-editor-grid,
    .admin-info-strip,
    .request-review-form,
    .account-workflow-grid,
    .renewal-plan-grid {
        grid-template-columns: 1fr;
    }

    .account-plan-field {
        grid-column: auto;
    }

    .request-approval-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        padding: 16px;
    }

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

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

    .renewal-form-grid,
    .renewal-payment-method {
        grid-template-columns: 1fr;
    }

    .subscription-payment-form .btn {
        justify-self: stretch;
    }

    .auth-brand-logo img {
        width: min(100%, 260px);
        height: 70px;
    }

    .customer-heading,
    .customer-help-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-heading-actions {
        justify-content: stretch;
    }

    .customer-heading-actions .btn {
        flex: 1 1 100%;
    }

    .customer-subscription-banner,
    .customer-quick-actions {
        grid-template-columns: 1fr;
    }

    .customer-subscription-banner .btn {
        grid-column: auto;
    }
}
