:root {
    --bg-main: #0a0f1a;
    --bg-soft: #111827;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.88);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text-main: #ffffff;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #818cf8;
    --accent-soft: #c7d2fe;
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.24);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --header-height: 84px;
    --modal-safe-top: calc(var(--header-height) + 20px);
    --modal-safe-bottom: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
            radial-gradient(circle at top left, rgba(129, 140, 248, 0.08), transparent 26%),
            radial-gradient(circle at top right, rgba(148, 163, 184, 0.05), transparent 24%),
            linear-gradient(180deg, #0a0f1a 0%, #0d1320 48%, #0a0f1a 100%);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    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: 44px 44px;
    mask-image: radial-gradient(circle at center, black 34%, transparent 82%);
    opacity: 0.16;
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.28;
    animation: floatOrb 18s ease-in-out infinite;
}

.bg-orb-1 {
    top: 6%;
    left: -5%;
    width: 22rem;
    height: 22rem;
    background: rgba(99, 102, 241, 0.18);
}

.bg-orb-2 {
    top: 14%;
    right: -7%;
    width: 24rem;
    height: 24rem;
    background: rgba(148, 163, 184, 0.12);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -14px, 0) scale(1.03);
    }
}

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

.container-narrow {
    width: min(860px, 100%);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
}

.site-header .container {
    padding-top: 12px;
}

.site-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(10, 15, 26, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-brand-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #fff;
}

.site-brand-subtitle {
    margin-top: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color 0.25s ease;
}

.site-nav-link:hover {
    color: #fff;
}

.site-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.site-nav-link:hover::after {
    transform: scaleX(1);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-menu {
    margin-top: 8px;
}

.mobile-menu-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
            rgba(10, 15, 26, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-soft);
}

.mobile-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.site-main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

.hero,
.page-hero {
    padding: 24px 0 20px;
}

.section {
    padding: 56px 0;
}

.section-compact {
    padding: 20px 0 32px;
}

.section-top-tight {
    padding-top: 18px;
}

.hero-grid,
.split-grid,
.contact-shell {
    display: grid;
    gap: 32px;
    align-items: start;
    margin-top: 1rem;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.split-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.contact-shell {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
            rgba(10, 15, 26, 0.76);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.section-label {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(199, 210, 254, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #dbe4f3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title,
.page-title,
.section-title {
    margin: 16px 0 0;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    max-width: 15ch;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.8rem);
    max-width: 14ch;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    max-width: 18ch;
}

.hero-text,
.page-text,
.section-text {
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-text {
    max-width: 680px;
}

.page-text {
    max-width: 760px;
}

.section-text {
    max-width: 720px;
}

.text-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 42%, #c7d2fe 72%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    min-height: 48px;
    padding: 0.92rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease,
            background 0.25s ease,
            color 0.25s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #1f2937 0%, #111827 55%, #0b1220 100%);
    color: #f8fafc;
    box-shadow:
            0 14px 32px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, #2d3748 0%, #1f2937 55%, #111827 100%);
}

.btn-secondary {
    border-color: rgba(199, 210, 254, 0.18);
    background: rgba(255, 255, 255, 0.035);
    color: #e5e7eb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-secondary:hover {
    border-color: rgba(199, 210, 254, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.btn-sm {
    min-height: 42px;
    padding: 0.78rem 1.05rem;
    font-size: 0.87rem;
}

.btn-lg {
    min-height: 50px;
    padding: 1rem 1.45rem;
    font-size: 0.96rem;
}

.stats-grid,
.metrics-grid,
.card-grid {
    display: grid;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
}

.metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

.card,
.hero-panel-card,
.cta-box,
.admin-login-card,
.legal-card {
    border: 1px solid var(--line);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
            rgba(10, 15, 26, 0.76);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.card {
    padding: 22px;
    border-radius: var(--radius-md);
}

.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(199, 210, 254, 0.18);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.service-card h2,
.service-card h3,
.info-card h3 {
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.35;
}

.service-card h2 {
    font-size: 1.25rem;
}

.service-card h3,
.info-card h3 {
    font-size: 1.1rem;
}

.service-card p,
.info-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.card-icon {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 1.55rem;
}

.hero-panel-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 560px;
}

.hero-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hero-panel-head h2 {
    margin: 10px 0 0;
    font-size: 1.55rem;
    line-height: 1.25;
}

.hero-panel-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.hero-panel-badge {
    min-width: 108px;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}

.hero-panel-badge span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-panel-badge strong {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: #fff;
}

.feature-list,
.stack-grid,
.contact-points {
    display: grid;
    gap: 14px;
}

.feature-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.feature-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 700;
}

.feature-item h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #fff;
}

.feature-item p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.stat-card,
.metric-card,
.contact-point,
.capability-chip {
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.stat-card strong,
.contact-point strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.stat-card span,
.contact-point span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.metric-card span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.45;
}

.section-head {
    max-width: 780px;
    margin-bottom: 34px;
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-lg);
}

.cta-box-action {
    display: flex;
    align-items: center;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 520px;
}

.capability-chip {
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-input {
    width: 100%;
    padding: 0.92rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.95rem;
    background: rgba(2, 6, 23, 0.58);
    color: #fff;
    outline: none;
    transition:
            border-color 0.25s ease,
            background 0.25s ease,
            box-shadow 0.25s ease;
}

.form-input::placeholder {
    color: #64748b;
}

.form-input:focus {
    border-color: rgba(199, 210, 254, 0.28);
    background: rgba(2, 6, 23, 0.82);
    box-shadow: 0 0 0 4px rgba(199, 210, 254, 0.06);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.form-note {
    margin: 0;
    max-width: 420px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.service-list {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.service-list li {
    margin-bottom: 9px;
    line-height: 1.7;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-note {
    margin-top: 16px !important;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-soft) !important;
}

.service-card-wide {
    grid-column: span 2;
}

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

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    border-top: 1px solid var(--line);
    background: rgba(10, 15, 26, 0.6);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0;
}

.site-footer-title {
    margin: 0;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-footer-text {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer-nav a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.site-footer-nav a:hover {
    color: #fff;
}

.flash-stack {
    position: fixed;
    top: 96px;
    right: 16px;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(92vw, 360px);
}

.flash-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    animation: flashIn 0.35s ease;
}

.flash-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.flash-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.flash-card.success {
    color: #86efac;
}

.flash-card.error {
    color: #fca5a5;
}

.flash-card.warning {
    color: #fde68a;
}

.flash-out {
    animation: flashOut 0.35s ease forwards;
}

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    width: min(380px, calc(100vw - 32px));
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 26, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-xl);
}

.cookie-banner p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.65;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

.cookie-banner-button {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.82rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 55%, #0b1220 100%);
    color: #f8fafc;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    transition:
            transform 0.25s ease,
            border-color 0.25s ease,
            background 0.25s ease;
}

.cookie-banner-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, #2d3748 0%, #1f2937 55%, #111827 100%);
}

.legal-card {
    border-radius: 24px;
    padding: 22px;
}

.legal-section + .legal-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 1.12rem;
    line-height: 1.35;
    color: #fff;
}

.legal-section p {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.8;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 3px;
}

.legal-list {
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--text-soft);
}

.legal-list li {
    margin-bottom: 9px;
    line-height: 1.75;
}

.admin-login-shell {
    max-width: 560px;
}

.admin-login-card {
    border-radius: 24px;
    padding: 24px;
}

.admin-login-head {
    margin-bottom: 20px;
}

.admin-login-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.2;
}

