:root {
    --bg: #eceef3;
    --surface: #ffffff;
    --text: #131b31;
    --muted: #6d7693;
    --border: #d6ddea;
    --brand: #4c36df;
    --brand-deep: #081531;
    --brand-soft: #ece8ff;
    --danger: #d74747;
    --ok: #2ba76a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.alert ul {
    margin: 0;
    padding-inline-start: 18px;
}

.alert-success {
    background: #ecf8f2;
    border: 1px solid #caebd8;
    color: #1d6844;
}

.alert-error {
    background: #fff2f2;
    border: 1px solid #efcccc;
    color: #922f2f;
}

.btn,
.nav-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover,
.nav-btn:hover {
    transform: translateY(-1px);
}

.btn {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 20px rgba(76, 54, 223, 0.2);
}

.btn.secondary {
    background: #fff;
    color: var(--brand);
    border-color: #d4cdfd;
    box-shadow: none;
}

.btn.danger {
    background: #fff;
    color: var(--danger);
    border-color: #efc9c9;
    box-shadow: none;
}

.btn.tiny {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
}

.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(820px 380px at 25% -5%, rgba(123, 98, 255, 0.2), transparent 65%),
        radial-gradient(700px 300px at 80% 18%, rgba(123, 98, 255, 0.12), transparent 70%),
        var(--bg);
}

.landing-header {
    padding-top: 18px;
}

.landing-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    width: 95%;
    border: dashed;
    border-width: 2px;
    padding: 10px
}

.brand-marketing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-marketing span:first-child {
    font-size: 44px;
    line-height: 1;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(150deg, #5f4cff, #402be2);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 12px 22px rgba(72, 56, 220, 0.28);
}

.landing-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.landing-menu a {
    color: #4a567c;
    font-weight: 700;
    font-size: 14px;
    inline-size: 128px;
    block-size: 42px;
    padding: 0 10px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: 0.2s ease;
}

.landing-menu a:hover {
    border-color: #bcc6da;
    color: #273760;
    transform: translateY(-1px);
}

.landing-menu a.active {
    color: #1f2c68;
    border-color: #9ba9c7;
    background: #eef2fb;
}

.landing-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-mobile-shell {
    display: none;
}

.landing-mobile-utility {
    display: none;
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 150;
    transition: opacity 0.25s ease;
    opacity: 0;
}

.menu-overlay.open {
    display: block;
    opacity: 1;
}

.menu-icon {
    display: inline-grid;
    gap: 5px;
}

.menu-icon span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: #f3fbff;
}

.menu-icon span:nth-child(1) { width: 28px; }
.menu-icon span:nth-child(2) { width: 22px; }
.menu-icon span:nth-child(3) { width: 14px; }

.drawer-close {
    min-height: 38px;
    width: 38px;
    border-radius: 10px;
    border: 1px solid #d6ddea;
    background: #fff;
    color: #112047;
    font-size: 26px;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #202a49;
}

.currency-switch-form {
    margin: 0;
}

.currency-switch-select {
    height: 38px;
    padding: 0 34px 0 12px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #202a49;
    cursor: pointer;
}

.nav-link-plain {
    font-size: 14px;
    font-weight: 700;
    color: #2a3251;
}

.nav-link-mobile {
    display: flex;
    min-height: 42px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: #fff;
    align-items: center;
    justify-content: center;
}

.nav-btn-primary {
    background: var(--brand-deep);
    color: #fff;
    box-shadow: 0 10px 18px rgba(8, 21, 49, 0.22);
}

.landing-main {
    padding-top: 52px;
    padding-bottom: 40px;
}

