:root {
    --bg: #05111a;
    --bg-deep: #0a1b29;
    --bg-soft: #123246;
    --panel: rgba(11, 28, 41, 0.78);
    --panel-strong: rgba(13, 34, 50, 0.94);
    --panel-solid: #0d2233;
    --text: #f4fbff;
    --muted: #a7bfd0;
    --line: rgba(198, 222, 237, 0.14);
    --primary: #5cc7e6;
    --primary-strong: #2096c7;
    --primary-soft: #a8e5f6;
    --secondary: #7fd6c3;
    --danger: #ef8b93;
    --warning: #d8b36a;
    --success: #7dd2ac;
    --gold: #c7a45f;
    --gold-soft: #e4c78d;
    --ring-a: rgba(228, 199, 141, 0.88);
    --ring-b: rgba(92, 199, 230, 0.52);
    --ring-c: rgba(127, 214, 195, 0.34);
    --shadow: 0 18px 50px rgba(1, 11, 18, 0.34);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    line-height: 1.18;
    background:
        radial-gradient(circle at 14% 14%, rgba(92, 199, 230, 0.13), transparent 0 24%),
        radial-gradient(circle at 88% 18%, rgba(199, 164, 95, 0.12), transparent 0 22%),
        radial-gradient(circle at 52% 100%, rgba(127, 214, 195, 0.1), transparent 0 28%),
        linear-gradient(180deg, #040c13 0%, #081520 34%, #0b2232 100%);
    color: var(--text);
    overflow-x: hidden;
}

.home-page {
    background:
        radial-gradient(circle at top right, rgba(127, 214, 195, 0.12), transparent 0 26%),
        radial-gradient(circle at top left, rgba(199, 164, 95, 0.1), transparent 0 18%),
        linear-gradient(180deg, #051019 0%, #091826 38%, #0b1f30 100%);
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    pointer-events: none;
    z-index: -2;
}

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

:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
    border-radius: 14px;
}

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

img {
    max-width: 100%;
    display: block;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(6, 18, 27, 0.88), rgba(7, 20, 31, 0.76));
    border-bottom: 1px solid rgba(228, 199, 141, 0.14);
    box-shadow: 0 12px 30px rgba(0, 8, 14, 0.24);
}

.nav-shell,
.admin-header,
.panel-head,
.product-top,
.hero-actions,
.product-meta,
.detail-grid,
.stats-strip,
.actions-cell,
.admin-user,
.cta-ribbon,
.cta-stack {
    display: flex;
    align-items: center;
}

.site-header-shell {
    display: grid;
    gap: 10px;
    padding: 10px 0 12px;
}

.site-header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.brand-mark,
.admin-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-brand-centered {
    align-items: center;
    text-align: center;
}

.brand-mark span,
.admin-brand span {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.brand-mark small,
.admin-brand small {
    color: var(--muted);
    max-width: 340px;
    display: none;
}

.metric-card small,
.portal-hero-copy p,
.hero-highlight-card small,
.section-head-wide p,
.muted-paragraph,
.empty-state p,
.licenses-header p,
.license-action-copy p,
.login-copy p,
.hero-copy p,
.lead,
.inner-hero p,
.product-card p,
.feature-card p,
.cta-ribbon p,
.client-product-card p,
.service-option small,
.selector-title,
.results-pill,
.active-filter-note {
    display: none !important;
}

.main-nav,
.admin-menu {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-main-nav {
    justify-content: center;
    align-items: center;
    padding: 6px 0 0;
    border-top: 1px solid rgba(228, 199, 141, 0.08);
}

.main-nav a,
.admin-menu a {
    position: relative;
    color: var(--muted);
    transition: 0.25s ease;
}

.site-main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(228, 199, 141, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-main-nav a::after {
    display: none;
}

.main-nav a::after,
.admin-menu a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active,
.admin-menu a:hover,
.admin-menu a.active {
    color: var(--text);
}

.site-main-nav a:hover,
.site-main-nav a.active {
    background: linear-gradient(180deg, rgba(228, 199, 141, 0.18), rgba(92, 199, 230, 0.1));
    border-color: rgba(228, 199, 141, 0.28);
    transform: translateY(-2px);
}

.main-nav a:hover::after,
.main-nav a.active::after,
.admin-menu a:hover::after,
.admin-menu a.active::after {
    width: 100%;
}

.smart-account-dropdown {
    position: relative;
}

.smart-account-dropdown summary {
    list-style: none;
}

.smart-account-dropdown summary::-webkit-details-marker {
    display: none;
}

.smart-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text);
    background: linear-gradient(135deg, rgba(228, 199, 141, 0.18), rgba(92, 199, 230, 0.08));
    border: 1px solid rgba(228, 199, 141, 0.22);
    box-shadow: 0 12px 24px rgba(7, 16, 25, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.smart-account-trigger:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 199, 141, 0.3);
}

.smart-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(228, 199, 141, 0.18);
    background: linear-gradient(180deg, rgba(10, 24, 36, 0.98), rgba(8, 19, 29, 0.96));
    box-shadow: 0 18px 44px rgba(0, 10, 18, 0.32);
}