.admin-login-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.admin-login-button {
    width: 100%;
}

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

.admin-stats-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px);
    gap: 16px;
}

.admin-stat-card,
.admin-table-card {
    border: 1px solid var(--line);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
            rgba(10, 15, 26, 0.76);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.admin-stat-card {
    padding: 22px;
    border-radius: var(--radius-md);
}

.admin-stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-stat-value {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-stat-text {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.admin-table-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table-head {
    padding: 22px 22px 0;
}

.admin-table-head h2 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.3;
}

.admin-table-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.admin-table-wrap {
    overflow: auto;
    padding: 18px 22px 22px;
}

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

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
    width: 16%;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
    width: 20%;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
    width: 14%;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
    width: 16%;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
    width: 24%;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
    width: 10%;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-table th {
    color: #e5e7eb;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-table td {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.65;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.admin-table-link {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 3px;
}

.admin-table-link:hover {
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.admin-message-cell {
    min-width: 0;
    max-width: none;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.admin-message-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-row-modal-trigger {
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-row-modal-trigger td {
    cursor: pointer;
}

.admin-row-modal-trigger:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-row-modal-trigger:focus-visible {
    outline: 2px solid rgba(199, 210, 254, 0.35);
    outline-offset: -2px;
}

.admin-empty-state {
    padding: 18px 4px;
}

.admin-empty-state strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.admin-empty-state p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto;
    isolation: isolate;
}

.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    position: relative !important;
    z-index: 1 !important;
    width: min(720px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
            linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018)),
            rgba(10, 15, 26, 0.97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 0;
}

.modal-body {
    padding: 22px;
}

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

.modal-info-item {
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
}

.modal-info-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-info-item strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.modal-info-item-full {
    grid-column: 1 / -1;
}

.modal-message {
    color: var(--text-soft);
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.modal-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: red;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .modal {
        padding: 8px;
        align-items: center;
    }

    .modal-dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 20px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
    }

    .modal-head,
    .modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.site-header {
    z-index: 50 !important;
}

.site-header-bar,
.site-footer,
.site-footer-inner,
.site-main {
    position: relative;
    z-index: 1 !important;
}