.hero-block {
    max-width: 870px;
    margin: 0 auto 78px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.75);
    color: #78819d;
    font-size: 13px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero-title {
    margin: 0;
    font-size: clamp(42px, 7.2vw, 92px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.hero-title span {
    color: #5b49ec;
}

.hero-sub {
    margin: 16px auto 0;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(18px, 2.05vw, 36px);
    line-height: 1.58;
}

.hero-cta {
    margin-top: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 86px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #dfe4ef;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 22px rgba(17, 31, 66, 0.06);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #efedff;
    color: #5b4df2;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-size: 20px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 30px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 19px;
}

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

.pricing-wrap h2 {
    margin: 0;
    font-size: clamp(36px, 4.3vw, 58px);
}

.pricing-wrap > p {
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 22px;
}

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

.price-card {
    text-align: start;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid #d9dfeb;
    background: rgba(255, 255, 255, 0.82);
}

.price-card h3 {
    margin: 0 0 10px;
    font-size: 32px;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-line strong {
    font-size: clamp(32px, 4vw, 62px);
    line-height: 1;
}

.price-line span {
    font-size: 30px;
    font-weight: 700;
}

.price-card p {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 18px;
}

.price-card ul {
    margin: 0 0 18px;
    padding-inline-start: 18px;
    color: #2f3b61;
    line-height: 1.85;
    font-size: 18px;
}

.price-card .plan-features {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: #2f3b61;
    line-height: 1.7;
    font-size: 15px;
}

.price-card .plan-feature-item {
    margin-bottom: 8px;
    border: 1px solid #d9e1ee;
    border-radius: 10px;
    background: #fff;
    padding: 9px 10px;
}

.price-card .plan-feature-item > strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2f3b61;
}

.price-card .plan-feature-toggle {
    display: block;
}

.price-card .plan-feature-toggle summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #2f3b61;
}

.price-card .plan-feature-toggle summary::-webkit-details-marker {
    display: none;
}

.price-card .plan-feature-toggle summary::after {
    content: "⌄";
    font-size: 13px;
    color: #64719a;
    margin-inline-start: 8px;
}

.price-card .plan-feature-toggle[open] summary::after {
    transform: rotate(180deg);
}

.price-card .plan-subfeatures {
    margin: 8px 0 0;
    padding-inline-start: 18px;
    line-height: 1.65;
    font-size: 13px;
    color: #48547c;
}

.price-card .nav-btn {
    width: 100%;
}

.price-card.featured {
    background: #0a1735;
    color: #fff;
    box-shadow: 0 18px 30px rgba(10, 22, 52, 0.23);
}

.price-card.featured p,
.price-card.featured ul {
    color: #a9b5d5;
}

.price-card.featured .plan-feature-item {
    border-color: #2f3f69;
    background: #0d1d44;
}

.price-card.featured .plan-feature-item > strong {
    color: #e6edff;
}

.price-card.featured .plan-feature-toggle summary {
    color: #e6edff;
}

.price-card.featured .plan-feature-toggle summary::after {
    color: #b8c5ea;
}

.price-card.featured .plan-subfeatures {
    color: #b2bdd9;
}

.price-card.featured .nav-btn {
    background: #fff;
    border-color: #fff;
    color: #091732;
}

.landing-footer {
    margin-top: 72px;
    border-top: 1px solid #d8deea;
    padding-top: 22px;
    text-align: center;
    color: #7f88a2;
}

.landing-footer div {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.landing-footer small {
    display: block;
    margin-top: 8px;
}

.auth-page {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(470px, 100%);
    background: #f8fafc;
    border: 1px solid #cfd7e3;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 18px 30px rgba(17, 31, 63, 0.12);
}

.auth-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #5f4dff, #402be2);
    color: #fff;
    font-size: 25px;
}

.auth-card h1 {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 50px);
}

.auth-card p {
    margin: 8px 0 18px;
    color: #7180a0;
    font-size: 18px;
}

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

.auth-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
}

.auth-form input {
    height: 52px;
    border: 1px solid #d2dbe8;
    border-radius: 13px;
    background: #f2efbe;
    padding: 0 13px;
    font-size: 15px;
}

.auth-form input::placeholder {
    color: #7e89a8;
    opacity: 0.65;
}

.auth-submit {
    margin-top: 8px;
    height: 54px;
    border: 0;
    border-radius: 13px;
    background: #0a1735;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.auth-foot {
    margin-top: 16px;
    text-align: center;
    color: #8690aa;
    font-size: 16px;
}

.auth-foot a {
    color: #5646f0;
    font-weight: 700;
}

.panel-body {
    min-height: 100vh;
    background: #e8ebf0;
}

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

.panel-shell-rtl {
    flex-direction: row-reverse;
}

.panel-shell-ltr {
    flex-direction: row;
}

