:root {
    --bg-top: #e8eef7;
    --bg-bottom: #d9e1ec;
    --surface: #ffffff;
    --text-primary: #11203a;
    --text-secondary: #51617d;
    --brand: #1f63d7;
    --brand-strong: #124eb5;
    --shadow-soft: 0 16px 40px rgba(16, 44, 88, 0.12);
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

a[href]:not([class]) {
    color: #1d5ec7;
    text-decoration-color: #84a9e8;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

a[href]:not([class]):hover {
    color: #123f8f;
    text-decoration-color: #2f7af6;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 18px;
}

.site-header {
    border-bottom: 1px solid #d6e0ef;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.88));
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2d75e8, transparent);
}

.site-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #4a648d;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: #1554c1;
    background-image: url("/images/header_logo.png"), linear-gradient(165deg, #2c78f1, #1554c1);
    background-size: contain, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    box-shadow: 0 10px 20px rgba(31, 86, 190, 0.26);
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(165deg, #ffe38a, #d9a91f);
    border: 2px solid #eef4ff;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    gap: 10px;
}

.header-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 4px;
    border: 1px solid #d4dff0;
    background: rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    padding: 5px;
}

.header-nav a {
    text-decoration: none;
    color: #2f476b;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 13px;
    border-radius: 8px;
    transition: background 0.16s ease, color 0.16s ease;
}

.header-nav a:hover,
.account-trigger:hover {
    background: #e8f0fc;
    color: #123f8f;
}

.account-dropdown {
    position: relative;
}

.account-trigger {
    text-decoration: none;
    color: #2f476b;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 13px;
    border-radius: 8px;
    transition: background 0.16s ease, color 0.16s ease;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.header-nav a.account-link,
.account-trigger.account-link {
    background: #dcf3e6;
    color: #1f6b3b;
}

.header-nav a.admin-link {
    background: #f9d9d9;
    color: #922626;
}

.header-nav a.admin-link:hover {
    background: #f4c3c3;
    color: #711919;
}

.header-nav a.account-link:hover,
.account-trigger.account-link:hover,
.account-dropdown.open .account-trigger.account-link {
    background: #c8ecd9;
    color: #16542d;
}

.account-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #d3ddef;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(18, 41, 78, 0.16);
    padding: 6px;
    z-index: 120;
}

.account-dropdown.open .account-dropdown-menu {
    display: grid;
}

.account-dropdown-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: #2f476b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.account-dropdown-menu a:hover {
    background: #ecf3ff;
    color: #123f8f;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(165deg, #2f7af6, #124eb5);
    box-shadow: 0 10px 20px rgba(20, 73, 164, 0.26);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 73, 164, 0.3);
}

.site-main {
    flex: 1;
    position: relative;
    isolation: isolate;
    padding: 40px 0 70px;
}

.site-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/bg.jpg");
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
}

.site-main > * {
    position: relative;
    z-index: 1;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid #d2dced;
    background: rgba(255, 255, 255, 0.76);
}

.site-footer-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #3f567b;
    font-size: 13px;
    font-weight: 600;
}

.footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(166, 182, 207, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(42, 72, 118, 0.08);
    white-space: nowrap;
    user-select: none;
}

.payment-logo-stripe {
    color: #635bff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}

.payment-logo-paypal {
    color: #003087;
    font-size: 15px;
    font-style: italic;
    font-weight: 800;
}

.payment-logo-visa {
    color: #1434cb;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.payment-logo-mastercard {
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 800;
    text-transform: lowercase;
}

.payment-logo-mastercard-mark {
    position: relative;
    width: 28px;
    height: 18px;
}

.payment-logo-mastercard-circle {
    position: absolute;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.94;
}

.payment-logo-mastercard-circle-left {
    left: 0;
    background: #eb001b;
}

.payment-logo-mastercard-circle-right {
    right: 0;
    background: #f79e1b;
}

.payment-logo-applepay {
    color: #111111;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.payment-logo-apple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.payment-methods-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #2f5f9f;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    text-decoration: underline;
}

.page-shell {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 18px;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.page-shell::before {
    width: 350px;
    height: 350px;
    top: -110px;
    left: -145px;
}

.page-shell::after {
    width: 340px;
    height: 340px;
    right: -130px;
    bottom: 180px;
}

.hero {
    text-align: center;
    margin-bottom: 26px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cad6e8;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #38557f;
    background: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.06;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.3vw, 1.08rem);
    line-height: 1.6;
}

.content-card {
    background: var(--surface);
    border: 1px solid #d1dbea;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 26px;
    margin-bottom: 24px;
}

.content-card h2 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.45rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.content-card p {
    color: #344b6f;
    line-height: 1.7;
    font-size: 15px;
}

.offer-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    background: linear-gradient(145deg, #ffffff 0%, #f6faff 52%, #eef4ff 100%);
}

.offer-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
}

.offer-lead {
    margin: 0;
    color: #26466e;
    font-size: 15px;
    line-height: 1.8;
}

.offer-copy {
    display: grid;
    gap: 12px;
}

.offer-copy p {
    margin: 0;
}

.offer-coupon-banner-strip {
    margin-top: 8px;
    margin-bottom: 0;
}

.home-coupon-banner-strip {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    justify-items: center;
}

.home-coupon-banner-item {
    width: min(100%, 960px);
    display: flex;
    justify-content: center;
}

.home-coupon-banner-item img {
    display: block;
    max-width: 100%;
    height: auto;
}

.home-news-feature {
    clear: both;
    margin-top: 24px;
}

.home-news-section-title {
    margin: 0 0 14px;
}

.home-news-paper {
    position: relative;
    padding: 24px 28px 22px;
    margin-bottom: 18px;
    border: 1px solid #d8ccb0;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbf5e8 0%, #f4ead5 100%);
    box-shadow: 0 18px 34px rgba(70, 52, 24, 0.12);
}

.home-news-paper::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(119, 89, 43, 0.18);
    border-radius: 12px;
    pointer-events: none;
}

.home-news-masthead {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 0 0 10px;
    border-top: 3px double #8f7344;
    border-bottom: 3px double #8f7344;
    color: #6d5330;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-news-headline {
    position: relative;
    z-index: 1;
    margin: 16px 0 10px;
    color: #1f1b14;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.05;
    text-wrap: balance;
}

.home-news-copy {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #3a2f20;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.85;
    column-width: 250px;
    column-gap: 28px;
    column-rule: 1px solid rgba(130, 106, 67, 0.22);
}

.home-news-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 16px;
    color: #5a431e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.home-news-link:hover {
    color: #8a6118;
}