.smart-account-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text);
}

.smart-account-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.site-footer {
    margin-top: 22px;
    padding: 0 0 18px;
}

.site-footer-shell {
    padding: 16px 18px;
    border: 1px solid rgba(228, 199, 141, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 24, 36, 0.76), rgba(7, 18, 28, 0.92));
    text-align: center;
    color: var(--muted);
}

.site-footer-shell p {
    margin: 0;
}

.hero-section,
.inner-hero,
.section-block {
    padding: 12px 0;
}

.home-page .hero-section,
.home-page .section-services,
.home-page .section-products,
.home-page .section-cta {
    position: relative;
}

.home-page .hero-section::before,
.home-page .section-services::before,
.home-page .section-products::before,
.home-page .section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-page .hero-section::before {
    background:
        linear-gradient(135deg, rgba(18, 67, 92, 0.3), rgba(7, 25, 41, 0.08) 60%),
        radial-gradient(circle at 80% 15%, rgba(125, 211, 252, 0.16), transparent 0 22%),
        radial-gradient(circle at 22% 20%, rgba(199, 164, 95, 0.12), transparent 0 18%);
}

.home-page .section-services::before {
    background:
        linear-gradient(180deg, rgba(12, 56, 58, 0.34), rgba(6, 25, 33, 0.12)),
        radial-gradient(circle at 12% 30%, rgba(118, 228, 179, 0.12), transparent 0 18%);
}

.home-page .section-products::before {
    background:
        linear-gradient(180deg, rgba(62, 44, 26, 0.34), rgba(8, 25, 39, 0.1)),
        radial-gradient(circle at 88% 24%, rgba(255, 209, 102, 0.14), transparent 0 18%);
}

.home-page .section-cta::before {
    background:
        linear-gradient(180deg, rgba(40, 31, 67, 0.28), rgba(6, 19, 31, 0.09)),
        radial-gradient(circle at 25% 50%, rgba(199, 164, 95, 0.12), transparent 0 20%);
}

.hero-grid,
.content-split,
.product-layout {
    display: grid;
    gap: 10px;
}

.wide-split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: calc(100vh - 68px);
}

.hero-copy,
.hero-card-stack,
.product-details,
.sticky-card,
.feature-card,
.product-card,
.metric-card,
.panel-card,
.rich-panel,
.login-card {
    position: relative;
    z-index: 1;
}

.hero-copy h1,
.inner-hero h1,
.product-details h1,
.login-copy h1 {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    line-height: 1.2;
}

.hero-copy p,
.lead,
.inner-hero p,
.product-card p,
.feature-card p,
.glass-card p,
.sticky-card p,
.login-copy p,
.cta-ribbon p {
    color: var(--muted);
    line-height: 1.3;
    margin: 0;
}

.hero-copy p,
.lead,
.inner-hero p,
.product-card p,
.feature-card p,
.login-copy p,
.cta-ribbon p {
    display: none;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--primary-soft);
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn,
.text-link,
.link-button {
    transition: 0.3s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 45%, #9a7641 100%);
    color: #1b1207;
    font-weight: 800;
    border-color: rgba(244, 224, 180, 0.28);
    box-shadow: 0 22px 46px rgba(151, 113, 52, 0.34);
}

.btn-secondary {
    background: linear-gradient(180deg, rgba(119, 208, 198, 0.12), rgba(255, 255, 255, 0.03));
    border-color: rgba(127, 214, 195, 0.2);
    color: var(--text);
}