.panel-sidebar {
    width: 300px;
    background: #07173b;
    color: #c6d0ea;
    padding: 18px 14px;
    border-inline-start: 1px solid #11234d;
    display: flex;
    flex-direction: column;
}

.panel-mobile-header {
    display: none;
}

.panel-mobile-header-inner {
    width: min(1120px, calc(100% - 24px));
    margin-inline: auto;
}

.panel-brand {
    border-bottom: 1px solid #1b2c53;
    padding-bottom: 16px;
    margin-bottom: 12px;
}

.admin-brand {
    color: #fff;
    margin-bottom: 8px;
}

.admin-brand span:first-child {
    font-size: 32px;
}

.panel-brand small {
    color: #7f8fb2;
}

.panel-menu {
    display: grid;
    gap: 8px;
}

.panel-menu a {
    min-height: 46px;
    border-radius: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #c4cde7;
}

.panel-menu a.active {
    background: #1f2c68;
    color: #fff;
}

.panel-foot {
    margin-top: auto;
    border-top: 1px solid #1b2c53;
    padding-top: 12px;
    display: grid;
    gap: 10px;
}

.panel-foot a {
    color: #b7c0db;
    font-weight: 700;
}

.logout-link {
    border: 0;
    background: transparent;
    color: #ff7a7a;
    font-size: 17px;
    font-weight: 700;
    text-align: start;
    padding: 0;
    cursor: pointer;
}

.panel-main {
    flex: 1;
    padding: 28px 24px;
}

.admin-head {
    margin-bottom: 22px;
}

.admin-head h1 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 54px);
}

.admin-head p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat {
    background: #f8fafd;
    border: 1px solid #ccd5e3;
    border-radius: 18px;
    padding: 18px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    font-size: 22px;
}