.home-pricing-payments,
.pricing-payments-strip {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.home-pricing-section {
    display: grid;
    gap: 18px;
}

.home-pricing-payment-strip {
    width: 100%;
}

.supported-games-card {
    display: grid;
    gap: 20px;
    margin-top: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.supported-games-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.supported-games-head h2 {
    margin: 10px 0 0;
    color: #173d75;
}

.supported-games-head .section-subtitle {
    margin: 10px 0 0;
}

.supported-games-side-note {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid #d8e3f4;
    border-radius: 18px;
    background: linear-gradient(165deg, #edf4ff, #f9fbff);
}

.supported-games-side-note strong {
    color: #173d75;
    font-size: 15px;
}

.supported-games-side-note span {
    color: #486386;
    font-size: 14px;
    line-height: 1.65;
}

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

.supported-game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid #d9e4f4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(22, 52, 96, 0.08);
    color: #25456d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.supported-game-marker {
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
    background: linear-gradient(160deg, #2468dd, #4d8df9);
    box-shadow: 0 0 0 5px #edf4ff;
}

.section-title {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 3.4vw, 2rem);
    margin: 8px 0 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: #42597e;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 16px;
}

.controls {
    display: flex;
    justify-content: center;
    margin: 10px 0 24px;
}

.duration-toggle {
    width: 100%;
    max-width: 740px;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    background: var(--surface);
    border: 1px solid #cfdaea;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

.duration-btn {
    border: 1px solid transparent;
    border-radius: 11px;
    background: #f3f6fb;
    color: #2f476b;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 10px;
    transition: all 0.18s ease;
}

.duration-btn:hover {
    border-color: #b6c7e1;
    transform: translateY(-1px);
}

.duration-btn.active {
    background: linear-gradient(165deg, #2f7af6, #124eb5);
    border-color: #0f47a6;
    color: #fff;
    box-shadow: 0 10px 20px rgba(20, 73, 164, 0.28);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid #d6deea;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(18, 41, 78, 0.11);
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.plan-card.popular {
    border: 1px solid #8cb3f4;
    transform: translateY(-4px);
}

.plan-card.popular::before {
    content: "Most Popular";
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(165deg, #235fcf, #184aab);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 7px 12px 8px;
    border-bottom-left-radius: 12px;
}

.plan-name {
    font-size: 1.22rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.plan-description {
    color: #435a7d;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 12px;
    min-height: 64px;
}

.price-wrap {
    margin-bottom: 14px;
    min-height: 74px;
}

.price-main {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.price-period {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    margin-top: 5px;
}

.feature-list {
    list-style: none;
    margin: 6px 0 0;
    display: grid;
    gap: 10px;
    color: #334c71;
    font-size: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(160deg, #2468dd, #4d8df9);
    box-shadow: 0 0 0 4px #e8effb;
    flex-shrink: 0;
}

.checkout-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkout-form {
    margin: 0;
}

.pay-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

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

.pay-btn-stripe {
    background: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.25);
}

.pay-btn-paypal {
    background: #ffc439;
    border-color: #e5ae2e;
    color: #1b1f2d;
    box-shadow: 0 8px 18px rgba(198, 148, 23, 0.22);
}

.plan-login-btn {
    margin-top: 0;
}

.soldout-btn {
    margin-top: 0;
    background: #c7d4e8;
    border-color: #b5c6df;
    color: #f7fbff;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.plan-action {
    margin-top: auto;
    padding-top: 14px;
}

.plan-soldout-message {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    color: #9b2d2d;
    line-height: 1.45;
}

.order-term-toggle {
    margin-bottom: 14px;
}

.order-term-toggle .duration-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-summary-grid {
    margin-top: 10px;
}

.order-proration-note {
    margin-top: 10px;
    margin-bottom: 0;
}

.order-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 14px;
    align-items: start;
}

.order-box {
    border: 1px solid #d3dff1;
    border-radius: 14px;
    background: #f8fbff;
    padding: 14px;
}

.order-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #1f3e64;
}

.checkout-paypal-form {
    margin-top: 8px;
}

.checkout-terms-row {
    margin-top: 4px;
}

.checkout-terms-row a {
    color: #1a56bc;
    text-decoration: none;
}

.checkout-terms-row a:hover {
    text-decoration: underline;
}

.legal-page {
    display: grid;
    gap: 18px;
}

.legal-intro h1 {
    margin-bottom: 8px;
}

.legal-updated {
    margin: 8px 0 0;
    color: #5d7598;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-section {
    padding-top: 2px;
}

.legal-section h2 {
    margin: 0 0 10px;
    color: #193b67;
    font-size: 24px;
}

.legal-section p {
    margin: 0;
    color: #29476f;
    line-height: 1.7;
}

.legal-list {
    margin: 0;
    padding-left: 20px;
    color: #29476f;
    line-height: 1.7;
}

.legal-list li + li {
    margin-top: 8px;
}

.legal-note {
    border-radius: 12px;
    padding: 14px 16px;
    line-height: 1.7;
}

.legal-note-alert {
    border: 1px solid #e7b8b8;
    background: #fff3f1;
    color: #8f2f2f;
    font-weight: 700;
}

.checkout-coupon-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #d4e0f1;
}

.checkout-coupon-box h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #214267;
}

.checkout-coupon-form {
    margin-top: 0;
}

.checkout-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: end;
}

.checkout-coupon-row .form-input {
    margin-bottom: 0;
}

.checkout-coupon-active {
    margin: 10px 0 0;
    color: #2c5577;
    font-size: 14px;
    font-weight: 700;
}

.checkout-mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-mode-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #edf3fc;
    border: 1px solid #cbd9eb;
    border-radius: 999px;
    padding: 8px 12px;
    color: #2d476f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-panel {
    display: none;
}

.checkout-panel.active {
    display: block;
}

.order-page-kicker,
.order-section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2153a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-storefront-page,
.order-checkout-page {
    display: grid;
    gap: 18px;
}

.order-storefront-hero,
.order-checkout-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
    gap: 22px;
    align-items: stretch;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 58%, #e9f0fb 100%);
    border-color: #d6e1f1;
}

.order-storefront-copy,
.order-checkout-hero-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.order-storefront-copy h1,
.order-checkout-hero-copy h1 {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.order-storefront-copy .section-subtitle,
.order-checkout-hero-copy .section-subtitle {
    margin: 0;
    max-width: 720px;
    font-size: 16px;
}

.order-storefront-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

.order-storefront-panel-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #d7e3f3;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
}

.order-storefront-panel-item strong {
    color: #173f77;
    font-size: 15px;
}

.order-storefront-panel-item span {
    color: #445e83;
    font-size: 14px;
    line-height: 1.6;
}

.order-billing-card {
    display: grid;
    gap: 18px;
}

.order-billing-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.order-billing-head h2,
.order-plan-section-head h2,
.order-summary-head h2,
.order-checkout-note h2,
.checkout-payment-head h2,
.checkout-account-head h2 {
    margin: 10px 0 0;
    color: #173d75;
}

.order-billing-head .section-subtitle,
.order-plan-section-head .section-subtitle,
.checkout-payment-head .section-subtitle,
.checkout-account-head .section-subtitle {
    margin: 8px 0 0;
}

.order-billing-note {
    max-width: 320px;
    color: #587194;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.order-duration-toggle {
    max-width: none;
}

.order-plan-section {
    display: grid;
    gap: 18px;
}

.order-plan-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.order-billing-card .order-plan-section-head {
    padding-top: 18px;
    border-top: 1px solid #d8e3f4;
}

.order-billing-card .order-plan-section {
    padding-top: 2px;
}

.order-billing-card .home-pricing-payments {
    margin-top: 0;
    padding-top: 4px;
}

.order-plan-section-head .section-title {
    margin: 10px 0 0;
}

.order-plan-section-head .section-subtitle {
    max-width: 520px;
    margin: 0;
}

.order-plan-grid {
    margin-bottom: 0;
}

.order-plan-card {
    min-height: 100%;
    border-color: #d3deee;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 34px rgba(18, 41, 78, 0.11);
}

.order-plan-card.popular::before {
    content: none;
}

.order-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-plan-kicker {
    display: inline-flex;
    color: #587194;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-plan-card .plan-name {
    margin: 8px 0 0;
    color: #173d75;
}

.order-plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: linear-gradient(165deg, #215fd0, #1548aa);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.order-plan-card .plan-description {
    min-height: 0;
    margin-top: 14px;
    margin-bottom: 16px;
}

.order-plan-price {
    min-height: 0;
    margin-bottom: 18px;
}

.order-plan-list {
    margin-top: 2px;
    gap: 12px;
}

.order-plan-list li {
    align-items: center;
    color: #304a71;
    line-height: 1.6;
}

.order-plan-action {
    padding-top: 18px;
}

.order-plan-action .primary-btn,
.order-plan-action .soldout-btn {
    width: 100%;
}

.order-checkout-layout {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.order-checkout-sidebar,
.order-checkout-main {
    display: grid;
    gap: 18px;
}

.order-summary-card,
.order-checkout-note,
.checkout-payment-card,
.checkout-account-card {
    margin-bottom: 0;
}

.order-summary-card {
    display: grid;
    gap: 18px;
}

.order-summary-head {
    display: grid;
    gap: 10px;
}

.order-summary-head p {
    margin: 0;
    color: #4a6388;
    line-height: 1.7;
}

.order-summary-total {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid #cfe0f5;
    border-radius: 18px;
    background: linear-gradient(165deg, #edf4ff, #f8fbff);
}

.order-summary-total span,
.checkout-payment-summary span,
.checkout-payment-balance span {
    color: #597392;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-summary-total strong {
    color: #163b73;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.order-summary-total small {
    color: #4c668b;
    font-size: 13px;
    font-weight: 700;
}

.order-summary-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.order-summary-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #dde7f4;
}

.order-summary-list div:first-child {
    border-top: none;
    padding-top: 0;
}

.order-summary-list dt {
    margin: 0;
    color: #587194;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-summary-list dd {
    margin: 0;
    color: #203a5f;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.order-summary-card .checkout-coupon-box {
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid #d7e2f1;
}

.order-checkout-note-list {
    margin: 0;
    padding-left: 20px;
    color: #2f486c;
    line-height: 1.7;
}

.order-checkout-note-list li + li {
    margin-top: 8px;
}

.checkout-payment-card,
.checkout-account-card {
    display: grid;
    gap: 18px;
}

.checkout-payment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.checkout-payment-balance {
    display: grid;
    gap: 4px;
    min-width: 180px;
    padding: 14px 16px;
    border: 1px solid #d4e1f4;
    border-radius: 16px;
    background: #f8fbff;
    text-align: right;
}

.checkout-payment-balance strong {
    color: #173d75;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.checkout-credit-banner {
    border: 1px solid #cce7d5;
    border-radius: 14px;
    background: #eef9f2;
    color: #205838;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    padding: 13px 15px;
}

.checkout-payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.checkout-payment-summary div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #d7e2f3;
    border-radius: 16px;
    background: #f8fbff;
}

.checkout-payment-summary strong {
    color: #173d75;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.checkout-payment-form {
    margin-top: 0;
}

.checkout-payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkout-payment-actions .pay-btn,
.checkout-payment-form > .pay-btn {
    min-height: 48px;
    font-size: 14px;
}

.checkout-payment-strip {
    justify-content: flex-start;
    margin: 16px 0 10px;
}

.checkout-payment-strip .payment-logo {
    background: #ffffff;
}

.checkout-payment-form .checkout-terms-row {
    margin-top: 0;
}

.checkout-account-head {
    display: grid;
    gap: 10px;
}

.checkout-mode-selector {
    gap: 12px;
    margin-bottom: 0;
}

.checkout-mode-item {
    min-height: 44px;
    padding: 0 14px;
    background: #f3f7fe;
    border-color: #c9d9ef;
}

.checkout-mode-item input {
    accent-color: #1f63d7;
}

.checkout-auth-form {
    margin-top: 0;
}

.checkout-auth-copy {
    margin: 0 0 12px;
    color: #4a6388;
    font-size: 14px;
    line-height: 1.6;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid #ced8e8;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(18, 41, 78, 0.11);
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 980px;
}

th,
td {
    text-align: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f2;
    font-size: 14px;
}

th {
    background: #e9f1ff;
    color: #26446f;
    font-weight: 800;
    letter-spacing: 0.01em;
}

tbody tr:nth-child(even) {
    background: #f9fbff;
}

.game-cell {
    font-weight: 700;
    color: #2d476f;
    line-height: 1.45;
}

.auth-card {
    max-width: 620px;
    margin: 0 auto;
}

.profile-card {
    margin: 0 auto;
}

.account-form {
    display: grid;
    gap: 12px;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d476f;
}

.form-input {
    height: 46px;
    border: 1px solid #cbd9eb;
    border-radius: 10px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    color: #213754;
    background: #fff;
}

.form-textarea {
    border: 1px solid #cbd9eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #213754;
    background: #fff;
    resize: vertical;
}

.form-input:focus {
    border-color: #3f82f2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 130, 242, 0.2);
}

.form-textarea:focus {
    border-color: #3f82f2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 130, 242, 0.2);
}

.form-note {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5c7397;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.neutral-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 42px;
    padding: 0 14px;
    font-family: inherit;
}

.primary-btn {
    background: linear-gradient(165deg, #2f7af6, #124eb5);
    color: #fff;
    box-shadow: 0 10px 20px rgba(20, 73, 164, 0.22);
}

.secondary-btn {
    background: #f1f6ff;
    border-color: #bfd0ea;
    color: #214878;
}

.ghost-btn {
    background: transparent;
    border-color: #bfd0ea;
    color: #214878;
}

.neutral-btn {
    background: #f2f4f7;
    border-color: #d0d6de;
    color: #495566;
}

.danger-btn {
    background: #fff2f2;
    border-color: #f0c7c7;
    color: #8b2626;
}

.warning-btn {
    background: #fff6d8;
    border-color: #e7c86a;
    color: #7a5a06;
}

.turnstile-wrap {
    margin: 8px 0 4px;
}

.auth-switch {
    margin-top: 14px;
    font-size: 14px;
    color: #455d80;
}

.auth-switch a {
    color: #1f63d7;
    font-weight: 700;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.flash {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid;
}

.flash-success {
    background: #eefaf1;
    color: #215b34;
    border-color: #c2e7cc;
}

.flash-error {
    background: #fff2f2;
    color: #7a2424;
    border-color: #f0c7c7;
}

.profile-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

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

.profile-actions form {
    margin: 0;
}

.profile-actions .dashboard-ticket-btn {
    background: #dde5ef;
    border-color: #b9c7d8;
    color: #2b4464;
}

.profile-actions .support-ticket-open-btn {
    background: linear-gradient(165deg, #2f9854, #1d6f3a);
    border-color: #195f32;
    box-shadow: 0 10px 20px rgba(24, 96, 54, 0.24);
}

.profile-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}

.detail-list {
    margin-top: 18px;
    border: 1px solid #d7e3f2;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 18px;
    padding: 14px 16px;
    border-top: 1px solid #e0e8f4;
}

.detail-row:first-child {
    border-top: none;
}

.detail-row dt {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c7397;
}

.detail-row dd {
    margin: 0;
    color: #22395a;
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
}

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

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

.invoice-payment-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.invoice-payment-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f3e64;
}

.invoice-payment-amount {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #174a9b;
}

.invoice-payment-card form {
    margin: 0;
}

.invoice-payment-note {
    margin-top: 12px;
}

.poolpay-link-panel {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.poolpay-account-form {
    margin-top: 0;
}

.poolpay-link-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d7e2f3;
    border-radius: 14px;
    background: #f8fbff;
}

.poolpay-link-box p {
    margin: 0;
}

.poolpay-public-card {
    display: grid;
    gap: 18px;
}

.poolpay-public-head {
    display: grid;
    gap: 8px;
}

.poolpay-public-head h1 {
    margin: 0;
}

.poolpay-section {
    padding: 18px;
}

.poolpay-table-wrap {
    margin-top: 10px;
}

.poolpay-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
}

.poolpay-table th,
.poolpay-table td {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.poolpay-table tbody th {
    width: 220px;
}

.poolpay-service-name {
    min-width: 260px;
}

.poolpay-service-meta {
    margin-top: 4px;
    color: #577091;
    font-size: 13px;
    font-weight: 600;
}

.poolpay-amount-form {
    margin-top: 10px;
}

.poolpay-payment-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.poolpay-amount-input-wrap {
    position: relative;
    flex: 0 0 140px;
    width: 140px;
    max-width: 100%;
}

.poolpay-dollar {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #446287;
    font-weight: 700;
}

.poolpay-amount-input {
    width: 100%;
    padding-left: 28px;
    text-align: left;
}

.poolpay-payment-strip {
    margin-top: 16px;
    justify-content: center;
}

.invoice-detail-list {
    margin-bottom: 22px;
}

.invoice-detail-list .detail-row {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 22px;
    padding: 16px 18px;
    align-items: center;
}

.invoice-detail-list .detail-row dd {
    line-height: 1.45;
}

.account-invoice-section .dashboard-section-head {
    margin-bottom: 12px;
}

.dashboard-section .account-invoice-transactions-wrap {
    margin-top: 14px;
}

.account-invoice-transactions-scroll {
    overflow-x: auto;
}

.account-invoice-transactions-table {
    min-width: 860px;
    width: 100%;
    table-layout: auto;
}

.account-invoice-transactions-table th,
.account-invoice-transactions-table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.account-invoice-transactions-table td:nth-child(5) {
    white-space: nowrap;
}

.account-invoice-transactions-table td:nth-child(6),
.account-invoice-transactions-table td:nth-child(7) {
    min-width: 190px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ticket-details-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.ticket-detail-list {
    max-width: 760px;
}

.admin-ticket-detail-list {
    max-width: 860px;
}

.ticket-detail-list .detail-row dd {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-reply-form {
    margin-top: 14px;
}

.ticket-admin-status-form {
    margin-top: 14px;
}

.ticket-admin-update-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}

.ticket-admin-update-grid .form-input {
    margin-bottom: 0;
}

.ticket-admin-toolbar {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-admin-toolbar .form-input {
    margin: 0;
    flex: 1 1 280px;
}

.ticket-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d9e4f3;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.ticket-main {
    display: grid;
    gap: 4px;
}

.ticket-code {
    font-weight: 800;
    color: #1d4f9c;
    font-size: 13px;
}

.ticket-summary {
    font-weight: 700;
    color: #1f3656;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #42597e;
    font-size: 13px;
    font-weight: 700;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ticket-badge,
.ticket-status {
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid #ccd9ed;
    background: #eef4ff;
}

.ticket-department-support {
    border-color: #a7c8f3;
    background: #eaf4ff;
    color: #174a9b;
}

.ticket-department-billing {
    border-color: #f0c58e;
    background: #fff1de;
    color: #9a4f00;
}

.ticket-department-pre-sale-questions {
    border-color: #9fd5bc;
    background: #eaf9f0;
    color: #1a6b43;
}

.ticket-priority-low {
    border-color: #ced8e6;
    background: #f3f6fb;
    color: #5b6c86;
}

.ticket-priority-medium {
    border-color: #a7c8f3;
    background: #eaf4ff;
    color: #174a9b;
}

.ticket-priority-high {
    border-color: #f0c58e;
    background: #fff1de;
    color: #9a4f00;
}

.ticket-priority-critical {
    border-color: #efb1b1;
    background: #fff0f0;
    color: #a92b2b;
}

.ticket-priority-emergency {
    border-color: #d98989;
    background: #fde6e6;
    color: #7f1d1d;
}

.ticket-status-closed {
    border-color: #d5dbe6;
    background: #f2f4f8;
}

.ticket-status-awaiting_reply {
    border-color: #e5d39a;
    background: #fff7de;
}

.ticket-status-in_progress {
    border-color: #9dc7f7;
    background: #eaf4ff;
}

.ticket-status-on_hold {
    border-color: #d6c7ef;
    background: #f4effd;
}

.ticket-thread {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.ticket-message {
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
}

.ticket-message-client {
    border-color: #c5d9fa;
    background: #eef5ff;
}

.ticket-message-staff {
    border-color: #b9dcc7;
    background: #eef9f2;
}

.ticket-message header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    color: #2d476f;
    font-size: 13px;
}

.ticket-message-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.ticket-message-meta a {
    color: #1a56bc;
    text-decoration: none;
}

.ticket-message-meta a:hover {
    text-decoration: underline;
}

.ticket-message-meta time {
    margin-left: 0;
}

.ticket-message header time {
    margin-left: auto;
}

.ticket-message p {
    color: #2a4263;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.ticket-message-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-message-actions form {
    margin: 0;
}

.ticket-reply-inline-form {
    margin-top: 8px;
}

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

.admin-card {
    display: grid;
    gap: 8px;
    text-decoration: none;
    background: #f7faff;
    border: 1px solid #d8e3f4;
    border-radius: 14px;
    padding: 16px;
    color: #1e385c;
}

.admin-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #486287;
}

.admin-card-value {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.admin-dashboard-shell {
    display: grid;
    gap: 16px;
}

.admin-dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

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

.admin-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
}

.admin-kpi-card {
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    gap: 6px;
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 11px 24px rgba(14, 31, 58, 0.22);
}

.admin-kpi-card.customers {
    background: linear-gradient(160deg, #1f5bbf, #154aa3);
}

.admin-kpi-card.tickets {
    background: linear-gradient(160deg, #c14b11, #a43506);
}

.admin-kpi-card.invoices {
    background: linear-gradient(160deg, #1f9149, #17793c);
}

.admin-kpi-card.packages {
    background: linear-gradient(160deg, #364967, #2a3a54);
}

.admin-kpi-card.logs {
    background: linear-gradient(160deg, #545f71, #434e5f);
}

.admin-kpi-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.92;
}

.admin-kpi-value {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.admin-dashboard-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.admin-dashboard-panel {
    border: 1px solid #d1ddf1;
    border-radius: 14px;
    background: #f7fbff;
    padding: 14px;
    min-width: 0;
}

.admin-dashboard-panel.span-2 {
    grid-column: 1 / -1;
}

.admin-dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.admin-dashboard-panel-head h2 {
    margin: 0;
    font-size: 1.04rem;
}

.admin-dashboard-table-wrap {
    margin-top: 0;
    background: #ffffff;
}

.admin-dashboard-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
}

.admin-dashboard-table th,
.admin-dashboard-table td {
    white-space: nowrap;
    vertical-align: top;
}

.admin-dashboard-table .admin-url-cell,
.admin-dashboard-table .admin-user-agent-cell {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-package-list {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.admin-package-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-package-head p {
    margin: 0;
    color: #456085;
    font-size: 13px;
    font-weight: 700;
}

.admin-package-form {
    border: 1px solid #d3dff1;
    border-radius: 14px;
    padding: 16px;
    background: #f8fbff;
}

.admin-package-form h2 {
    margin: 0;
    font-size: 1.12rem;
    color: #1f3e64;
}

.admin-package-core-grid {
    margin-top: 10px;
}

.admin-package-price-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.package-price-title {
    margin: 12px 0 0;
    font-size: 15px;
    color: #36527b;
}

.admin-packages-page {
    max-width: 1200px;
}

.admin-package-summary-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.admin-package-summary-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 6px;
    border-radius: 18px;
    padding: 18px;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(19, 41, 76, 0.18);
}

.admin-package-summary-card.catalog {
    background: linear-gradient(135deg, #0f5fd7 0%, #2d8cff 100%);
}

.admin-package-summary-card.capacity {
    background: linear-gradient(135deg, #0c7c66 0%, #22a886 100%);
}

.admin-package-summary-card.pricing {
    background: linear-gradient(135deg, #9b4b10 0%, #df7d21 100%);
}

.admin-package-summary-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.admin-package-summary-card strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.admin-package-summary-card p {
    margin: 0;
    line-height: 1.5;
    opacity: 0.95;
}

.admin-package-editor-list {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.admin-package-editor {
    border: 1px solid #d3dff1;
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
    box-shadow: 0 12px 24px rgba(19, 41, 76, 0.08);
}

.admin-package-layout {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-package-sidebar {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #d6e1f2;
    border-radius: 18px;
    background: linear-gradient(160deg, #1e3f68 0%, #274f82 45%, #325d95 100%);
    color: #ffffff;
}

.admin-package-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.admin-package-sidebar h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.admin-package-sidebar p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.admin-package-meta {
    display: grid;
    gap: 10px;
    margin: 4px 0 0;
}

.admin-package-meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-package-meta dt {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.72;
}

.admin-package-meta dd {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.admin-package-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-package-section {
    border: 1px solid #d7e2f2;
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    min-width: 0;
}

.admin-package-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-package-section-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f3e64;
}

.admin-package-section-head p {
    margin: 4px 0 0;
    color: #4a6589;
    font-size: 14px;
    line-height: 1.5;
}

.admin-package-detail-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    align-items: start;
}

.admin-package-description {
    min-height: 168px;
    resize: vertical;
}

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

.admin-package-price-card {
    display: grid;
    gap: 8px;
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #f1f6ff 100%);
}

.admin-package-price-card p {
    margin: 0;
    color: #547094;
    font-size: 13px;
    line-height: 1.5;
}

.admin-package-price-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.admin-package-price-input span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 44px;
    border-radius: 12px;
    background: #dce9fb;
    color: #1a4c92;
    font-weight: 800;
}

.admin-package-price-input .form-input {
    min-width: 0;
}

.admin-package-actions {
    margin-top: 0;
}

.knowledge-base-shell,
.knowledge-base-entry-shell,
.admin-kb-shell,
.admin-kb-edit-shell {
    max-width: 1180px;
}

.knowledge-base-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid #d5e1f4;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(74, 133, 241, 0.16), transparent 36%),
        linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

.knowledge-base-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #456b9f;
}

.knowledge-base-hero h1 {
    margin: 0;
}

.knowledge-base-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.knowledge-base-sidebar,
.knowledge-base-main {
    min-width: 0;
}

.knowledge-base-layout > :only-child {
    grid-column: 1 / -1;
}

.knowledge-base-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
}

.knowledge-base-stat-card {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(165deg, #234a7c 0%, #2f649f 100%);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(18, 41, 78, 0.16);
}

.knowledge-base-stat-card span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.78;
}

.knowledge-base-stat-card strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.knowledge-base-widget,
.knowledge-base-featured,
.knowledge-base-category-section,
.knowledge-base-related {
    margin-top: 18px;
    border: 1px solid #d7e2f3;
    border-radius: 20px;
    background: #ffffff;
    padding: 18px;
}

.knowledge-base-widget {
    position: sticky;
    top: 98px;
}

.knowledge-base-layout .knowledge-base-widget,
.knowledge-base-layout .knowledge-base-featured,
.knowledge-base-layout .knowledge-base-empty {
    margin-top: 0;
}

.knowledge-base-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.knowledge-base-section-head h2 {
    margin: 0;
    color: #1f3e64;
}

.knowledge-base-section-head p {
    margin: 4px 0 0;
    color: #4c678b;
    line-height: 1.55;
}

.knowledge-base-category-nav {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.knowledge-base-category-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #cbdaf0;
    background: #edf4ff;
    color: #234870;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.knowledge-base-category-stack {
    margin-top: 6px;
    display: grid;
    gap: 18px;
}

.knowledge-base-entry-grid,
.admin-kb-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.knowledge-base-entry-card,
.admin-kb-entry-card {
    display: grid;
    gap: 8px;
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
    min-width: 0;
}

.knowledge-base-entry-tag,
.admin-kb-entry-tag {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #dce9fb;
    color: #21508d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.knowledge-base-entry-card h3,
.admin-kb-entry-card h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.4;
}

.knowledge-base-entry-card a,
.admin-kb-entry-card a {
    text-decoration: none;
}

.knowledge-base-entry-card p,
.admin-kb-entry-card p {
    margin: 0;
    color: #405d83;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.knowledge-base-empty {
    margin-top: 18px;
    padding: 26px 20px;
    border: 1px dashed #cddcf1;
    border-radius: 20px;
    background: #f8fbff;
    text-align: center;
}

.knowledge-base-empty h2 {
    margin: 0 0 8px;
    color: #1f3e64;
}

.knowledge-base-empty p {
    margin: 0;
    color: #4f6c91;
}

.knowledge-base-category-list {
    display: grid;
    gap: 8px;
}

.knowledge-base-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    text-decoration: none;
    color: #1f3e64;
    font-weight: 700;
}

.knowledge-base-category-item.is-active {
    border-color: #bfd3f2;
    background: #eaf3ff;
    color: #174a9b;
}

.knowledge-base-category-name {
    min-width: 0;
}

.knowledge-base-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dce9fb;
    color: #21508d;
    font-size: 12px;
    font-weight: 800;
}

.knowledge-base-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.knowledge-base-summary-cell {
    text-align: left;
}

.knowledge-base-table th,
.knowledge-base-table td {
    white-space: normal;
}

.knowledge-base-article-link {
    display: inline-block;
    color: #1f4d9c;
    text-decoration: none;
    font-weight: 700;
}

.knowledge-base-summary-cell p {
    margin: 6px 0 0;
    color: #405d83;
    line-height: 1.6;
    white-space: normal;
}

.knowledge-base-article {
    margin-top: 18px;
    border: 1px solid #d7e2f3;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 22px;
}

.knowledge-base-article-body {
    color: #223b5d;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.knowledge-base-article-body > :first-child {
    margin-top: 0;
}

.knowledge-base-article-body > :last-child {
    margin-bottom: 0;
}

.knowledge-base-article-body h1,
.knowledge-base-article-body h2,
.knowledge-base-article-body h3,
.knowledge-base-article-body h4,
.knowledge-base-article-body h5,
.knowledge-base-article-body h6 {
    margin: 1.3em 0 0.55em;
    color: #17355b;
    line-height: 1.3;
}

.knowledge-base-article-body p,
.knowledge-base-article-body ul,
.knowledge-base-article-body ol,
.knowledge-base-article-body blockquote,
.knowledge-base-article-body pre {
    margin: 0 0 1rem;
}

.knowledge-base-article-body ul,
.knowledge-base-article-body ol {
    padding-left: 2.35rem;
    list-style-position: outside;
}

.knowledge-base-article-body li {
    padding-left: 0.15rem;
}

.knowledge-base-article-body li + li {
    margin-top: 0.35rem;
}

.knowledge-base-article-body a {
    color: #155bb4;
    font-weight: 700;
}

.knowledge-base-article-body blockquote {
    padding: 0.9rem 1rem;
    border-left: 4px solid #7ca7dd;
    border-radius: 0 14px 14px 0;
    background: #f3f8ff;
    color: #36557d;
}

.knowledge-base-article-body blockquote p {
    margin: 0;
}

.knowledge-base-article-body code {
    display: inline-block;
    padding: 0.12rem 0.38rem;
    border-radius: 8px;
    background: #edf3fb;
    color: #173e73;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.95em;
}

.knowledge-base-article-body pre {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: #11243f;
    color: #eef5ff;
    overflow-x: auto;
}

.knowledge-base-article-body pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
}

.knowledge-base-article-body hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #d4e0f2;
}

.news-page-card {
    max-width: 980px;
}

.news-feed {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.news-post {
    padding: 22px 24px;
    border: 1px solid #d8e3f3;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
    box-shadow: 0 20px 36px rgba(15, 43, 86, 0.1);
}

.news-post-head {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.news-post-head h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.news-post-title-link {
    color: inherit;
    text-decoration: none;
}

.news-post-title-link:hover {
    color: #145ab3;
}

.news-post-date {
    margin: 0;
    color: #587398;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-post-body {
    color: #243f61;
    line-height: 1.8;
}

.news-post-full {
    margin-top: 16px;
}

.news-post-body-html {
    color: #243f61;
}

.admin-news-excerpt {
    margin-top: 6px;
    color: #5c7397;
    font-size: 13px;
    line-height: 1.5;
}

.admin-news-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-news-form {
    margin-top: 14px;
}

.admin-kb-summary-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 12px;
}

.admin-kb-summary-card {
    display: grid;
    gap: 6px;
    border-radius: 18px;
    padding: 18px;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(19, 41, 76, 0.16);
}

.admin-kb-summary-card.categories {
    background: linear-gradient(135deg, #1266d4 0%, #3b8ef9 100%);
}

.admin-kb-summary-card.entries {
    background: linear-gradient(135deg, #0c7a67 0%, #22a889 100%);
}

.admin-kb-summary-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.78;
}

.admin-kb-summary-card strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.admin-kb-summary-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.admin-kb-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-kb-sidebar,
.admin-kb-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-kb-form-panel h2 {
    margin: 0 0 8px;
}

.admin-kb-form-panel p {
    margin: 0 0 12px;
}

.admin-kb-description {
    min-height: 120px;
    resize: vertical;
}

.admin-kb-summary {
    min-height: 140px;
    resize: vertical;
}

.admin-kb-body {
    min-height: 240px;
    resize: vertical;
}

.markdown-editor-shell {
    margin-bottom: 12px;
}

.markdown-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid #ccd9ec;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(246, 216, 126, 0.35), transparent 34%),
        linear-gradient(180deg, #fcfdff 0%, #f1f6ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.markdown-toolbar-note {
    display: grid;
    gap: 4px;
}

.markdown-toolbar-kicker {
    color: #4f6f98;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.markdown-toolbar-copy {
    color: #24466f;
    font-size: 14px;
    line-height: 1.5;
}

.markdown-toolbar-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.markdown-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dbe4f2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.markdown-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #c6d5ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    color: #183f71;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        border-color 0.12s ease,
        background 0.12s ease,
        box-shadow 0.12s ease;
}

.markdown-tool-btn:hover {
    border-color: #9bb7df;
    background: linear-gradient(180deg, #ffffff 0%, #e4efff 100%);
    box-shadow: 0 8px 18px rgba(38, 75, 133, 0.12);
    transform: translateY(-1px);
}

.markdown-tool-btn:focus-visible {
    outline: 2px solid #1c5fc6;
    outline-offset: 2px;
}

.markdown-tool-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 7px;
    border-radius: 8px;
    background: #e7effd;
    color: #173e71;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.markdown-tool-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .markdown-toolbar {
        padding: 12px;
    }

    .markdown-toolbar-groups {
        display: grid;
        gap: 8px;
    }

    .markdown-toolbar-group {
        gap: 6px;
    }

    .markdown-tool-btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: flex-start;
        min-width: 0;
    }
}

.admin-kb-category-stack {
    display: grid;
    gap: 14px;
}

.admin-kb-category-section {
    min-width: 0;
}

.admin-kb-category-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.admin-kb-category-kicker {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b76a0;
}

.admin-kb-category-head h2 {
    margin: 0;
}

.admin-kb-category-head p {
    margin: 4px 0 0;
    color: #496589;
    line-height: 1.55;
}

.admin-kb-entry-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-kb-empty {
    text-align: center;
}

.admin-kb-empty h2 {
    margin: 0 0 8px;
}

.admin-kb-meta div {
    border-top-color: #dbe4f2;
}

.admin-kb-meta dt {
    color: #557092;
    opacity: 1;
}

.admin-kb-meta dd {
    color: #203b61;
}

.admin-table-wrap {
    margin-top: 14px;
    border: 1px solid #d3dff1;
    border-radius: 14px;
    overflow: hidden;
}

.admin-table-scroll {
    overflow: auto;
}

.admin-table {
    min-width: 960px;
    table-layout: auto;
}

.admin-table th,
.admin-table td {
    white-space: nowrap;
    vertical-align: top;
}

.admin-table td:last-child {
    white-space: normal;
    min-width: 280px;
}

.admin-search-form {
    margin-top: 12px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
}

.admin-search-form .form-label {
    grid-column: 1 / -1;
    margin-bottom: -2px;
}

.pagination-bar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-text {
    color: #355176;
    font-weight: 700;
    font-size: 14px;
}

.secondary-btn.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.admin-actions-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-actions-row.compact {
    margin-top: 0;
}

.admin-actions-row form {
    margin: 0;
}

.admin-coupon-meta {
    margin-top: 6px;
    color: #577091;
    font-size: 13px;
    font-weight: 700;
}

.admin-coupon-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-coupon-banner-status {
    display: grid;
    gap: 6px;
}

.admin-coupon-banner-status code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.admin-coupon-used-cell {
    min-width: 110px;
    white-space: nowrap;
}

.admin-coupon-actions {
    min-width: 0;
    justify-content: flex-start;
}

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

.admin-inline-form {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d3dff1;
    border-radius: 12px;
    background: #f8fbff;
}

.admin-customer-detail-card > h2 {
    margin: 18px 0 12px;
}

.admin-package-add-grid {
    align-items: end;
}

.admin-package-add-actions {
    display: flex;
    align-items: end;
}

.profile-grid div {
    border: 1px solid #dae4f2;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px;
}

.profile-grid dt {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #49658a;
    font-weight: 700;
    margin-bottom: 7px;
}

.profile-grid dd {
    font-size: 15px;
    color: #243f64;
    line-height: 1.45;
}

.dashboard-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.dashboard-sidebar {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.dashboard-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.dashboard-panel {
    border: 1px solid #d7e2f3;
    border-radius: 12px;
    background: #f8fbff;
    padding: 14px;
    overflow: hidden;
}

.dashboard-panel h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #1f3e64;
}

.dashboard-panel p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #2c4468;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dashboard-storage-list {
    display: grid;
    gap: 12px;
}

.dashboard-storage-item {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #dbe5f3;
}

.dashboard-storage-item:first-child {
    padding-top: 0;
    border-top: none;
}

.dashboard-storage-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: #274467;
}

.dashboard-storage-head strong {
    color: #1f4d9c;
}

.dashboard-storage-head span {
    font-size: 13px;
    color: #5a7396;
}

.dashboard-storage-usage-head {
    font-size: 13px;
}

.dashboard-address {
    color: #2c4468;
    font-style: normal;
    line-height: 1.55;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.dashboard-link-list {
    list-style: none;
    display: grid;
    gap: 6px;
}

.dashboard-link-list a {
    display: block;
    text-decoration: none;
    color: #244872;
    border: 1px solid #cad9ee;
    background: #eef4ff;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-link-list a.active {
    color: #ffffff;
    border-color: #1a56bc;
    background: linear-gradient(165deg, #2f7af6, #124eb5);
}

.dashboard-link-list a:hover {
    border-color: #99b7e4;
    background: #e4efff;
}

.dashboard-logout-btn {
    width: 100%;
    margin-top: 6px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.dashboard-stat-card {
    display: grid;
    gap: 6px;
    border-radius: 12px;
    padding: 14px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(18, 41, 78, 0.18);
}

.dashboard-stat-card.tickets {
    background: #b52d00;
}

.dashboard-stat-card.services {
    background: #007bff;
}

.dashboard-stat-card.invoices {
    background: #28a746;
}

.dashboard-stat-card.orders {
    background: #7e8692;
}

.dashboard-stat-value {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.dashboard-stat-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.95;
}

.dashboard-section {
    border: 1px solid #d7e2f3;
    border-radius: 12px;
    background: #f8fbff;
    padding: 14px;
    min-width: 0;
}

.dashboard-section .admin-table-wrap {
    margin-top: 0;
    background: #ffffff;
    max-width: 100%;
}

.dashboard-section .admin-table-scroll {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-section .admin-table td:last-child {
    min-width: 0;
}

.dashboard-section .admin-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
}

.dashboard-section .admin-table th,
.dashboard-section .admin-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-section .account-invoice-transactions-scroll {
    overflow-x: auto;
}

.dashboard-section .account-invoice-transactions-table {
    min-width: 860px;
}

.dashboard-section .account-invoice-transactions-table th,
.dashboard-section .account-invoice-transactions-table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.dashboard-section .account-invoice-transactions-table td:nth-child(6),
.dashboard-section .account-invoice-transactions-table td:nth-child(7) {
    min-width: 190px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.dashboard-section-head h2 {
    margin: 0;
    font-size: 1.08rem;
}

.dashboard-activation-warning {
    margin-bottom: 14px;
}

.dashboard-activation-section {
    margin-bottom: 14px;
}

.dashboard-activation-actions {
    margin: 10px 0 12px;
}

.dashboard-activation-actions form {
    margin: 0;
}

.dashboard-activation-email-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.dashboard-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #cad9ee;
    background: #eef4ff;
    border-radius: 999px;
    color: #234976;
    text-decoration: none;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-tab span {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #c6d7ef;
    font-size: 12px;
}

.dashboard-tab.active {
    color: #ffffff;
    border-color: #1a56bc;
    background: linear-gradient(165deg, #2f7af6, #124eb5);
}

.dashboard-tab.active span {
    color: #173d75;
}

.profile-form {
    margin-top: 10px;
}

.account-edit-subtitle {
    margin: 8px 0 4px;
    color: #1f3e64;
    font-size: 1.05rem;
}

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

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-grid .form-input {
    width: 100%;
}

.form-grid .form-textarea {
    width: 100%;
    box-sizing: border-box;
}

.admin-kb-entry-edit-page {
    max-width: 1180px;
}

.admin-kb-entry-edit-form {
    margin-top: 18px;
}

.admin-kb-entry-edit-form .form-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.admin-kb-entry-edit-form .admin-kb-summary {
    min-height: 160px;
}

.admin-kb-entry-edit-form .admin-kb-body {
    min-height: 540px;
}

.password-options {
    display: grid;
    gap: 8px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #2d476f;
    font-size: 14px;
    font-weight: 600;
}

.checkbox-row input {
    margin-top: 2px;
}

.edit-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.services-preview {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

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

.service-card-link {
    border: 1px solid #d8e3f4;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px;
    display: grid;
    gap: 4px;
    text-decoration: none;
    color: #1f3656;
}

.service-card-link strong {
    color: #1f4d9c;
}

.services-table-wrap {
    margin-top: 10px;
}

.services-section-title {
    margin-top: 22px;
}

.service-summary-grid {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.service-access-wrap {
    margin-top: 12px;
    border: 1px solid #d8e3f4;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fbff;
}

.service-access-scroll {
    overflow-x: auto;
}

.service-access-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
}

.service-access-table th,
.service-access-table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.service-access-table th {
    width: 220px;
    color: #4b668d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-access-table td {
    color: #203b61;
    font-size: 15px;
    font-weight: 700;
}

.service-password-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-password-text {
    min-width: 0;
}

.service-password-reset-form {
    margin: 0 0 0 auto;
}

.service-password-reset-btn {
    padding: 7px 12px;
    min-height: auto;
    white-space: nowrap;
}

.service-access-table td a {
    color: #1a56bc;
    text-decoration: none;
}

.service-access-table td a:hover {
    text-decoration: underline;
}

.usage-box {
    margin-top: 18px;
    border: 1px solid #d8e3f4;
    border-radius: 12px;
    background: #f8fbff;
    padding: 12px;
}

.usage-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: #1f3656;
}

.usage-meter {
    width: 100%;
    margin-top: 10px;
    border-radius: 999px;
    height: 12px;
    background: #dce8fa;
    overflow: hidden;
}

.usage-meter-fill {
    height: 100%;
    --usage: 0;
    background: hsl(calc(215 - (var(--usage) * 2.15)), 80%, 48%);
    transition: width 0.18s ease, background-color 0.18s ease, background 0.18s ease;
}

.usage-meter-fill.over-limit {
    width: 100% !important;
    background: #c62828;
}

.usage-caption {
    margin-top: 8px;
}

.service-change-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.service-change-card {
    display: grid;
    gap: 12px;
    border: 1px solid #d8e2f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 16px;
}

.service-change-card.upgrade {
    border-color: #bdd2f2;
}

.service-change-card.downgrade {
    border-color: #cfe6db;
    background: linear-gradient(180deg, #ffffff 0%, #f5fcf8 100%);
}

.service-change-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.service-change-card-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f3e64;
}

.service-change-card-head p {
    margin: 4px 0 0;
    color: #4d678c;
    font-size: 13px;
    line-height: 1.5;
}

.service-change-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e4eefc;
    color: #1e4f8f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-change-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service-change-meta div {
    border: 1px solid #dce6f4;
    border-radius: 12px;
    background: #f8fbff;
    padding: 10px;
}

.service-change-meta dt {
    margin: 0 0 6px;
    color: #557092;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-change-meta dd {
    margin: 0;
    color: #1f395d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.service-change-pending {
    margin-top: 12px;
    display: grid;
    gap: 6px;
    border: 1px solid #c7d9f1;
    border-radius: 14px;
    background: #eef5ff;
    padding: 14px;
    color: #24456f;
}

.service-change-pending strong {
    color: #173d75;
}

.service-change-pending p {
    margin: 0;
    color: #39577f;
    font-size: 14px;
    line-height: 1.6;
}

.service-cancel-options {
    display: grid;
    gap: 10px;
}

.service-cancel-option {
    padding: 12px 14px;
    border: 1px solid #d8e3f4;
    border-radius: 12px;
    background: #f8fbff;
}

.service-cancel-option input {
    margin-top: 1px;
}

.admin-package-change-form {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.admin-package-change-form .form-label {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-package-change-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.admin-package-change-note {
    margin-top: 10px;
    color: #425d81;
    font-size: 13px;
    line-height: 1.55;
}

.admin-private-note-textarea {
    min-height: 180px;
    width: 100%;
    resize: vertical;
}

@media (max-width: 980px) {
    .duration-toggle {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .order-storefront-hero,
    .order-checkout-hero,
    .order-checkout-layout,
    .supported-games-head,
    .offer-card {
        grid-template-columns: 1fr;
    }

    .order-billing-head,
    .order-plan-section-head,
    .checkout-payment-head {
        align-items: flex-start;
    }

    .checkout-payment-actions {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plan-description {
        min-height: 0;
    }

    .checkout-actions {
        grid-template-columns: 1fr;
    }

    .plan-card.popular {
        transform: none;
    }

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

    .detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

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

    .ticket-meta {
        justify-content: flex-start;
    }

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

    .admin-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

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

    .admin-dashboard-panel.span-2 {
        grid-column: auto;
    }

    .admin-package-price-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

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

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

    .knowledge-base-hero,
    .knowledge-base-layout,
    .admin-kb-layout,
    .admin-kb-edit-layout {
        grid-template-columns: 1fr;
    }

    .knowledge-base-stat-grid,
    .knowledge-base-entry-grid,
    .admin-kb-entry-grid,
    .admin-kb-summary-grid,
    .admin-kb-entry-grid.compact {
        grid-template-columns: 1fr;
    }

    .knowledge-base-widget {
        position: static;
    }

    .admin-package-detail-grid,
    .admin-package-pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .order-layout {
        grid-template-columns: 1fr;
    }

    .checkout-coupon-row {
        grid-template-columns: 1fr;
    }

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

    .home-news-masthead {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-news-copy {
        column-width: auto;
        columns: 1;
    }

    .news-post {
        padding: 20px;
    }

    .service-change-meta,
    .admin-package-change-controls {
        grid-template-columns: 1fr;
    }

    .service-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        min-height: 74px;
    }

    .brand-subtitle {
        display: none;
    }

    .header-right {
        gap: 6px;
    }

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

    .dashboard-activation-email-row {
        grid-template-columns: 1fr;
    }

    .header-nav a,
    .account-trigger {
        font-size: 13px;
        padding: 8px 9px;
    }

    .header-cta {
        height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .home-news-paper {
        padding: 18px 18px 16px;
        border-radius: 14px;
    }

    .news-post {
        padding: 18px;
        border-radius: 18px;
    }

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

    .site-main {
        padding-top: 28px;
    }

    .site-footer-inner {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
        text-align: center;
    }

    .footer-payments {
        max-width: 100%;
    }

    .payment-methods-strip,
    .checkout-payment-strip {
        justify-content: center;
    }

    .profile-top-row {
        flex-direction: column;
    }

    .profile-actions {
        width: 100%;
    }

    .invoice-detail-list .detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .poolpay-payment-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .poolpay-amount-input-wrap {
        width: 100%;
    }

    .poolpay-table tbody th {
        width: auto;
    }

    .dashboard-section .account-invoice-transactions-table {
        min-width: 720px;
    }

    .order-summary-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .order-summary-list dd,
    .checkout-payment-balance {
        text-align: left;
    }

    .admin-dashboard-actions {
        width: 100%;
    }

    .admin-dashboard-actions .secondary-btn {
        flex: 1 1 auto;
    }

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