.btn:hover,
.text-link:hover,
.link-button:hover {
    transform: translateY(-3px);
}

.hero-actions,
.stats-strip,
.detail-grid,
.cta-stack {
    gap: 16px;
    flex-wrap: wrap;
}

.stats-strip {
    margin-top: 30px;
}

.stats-strip div,
.detail-grid div,
.contact-chip {
    min-width: 148px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(9, 23, 35, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stats-strip div {
    border-color: rgba(228, 199, 141, 0.14);
}

.stat-card-products {
    background: linear-gradient(180deg, rgba(92, 199, 230, 0.2), rgba(255, 255, 255, 0.035));
}

.stat-card-orders {
    background: linear-gradient(180deg, rgba(125, 210, 172, 0.2), rgba(255, 255, 255, 0.035));
}

.stat-card-licenses {
    background: linear-gradient(180deg, rgba(216, 179, 106, 0.2), rgba(255, 255, 255, 0.035));
}

.stat-card-financial {
    background: linear-gradient(180deg, rgba(199, 164, 95, 0.22), rgba(255, 255, 255, 0.035));
}

.stats-strip strong,
.detail-grid strong {
    display: block;
    font-size: 1.12rem;
    margin-bottom: 4px;
}

.hero-card-stack,
.feature-grid,
.catalog-grid,
.metrics-grid,
.admin-panels {
    display: grid;
    gap: 8px;
}

.hero-card-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-typing-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.hero-typing-card span,
.hero-typing-card h3 {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: top;
}

.hero-typing-card span {
    color: var(--gold-soft);
    font-size: 0.76rem;
    border-left: 2px solid rgba(228, 199, 141, 0.8);
    padding-left: 6px;
    animation:
        typing-reveal 3.6s steps(28, end) infinite,
        typing-caret 0.8s step-end infinite;
    animation-delay: calc(var(--typing-index, 0) * 0.35s);
}

.hero-typing-card h3 {
    margin: 0;
    font-size: 0.9rem;
    border-left: 2px solid rgba(168, 229, 246, 0.82);
    padding-left: 6px;
    animation:
        typing-reveal 4.8s steps(34, end) infinite,
        typing-caret 0.8s step-end infinite;
    animation-delay: calc((var(--typing-index, 0) * 0.35s) + 0.45s);
}

.glass-card,
.feature-card,
.product-card,
.metric-card,
.panel-card,
.sticky-card,
.login-card,
.rich-panel,
.cta-ribbon {
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glass-card,
.feature-card,
.product-card,
.metric-card,
.panel-card,
.sticky-card,
.rich-panel,
.cta-ribbon {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        var(--panel);
    backdrop-filter: blur(22px);
}

.glass-card,
.feature-card,
.product-card,
.metric-card,
.panel-card {
    border-color: rgba(198, 222, 237, 0.18);
}

.panel-card,
.metric-card,
.product-card,
.feature-card,
.glass-card,
.sticky-card,
.rich-panel,
.cta-ribbon {
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.panel-card:hover,
.metric-card:hover,
.rich-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 199, 141, 0.28);
    box-shadow: 0 34px 96px rgba(0, 16, 28, 0.5);
}

.glass-card,
.feature-card,
.product-card,
.metric-card,
.sticky-card,
.rich-panel,
.login-copy {
    padding: 10px;
}

.glass-card::before,
.feature-card::before,
.product-card::before,
.metric-card::before,
.panel-card::before,
.sticky-card::before,
.rich-panel::before,
.cta-ribbon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 72%, rgba(199, 164, 95, 0.08));
    pointer-events: none;
}

.glass-card::after,
.feature-card::after,
.product-card::after,
.metric-card::after,
.panel-card::after,
.sticky-card::after,
.rich-panel::after,
.cta-ribbon::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, var(--ring-a), transparent 18%, var(--ring-b) 36%, transparent 56%, var(--ring-c) 74%, transparent 88%, var(--ring-a));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0.72;
    pointer-events: none;
    animation: card-ring-spin 12s linear infinite;
}

.accent-a::after,
.accent-b::after,
.accent-c::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    inset: auto auto -120px -80px;
    border-radius: 50%;
    filter: blur(10px);
}