.stat-icon.users { background: #e8ecff; color: #4e60f2; }
.stat-icon.links { background: #e6f8ed; color: #1ca364; }
.stat-icon.money { background: #fff1d9; color: #d38117; }

.admin-stat h3 {
    margin: 0 0 8px;
    color: #61708f;
    font-size: 27px;
}

.admin-stat strong {
    font-size: clamp(28px, 3.9vw, 52px);
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.two-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.card h3 {
    margin: 0 0 8px;
}

.card p {
    margin: 0 0 6px;
    color: var(--muted);
}

.form-wrap {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin: 10px;
}

.marketing-page h2 {
    margin: 18px 0 10px;
    color: #1a2646;
}

.marketing-page .marketing-lead {
    margin: 6px 0 16px;
    color: #4e5b7f;
}

.marketing-list {
    margin: 0 0 14px;
    padding-inline-start: 20px;
    color: #314062;
    line-height: 1.8;
}

.marketing-cta-row {
    margin-top: 16px;
}

.form-grid {
    display: grid;
    gap: 10px;
}

.form-grid label {
    display: grid;
    gap: 6px;
    color: #556080;
    font-size: 14px;
}

.link-image-preview-field {
    display: grid;
    gap: 6px;
}

.link-image-preview-box {
    border: 1px solid #d8dfeb;
    border-radius: 12px;
    background: #f8fafd;
    min-height: 160px;
    padding: 10px;
    display: grid;
    place-items: center;
}

.link-image-preview-box img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.link-image-preview-box span {
    color: #6b779a;
    font-size: 13px;
}

.slug-check-message {
    display: block;
    min-height: 16px;
    font-size: 12px;
    line-height: 1.4;
}

.slug-check-message.muted {
    color: #6b779a;
}

.slug-check-message.success {
    color: #1d7d4d;
}

.slug-check-message.error {
    color: #a23a3a;
}

.form-grid .checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2e3a5d;
    font-size: 14px;
    font-weight: 600;
    direction: inherit;
    width: fit-content;
}

.form-grid .checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 0;
    padding: 0;
    accent-color: var(--brand);
    cursor: pointer;
    flex: 0 0 auto;
}

.js-select-native {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.js-select {
    position: relative;
}

.js-select-trigger {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #253156;
    text-align: start;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.js-select-trigger::after {
    content: "";
    inline-size: 0;
    block-size: 0;
    border-inline-start: 5px solid transparent;
    border-inline-end: 5px solid transparent;
    border-top: 6px solid #6f7997;
    flex-shrink: 0;
}

.js-select.open .js-select-trigger::after {
    transform: rotate(180deg);
}

.js-select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 20px rgba(9, 22, 50, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
}

.js-select-list[hidden] {
    display: none;
}

.js-select-option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 9px 12px;
    font: inherit;
    text-align: start;
    color: #253156;
    cursor: pointer;
}

.js-select-option:hover {
    background: #f4f6ff;
}

.js-select-option.active {
    background: #edf1ff;
    color: #2941ac;
    font-weight: 700;
}

.js-select-trigger:disabled {
    background: #f4f6fa;
    color: #9aa3bd;
    cursor: not-allowed;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

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

.records-wrap {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}

.records-wrap h2 {
    margin: 0 0 10px;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    justify-content: start;
    gap: 12px;
}

.record-card {
    background: #f8fafd;
    border: 1px solid #d8dfeb;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.record-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dfe5f0;
    padding-bottom: 8px;
}

.record-id {
    display: inline-flex;
    min-height: 28px;
    padding: 0 9px;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d7dff0;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #2a3350;
}

.record-line {
    display: grid;
    gap: 3px;
}

.record-label {
    color: #6f7894;
    font-size: 12px;
    font-weight: 700;
}

.record-value {
    color: #1f2946;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.record-value a {
    color: #2240a8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.record-thumb-wrap {
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.record-thumb {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.record-actions form {
    margin: 0;
}

.record-forms {
    display: grid;
    gap: 10px;
}

.record-form {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    background: #fff;
}

.record-form-title {
    margin: 0;
    font-size: 14px;
    color: #243155;
}

.record-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #67708d;
}

.record-card.record-card-error {
    border-color: #e2a7a7;
    box-shadow: 0 0 0 1px rgba(182, 53, 53, 0.12);
}

.record-form .field-error {
    color: #a33737;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.record-form .btn {
    width: 100%;
}

.record-empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed #d2dae8;
    border-radius: 12px;
    background: #fbfcff;
    color: #5f6987;
}

.records-wrap > nav {
    margin-top: 12px;
}

.records-wrap > nav[role="navigation"] > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.records-wrap > nav[role="navigation"] p {
    margin: 0;
    color: #6f7894;
    font-size: 13px;
}

.records-wrap > nav[role="navigation"] .relative.z-0.inline-flex {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.records-wrap > nav[role="navigation"] .relative.inline-flex.items-center {
    min-height: 34px;
    min-width: 34px;
    padding: 0 10px;
    border: 1px solid #d7dfec;
    border-radius: 9px;
    background: #fff;
    color: #30406c;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
}

.records-wrap > nav[role="navigation"] span.relative.inline-flex.items-center {
    background: #eef2fb;
    border-color: #cfd9ec;
    color: #1f2c68;
}

.records-wrap > nav[role="navigation"] a.relative.inline-flex.items-center:hover {
    border-color: #bcc8de;
    color: #1f2c68;
}

.records-wrap > nav[role="navigation"] svg {
    width: 14px;
    height: 14px;
    display: block;
}

.table-wrap {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: 10px;
    text-align: start;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
}

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

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

@media (max-width: 900px) {
    .feature-grid,
    .pricing-grid,
    .admin-stats,
    .records-grid {
        grid-template-columns: 1fr;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-users-search {
        width: 100%;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-page {
        min-height: auto;
    }
}

/* Header-Only Navigation Overrides */
.menu-overlay {
    z-index: 230;
}

.panel-top-header {
    padding-top: 18px;
}

.panel-top-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    width:95%;
    border: dashed;
    border-width: 2px;
    padding: 10px;
    border-radius: 2px;
}

.panel-branding span:first-child {
    font-size: 32px;
}

.panel-top-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.panel-top-links a {
    color: #4a567c;
    font-weight: 700;
    font-size: 14px;
    inline-size: 150px;
    block-size: 42px;
    padding: 0 10px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: 0.2s ease;
}

.panel-top-links a:hover {
    border-color: #bcc6da;
    color: #273760;
    transform: translateY(-1px);
}

.panel-top-links a.active {
    color: #1f2c68;
    border-color: #9ba9c7;
    background: #eef2fb;
}

.panel-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-mobile-shell {
    display: none;
}

.landing-mobile-panel,
.panel-mobile-panel {
    display: none;
}

.panel-main {
    padding: 24px;
}

body.panel-ajax-loading {
    cursor: progress;
}

body.panel-ajax-loading .panel-main {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 900px) {
    .landing-header,
    .panel-top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 220;
        padding: 10px 0;
        border-bottom: 1px solid #d6ddea;
        backdrop-filter: blur(4px);
        transition: transform 0.2s ease;
    }

    .landing-header {
        background: rgba(236, 238, 243, 0.97);
    }

    .panel-top-header {
        background: rgba(232, 235, 240, 0.97);
    }

    body.landing-header-hidden .landing-header,
    body.panel-header-hidden .panel-top-header {
        transform: translateY(-120%);
    }

    .landing-nav,
    .panel-top-nav {
        position: relative;
        display: block;
        min-height: 62px;
    }

    .landing-nav .brand-marketing,
    .panel-top-nav .panel-branding {
        position: absolute;
        inset-inline-start: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .landing-nav .landing-mobile-shell,
    .panel-top-nav .panel-mobile-shell {
        position: absolute;
        inset-inline-end: 0;
        top: 0;
        z-index: 225;
        display: block;
    }

    .landing-menu-desktop,
    .landing-controls-desktop,
    .panel-top-links-desktop,
    .panel-top-actions-desktop {
        display: none;
    }

    .landing-mobile-toggle,
    .panel-mobile-toggle {
        width: 62px;
        height: 62px;
        border-radius: 6px;
        border: 1px solid #1f315f;
        background: linear-gradient(180deg, #0a1a3e, #071735);
        display: inline-grid;
        place-items: center;
        padding: 0;
        cursor: pointer;
        box-shadow: 0 12px 24px rgba(7, 23, 53, 0.28);
    }

    .landing-mobile-panel,
    .panel-mobile-panel {
        position: fixed;
        top: 0;
        height: 100%;
        width: 100vw;
        max-width: 100vw;
        background: #fff;
        z-index: 240;
        padding: 20px 14px;
        overflow-y: auto;
        transition: transform 0.3s ease;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    html[dir="rtl"] .landing-mobile-panel,
    html[dir="rtl"] .panel-mobile-panel {
        right: 0;
        left: auto;
        transform: translateX(100%);
    }

    html[dir="ltr"] .landing-mobile-panel,
    html[dir="ltr"] .panel-mobile-panel {
        left: 0;
        right: auto;
        transform: translateX(-100%);
    }

    html[dir="rtl"] .landing-mobile-panel.open,
    html[dir="ltr"] .landing-mobile-panel.open,
    html[dir="rtl"] .panel-mobile-panel.open,
    html[dir="ltr"] .panel-mobile-panel.open {
        transform: translateX(0);
    }

    .landing-mobile-panel .drawer-close,
    .panel-mobile-panel .drawer-close {
        margin-bottom: 12px;
        margin-inline-start: auto;
    }

    .landing-menu-mobile,
    .panel-mobile-menu-links {
        display: grid;
        gap: 8px;
        width: 100%;
    }

    .landing-menu-mobile a,
    .panel-mobile-menu-links a {
        min-height: 42px;
        width: 100%;
        border-radius: 11px;
        border: 1px solid #dfe4ef;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2c3657;
        font-weight: 700;
    }

    .landing-main,
    .panel-main {
        padding-top: 106px;
    }

    .landing-mobile-utility {
        margin-top: 12px;
        display: grid;
        gap: 8px;
    }

    body.landing-body .landing-mobile-utility {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .landing-mobile-utility .lang-chip,
    .landing-mobile-utility .nav-btn,
    .landing-mobile-utility .nav-link-mobile,
    .landing-mobile-utility .currency-chip {
        width: 100%;
        justify-content: center;
    }

    .landing-mobile-utility form,
    .panel-mobile-panel form {
        margin-top: 8px;
    }

    body.landing-body .landing-mobile-utility form {
        margin-top: 0;
    }

    .panel-mobile-logout {
        width: 100%;
        min-height: 42px;
        border-radius: 11px;
        border: 1px solid #e8caca;
        background: #fff4f4;
        color: #a63939;
        font-weight: 700;
        cursor: pointer;
    }
}