.accent-a::after { background: rgba(92, 199, 230, 0.22); }
.accent-b::after { background: rgba(199, 164, 95, 0.18); }
.accent-c::after { background: rgba(127, 214, 195, 0.2); }

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

.profile-media-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-media-card span {
    color: var(--muted);
    font-weight: 700;
}

.profile-image {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 12px 28px rgba(3, 19, 31, 0.22);
}

.logo-image {
    aspect-ratio: 16 / 10;
    max-width: 220px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.feature-grid,
.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-head {
    margin-bottom: 10px;
}

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

.section-head-wide p {
    max-width: 620px;
    margin: 0;
    display: none;
}

.section-head h2,
.panel-head h2,
.sticky-card h3,
.cta-ribbon h2 {
    margin: 0;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.soft-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.section-services .feature-card {
    background: linear-gradient(180deg, rgba(12, 51, 49, 0.92), rgba(8, 29, 34, 0.8));
    border-color: rgba(127, 214, 195, 0.3);
    box-shadow: 0 18px 38px rgba(7, 33, 36, 0.35);
}

.feature-tone-1 {
    border-color: rgba(118, 228, 179, 0.24);
}

.feature-tone-2 {
    border-color: rgba(103, 232, 249, 0.22);
}

.feature-tone-3 {
    border-color: rgba(94, 234, 212, 0.22);
}

.section-products .product-card {
    background: linear-gradient(180deg, rgba(45, 34, 21, 0.92), rgba(12, 31, 44, 0.84));
    border-color: rgba(199, 164, 95, 0.34);
    box-shadow: 0 20px 42px rgba(26, 18, 9, 0.36);
}

.section-cta .cta-ribbon {
    background: linear-gradient(135deg, rgba(35, 29, 18, 0.94), rgba(12, 34, 49, 0.9));
    border-color: rgba(199, 164, 95, 0.32);
}

.chip,
.price-tag,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
}

.chip {
    background: linear-gradient(180deg, rgba(127, 214, 195, 0.18), rgba(127, 214, 195, 0.08));
    color: #c9f0e7;
    border: 1px solid rgba(127, 214, 195, 0.16);
}

.price-tag {
    background: linear-gradient(180deg, rgba(199, 164, 95, 0.22), rgba(199, 164, 95, 0.1));
    color: #f6e2bb;
    border: 1px solid rgba(228, 199, 141, 0.16);
}

.product-card h3,
.feature-card h3 {
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 0.82rem;
}

.product-top,
.product-meta,
.cta-ribbon {
    justify-content: space-between;
    gap: 4px;
}

.product-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    flex-wrap: wrap;
}

.text-link,
.danger-link {
    color: var(--primary-soft);
}

.danger-link {
    color: var(--danger);
}

.page-shell {
    min-height: 100vh;
}

.product-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
}

.product-visual,
.product-hero-image,
.image-preview-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(125, 211, 252, 0.08), rgba(2, 132, 199, 0.22));
}

.gallery-launch,
.gallery-card,
.gallery-thumb,
.gallery-lightbox-close,
.gallery-lightbox-nav {
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    color: inherit;
}

.product-visual {
    aspect-ratio: 16 / 10;
    min-height: 240px;
    margin-bottom: 10px;
}

.product-hero-image {
    min-height: clamp(280px, 52vh, 620px);
    margin-bottom: 12px;
}

.product-visual img,
.product-hero-image img,
.image-preview-card img,
.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-launch {
    display: block;
    width: 100%;
    height: 100%;
}

.product-visual img,
.product-hero-image img {
    transform: scale(1.01);
    transition: transform 0.5s ease;
}

.product-card:hover .product-visual img,
.product-details:hover .product-hero-image img {
    transform: scale(1.06);
}

.sticky-card {
    position: sticky;
    top: 100px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 100vh;
    align-items: stretch;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(7, 18, 27, 0.98), rgba(8, 22, 35, 0.96));
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    padding: 10px 8px;
    border-radius: 18px;
}

.admin-menu {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 4px;
    margin: 6px 0;
    align-content: start;
    justify-items: stretch;
    flex-wrap: nowrap;
}

.admin-user {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
}

.client-sidebar {
    background:
        radial-gradient(circle at top right, rgba(127, 214, 195, 0.14), transparent 0 34%),
        linear-gradient(180deg, rgba(7, 19, 27, 0.98), rgba(8, 26, 38, 0.96));
}

.platform-sidebar {
    background:
        radial-gradient(circle at top right, rgba(199, 164, 95, 0.12), transparent 0 34%),
        linear-gradient(180deg, rgba(8, 19, 29, 0.98), rgba(8, 23, 36, 0.96));
}

.client-sidebar .admin-brand {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.client-sidebar .admin-brand small {
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.platform-sidebar .admin-brand,
.platform-sidebar .admin-user {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.platform-sidebar .admin-brand small {
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.client-sidebar .admin-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    padding: 8px 8px;
    border-radius: 14px;
}

.platform-sidebar .admin-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    padding: 8px 8px;
    border-radius: 14px;
}

.client-sidebar .admin-menu a::after {
    bottom: 6px;
    right: 10px;
}

.platform-sidebar .admin-menu a::after {
    bottom: 6px;
    right: 10px;
}

.client-sidebar .admin-menu a:hover,
.client-sidebar .admin-menu a.active {
    background: linear-gradient(90deg, rgba(127, 214, 195, 0.14), rgba(255, 255, 255, 0.03));
}

.platform-sidebar .admin-menu a:hover,
.platform-sidebar .admin-menu a.active {
    background: linear-gradient(90deg, rgba(199, 164, 95, 0.16), rgba(255, 255, 255, 0.03));
}

.client-sidebar .admin-user {
    margin-top: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.platform-sidebar .admin-user {
    margin-top: auto;
}

.admin-content {
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(92, 199, 230, 0.08), transparent 0 28%),
        radial-gradient(circle at top right, rgba(199, 164, 95, 0.06), transparent 0 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    min-width: 0;
}

.admin-content > .admin-header,
.admin-content > .license-summary-grid,
.admin-content > .content-split,
.admin-content > .panel-card,
.admin-content > .stacked-records {
    max-width: 100%;
}

.admin-header,
.panel-head {
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 6px;
}

.metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
}

.metric-card strong {
    display: block;
    margin-top: 4px;
    font-size: 0.92rem;
}

.metric-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
        var(--panel);
}

.metric-card {
    border-color: rgba(228, 199, 141, 0.18);
}

.content-split {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.panel-card {
    padding: 16px;
    border-radius: 18px;
    min-width: 0;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

.narrow-panel {
    width: 100%;
    max-width: none;
}

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

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

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

th,
td {
    padding: 4px 4px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-weight: 700;
}

.admin-form {
    display: grid;
    gap: 5px;
}

.admin-form label {
    display: grid;
    gap: 2px;
}

.admin-form span {
    color: var(--muted);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid rgba(180, 232, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 5px 7px;
    outline: none;
    transition: 0.25s ease;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: rgba(156, 197, 221, 0.7);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

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

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-admin-form {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.product-admin-form > label,
.product-admin-form > div,
.product-admin-form > section {
    min-width: 0;
}

.form-grid-title {
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.9fr);
}

.product-admin-form > label:has(textarea[name="short_description"]),
.product-admin-form > label:has(textarea[name="description"]),
.product-admin-form > label:has(textarea[name="product_terms"]),
.product-admin-form > label:has(input[name="license_api_base_url"]),
.product-admin-form > label:has(input[name="license_remove_device_endpoint"]),
.product-admin-form > .rental-pricing-stack,
.product-admin-form > .addons-selector,
.product-admin-form > .image-preview-card,
.product-admin-form > .product-gallery-grid,
.product-admin-form > .conversion-panel,
.product-admin-form > .button-row {
    grid-column: 1 / -1;
}

.product-admin-form > .button-row {
    justify-content: flex-start;
}

.compact-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 34px;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.field-save-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.field-save-button {
    min-width: 72px;
    padding: 8px 12px;
}

.field-save-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 0.82rem;
}

.field-save-status[data-state='success'] {
    color: #8ae2ad;
}

.field-save-status[data-state='error'] {
    color: #ff9e9e;
}

.consent-block {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.consent-details {
    display: grid;
    gap: 10px;
}

.consent-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.consent-copy {
    display: grid;
    gap: 12px;
    padding-top: 6px;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
}

.inline-form {
    display: inline;
}

.link-button {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.actions-cell {
    gap: 8px;
}

.thumb-image {
    width: 60px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.image-preview-card {
    aspect-ratio: 16 / 10;
    min-height: 220px;
}

button:disabled,
input[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
}

.badge-success { background: rgba(118, 228, 179, 0.14); color: #aff0d1; }
.badge-warning { background: rgba(255, 209, 102, 0.14); color: #ffdfa0; }
.badge-danger { background: rgba(255, 122, 144, 0.14); color: #ffb3c1; }
.badge-neutral { background: rgba(156, 197, 221, 0.14); color: #d8f1ff; }
.badge-info { background: rgba(56, 189, 248, 0.14); color: #aee7ff; }

.compact-form .btn + .btn,
.compact-form .btn + a,
.compact-form a + .btn {
    margin-top: 10px;
}

.addons-list,
.addons-selector {
    display: grid;
    gap: 6px;
}

.addon-card,
.service-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.addon-summary {
    margin-top: 6px;
}

.addon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.1);
    color: var(--primary-soft);
    border: 1px solid rgba(103, 232, 249, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
}

.filter-shell,
.empty-state {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.filter-head,
.filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

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

.results-pill,
.active-filter-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.results-pill strong {
    color: var(--primary-soft);
    font-size: 0.92rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
}

.empty-state h2 {
    margin: 0;
    font-size: 1.05rem;
}

.empty-state p {
    display: none;
    margin: 0;
    color: var(--muted);
}

.addon-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.addon-category,
.selector-title,
.service-option small {
    color: var(--muted);
}

.selector-title {
    font-weight: 700;
}

.service-option {
    grid-template-columns: auto 1fr auto;
    cursor: pointer;
}

.service-option input {
    width: 18px;
    height: 18px;
}

.service-option strong,
.addon-card strong {
    display: block;
    margin-bottom: 4px;
}

.rental-pricing-stack {
    display: grid;
    gap: 5px;
}

.pricing-row-head,
.pricing-row {
    display: grid;
    grid-template-columns: minmax(90px, 0.9fr) minmax(0, 1fr) minmax(90px, 0.85fr);
    gap: 5px;
    align-items: center;
}

.pricing-row-head {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-row {
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
}

.pricing-row .field-save-action,
.addons-selector .field-save-action {
    grid-column: 1 / -1;
    margin-top: 2px;
}

.pricing-row-label {
    font-weight: 700;
}

.static-option {
    grid-template-columns: 1fr auto;
    cursor: default;
}

.readonly-field input[readonly] {
    opacity: 0.95;
    font-weight: 800;
    color: var(--primary-soft);
}

.muted-paragraph {
    color: var(--muted);
    line-height: 1.45;
    display: none;
}

.licenses-header {
    align-items: flex-end;
}

.licenses-header p {
    max-width: 720px;
    margin: 0;
    display: none;
}

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

.portal-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(199, 164, 95, 0.12), transparent 0 34%),
        radial-gradient(circle at bottom left, rgba(92, 199, 230, 0.1), transparent 0 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
        var(--panel);
    border-color: rgba(228, 199, 141, 0.16);
}

.admin-hero {
    margin-bottom: 14px;
}

.portal-hero-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.25;
}

.portal-hero-copy p {
    max-width: 760px;
    display: none;
}

.portal-hero-aside {
    display: grid;
    gap: 10px;
}

.hero-highlight-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(8, 23, 35, 0.58));
    border-color: rgba(228, 199, 141, 0.16);
}

.hero-highlight-card span,
.hero-highlight-card small {
    color: var(--muted);
}

.hero-highlight-card small {
    display: none;
}

.hero-highlight-card strong {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.license-metric-card {
    padding: 14px;
}

.license-metric-card span {
    color: var(--muted);
}

.license-metric-card small {
    display: none;
    margin-top: 0;
    color: var(--muted);
}

.license-showcase {
    margin-bottom: 12px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 0 36%),
        var(--panel);
}

.compact-empty-state {
    margin-bottom: 0;
}

.client-product-card-premium {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.02);
    border-radius: 16px;
}

.license-product-kicker,
.license-block-label {
    display: inline-block;
    color: var(--primary-soft);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.license-product-kicker {
    margin-bottom: 10px;
}

.license-key-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(7, 31, 49, 0.94), rgba(12, 36, 56, 0.76));
}

.license-key-value {
    margin-top: 6px;
    font-size: clamp(0.92rem, 1.3vw, 1.08rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    word-break: break-word;
}

.copy-license-btn {
    min-width: 138px;
    white-space: nowrap;
}

.copy-license-btn.is-copied {
    border-color: rgba(118, 228, 179, 0.32);
    color: #d9fff0;
}

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

.license-facts-grid div,
.license-device-empty {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.license-facts-grid strong,
.license-device-empty strong {
    display: block;
    margin-bottom: 4px;
}

.license-facts-grid span,
.license-device-empty small {
    color: var(--muted);
}

.license-device-empty {
    display: grid;
    gap: 4px;
}

.license-section-head,
.license-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.license-action-panel {
    margin-top: 10px;
}

.license-action-copy p {
    display: none;
    margin: 0;
}

.premium-device-card {
    grid-template-columns: minmax(200px, 1fr) auto auto;
    gap: 10px;
    padding: 12px;
}

.device-identity strong {
    margin-bottom: 2px;
}

.device-status-meta {
    display: flex;
    align-items: center;
}

.license-device-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.btn-quiet {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
}

.conversion-panel {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.conversion-success {
    color: var(--primary-soft);
}

.button-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.ticket-reply {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.ticket-reply.admin {
    background: rgba(56, 189, 248, 0.08);
}

.ticket-reply p {
    display: block;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.client-product-grid,
.notification-list {
    display: grid;
    gap: 12px;
}

.client-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-product-card,
.notification-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.client-product-card h3,
.notification-card strong {
    margin: 0 0 6px;
}

.client-product-card p,
.notification-card p,
.notification-card small {
    color: var(--muted);
}

.compact-visual {
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
}

.notification-card.unread {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18) inset;
}

.notification-card-premium {
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.025);
}

.notification-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.stacked-records {
    display: grid;
    gap: 12px;
}

.invoice-record {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.invoice-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.invoice-record-head h2 {
    margin: 4px 0 0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.invoice-items-grid {
    margin-top: 10px;
}

.linked-records-grid {
    margin-top: 10px;
}

.support-thread-panel {
    margin-top: 12px;
}

.ticket-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ticket-headline h3 {
    margin: 2px 0 0;
}

.legal-block {
    display: grid;
    gap: 8px;
}

.legal-block p {
    display: block;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

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

.gallery-card {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    aspect-ratio: 16 / 10;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 10, 18, 0.86);
    backdrop-filter: blur(10px);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: calc(100vh - 44px);
    padding: 18px 18px 14px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    background: rgba(4, 20, 32, 0.96);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.44);
}

.gallery-lightbox-figure {
    margin: 0;
    height: min(70vh, 720px);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.gallery-lightbox-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.4rem;
    line-height: 1;
}

.gallery-lightbox-close {
    top: 14px;
    left: 14px;
}

.gallery-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-nav.is-prev {
    right: 14px;
}

.gallery-lightbox-nav.is-next {
    left: 14px;
}

.gallery-lightbox-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 88px));
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    opacity: 0.72;
}

.gallery-thumb.is-active {
    opacity: 1;
    border-color: rgba(125, 211, 252, 0.48);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.14);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inner-hero-compact {
    padding-bottom: 18px;
}

.public-facts-grid {
    margin-bottom: 12px;
}

.product-order-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 0 30%),
        var(--panel);
}

.rental-pricing-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.rental-pricing-summary > div {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.rental-pricing-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.rental-pricing-summary strong {
    display: block;
    font-size: 0.92rem;
    color: var(--primary-soft);
}

.rental-plans-grid {
    gap: 8px;
}

.rental-plan-option {
    align-items: flex-start;
}

.rental-plan-copy {
    display: grid;
    gap: 6px;
}

.rental-plan-head,
.rental-plan-prices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(103, 232, 249, 0.2);
    background: rgba(103, 232, 249, 0.1);
    color: var(--primary-soft);
    font-size: 0.74rem;
    font-weight: 700;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.current-price {
    color: var(--text);
    font-weight: 800;
}

.rental-plan-copy small {
    color: var(--muted);
}

@media (max-width: 900px) {
    .rental-pricing-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pricing-row-head {
        display: none;
    }

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

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

.login-page {
    display: grid;
    place-items: center;
}

.login-shell {
    width: min(1120px, calc(100% - 24px));
    padding: 22px 0;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 420px;
    background: var(--panel-solid);
}

.login-copy {
    padding: 18px;
}

.login-card .admin-form {
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.auth-card {
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.12), transparent 0 32%),
        var(--panel-solid);
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.flash {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 12px;
    border-radius: 10px;
    color: #032235;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.flash.success { background: rgba(118, 228, 179, 0.96); }
.flash.error { background: rgba(255, 122, 144, 0.96); }
.flash-hidden { opacity: 0; transform: translateY(-8px); transition: 0.3s ease; }

.hero-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.65;
}

.hero-orb-a {
    width: 260px;
    height: 260px;
    top: 110px;
    right: 5%;
    background: rgba(56, 189, 248, 0.22);
}

.hero-orb-b {
    width: 340px;
    height: 340px;
    bottom: 6%;
    left: 3%;
    background: rgba(103, 232, 249, 0.14);
}

@keyframes card-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes typing-reveal {
    0% {
        max-width: 0;
        opacity: 0.45;
    }

    18% {
        max-width: 0;
        opacity: 0.7;
    }

    52%,
    78% {
        max-width: 100%;
        opacity: 1;
    }

    100% {
        max-width: 100%;
        opacity: 1;
    }
}

@keyframes typing-caret {
    0%,
    49% {
        border-color: transparent;
    }

    50%,
    100% {
        border-color: currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glass-card::after,
    .feature-card::after,
    .product-card::after,
    .metric-card::after,
    .panel-card::after,
    .sticky-card::after,
    .rich-panel::after,
    .cta-ribbon::after {
        animation: none;
    }

    .hero-typing-card span,
    .hero-typing-card h3 {
        animation: none;
        max-width: 100%;
        border-left-color: transparent;
    }
}

.cta-ribbon {
    padding: 16px;
    align-items: center;
    gap: 10px;
}

.cta-stack {
    justify-content: flex-end;
}

.contact-chip {
    color: var(--text);
    font-weight: 700;
}

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

code {
    font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 8px;
}

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

    .license-summary-grid,
    .license-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-hero {
        grid-template-columns: 1fr;
    }

    .nav-actions,
    .section-head-wide {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .hero-grid,
    .product-layout,
    .login-card,
    .admin-layout,
    .content-split,
    .wide-split,
    .profile-media-grid,
    .cta-ribbon {
        grid-template-columns: 1fr;
        display: grid;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-grid,
    .catalog-grid,
    .filter-grid,
    .client-product-grid,
    .license-summary-grid,
    .license-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticky-card {
        position: relative;
        top: 0;
    }

    .license-key-showcase,
    .premium-device-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .invoice-record-head {
        align-items: flex-start;
    }

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

    .site-header-top {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .metrics-grid,
    .hero-card-stack,
    .feature-grid,
    .catalog-grid,
    .form-grid-title,
    .form-grid,
    .form-grid-3,
    .filter-grid,
    .client-product-grid,
    .license-summary-grid,
    .license-facts-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-content,
    .login-copy,
    .login-card .admin-form,
    .panel-card,
    .glass-card,
    .feature-card,
    .product-card,
    .metric-card,
    .sticky-card,
    .rich-panel {
        padding: 12px;
    }

    .nav-shell,
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-main-nav {
        align-items: stretch;
        width: 100%;
    }

    .site-main-nav a,
    .smart-account-trigger {
        width: 100%;
    }

    .smart-account-menu {
        right: 0;
        left: 0;
        min-width: 0;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-btn {
        width: 100%;
    }

    .licenses-header,
    .license-section-head,
    .license-action-panel,
    .license-key-showcase {
        align-items: flex-start;
    }

    .license-showcase {
        padding: 12px;
    }

    .license-key-value {
        letter-spacing: 0.04em;
    }

    .section-head-wide {
        align-items: flex-start;
    }

    .gallery-lightbox {
        padding: 10px;
    }

    .gallery-lightbox-dialog {
        padding: 12px 12px 10px;
    }

    .gallery-lightbox-figure {
        height: min(54vh, 420px);
    }

    .gallery-lightbox-close {
        top: 10px;
        left: 10px;
    }

    .gallery-lightbox-nav.is-prev {
        right: 8px;
    }

    .gallery-lightbox-nav.is-next {
        left: 8px;
    }
}
