/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg2: #121212;
    --bg3: #1a1a1a;
    --bg4: #222;
    --white: #f0f0f0;
    --white2: #c0c0c0;
    --white3: #888;
    --border: #2a2a2a;
    --border2: #333;
    --border3: #555;
    --accent: #0077ff;
    --accent-dim: #004cff;
    --accent-hover: #3399ff;
    --gold: #e6ab63;
    --red: #ff3b3b;
    --red-dim: #cc2020;
    --red-glow: rgba(255, 59, 59, 0.4);
    --teal: #14b8a6;
    --violet: #8b5cf6;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --vk-color: #4C75A3;
    --google-color: #EA4335;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

/* ============================================
   NAV
   ============================================ */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

nav .logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
}

nav .logo span {
    color: var(--white3);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    color: var(--white3);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--white2);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--border3);
    color: white;
}

.btn-primary {
    background: var(--accent);
    border: none;
    color: white;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-primary:hover { background: var(--accent-dim); }

main {
    padding-top: 64px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 60px 24px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.06), transparent);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.hero .badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--white3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero .badge::before,
.hero .badge::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--white3);
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.hero h1 .accent { color: var(--accent); }

.hero p {
    color: var(--white3);
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.7;
    font-weight: 300;
}

.hero .stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero .stats div { text-align: center; }

.hero .stats .num {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.hero .stats .label {
    font-size: 0.7rem;
    color: var(--white3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-actions .btn-primary,
.hero-actions .btn-outline {
    padding: 12px 32px;
    font-size: 0.85rem;
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee-wrap {
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    width: 100%;
}

.marquee-track {
    display: flex;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.marquee-track .flex { display: flex; }

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--white3);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-track span .dot {
    color: var(--white);
    margin: 0 10px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   COMMON SECTIONS
   ============================================ */

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-sub {
    color: var(--white3);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 24px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 48px 0 24px;
}

.section-divider .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-divider .label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-divider .label .icon { color: var(--accent); }

/* ============================================
   FEATURES
   ============================================ */

.features-section {
    padding: 48px 24px 56px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
}

.feature-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    transition: 0.2s;
}

.feature-card:hover {
    border-color: var(--border3);
    background: var(--bg3);
    transform: translateY(-2px);
}

.feature-card .icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
    color: var(--accent);
    font-weight: 400;
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--white);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--white3);
    line-height: 1.6;
}

.feature-card .chip {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    border: 1px solid var(--border2);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.feature-card .chip:hover {
    border-color: var(--border3);
    color: var(--white);
}

/* ============================================
   APP PROMO
   ============================================ */

.app-promo {
    padding: 48px 24px 56px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.app-promo-inner {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .app-promo-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.app-promo-inner h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-promo-inner p {
    color: var(--white3);
    font-size: 0.9rem;
    max-width: 500px;
}

.app-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-buttons .btn-outline {
    padding: 10px 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   PARTNER STRIP
   ============================================ */

.partner-strip {
    padding: 48px 24px 56px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.partner-inner {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .partner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.partner-inner strong { font-size: 1.2rem; }

.partner-inner p {
    color: var(--white3);
    font-size: 0.9rem;
}

/* ============================================
   DEPOSIT
   ============================================ */

.deposit-block {
    padding: 48px 24px 56px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.deposit-inner {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .deposit-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.deposit-inner .deposit-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.deposit-inner p {
    color: var(--white3);
    font-size: 0.9rem;
}

.deposit-inner .btn-download {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.deposit-inner .btn-download:hover {
    background: var(--accent-dim);
}

/* ============================================
   SUBSCRIBE / FAQ
   ============================================ */

.subscribe-card {
    padding: 48px 24px 56px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.subscribe-inner {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.subscribe-inner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.08), transparent);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

.subscribe-inner > div {
    position: relative;
    z-index: 2;
}

.subscribe-inner .big-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.subscribe-inner p {
    color: var(--white3);
    font-size: 0.9rem;
    max-width: 620px;
    margin: 10px 0 16px;
}

.faq-section {
    padding: 48px 24px 56px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.faq-inner {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
}

.faq-inner .faq-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.faq-item .q {
    font-weight: 700;
    color: var(--white);
}

.faq-item .a {
    margin-top: 4px;
    color: var(--white3);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ============================================
   SUBSCRIPTIONS (карточки подписок)
   ============================================ */

.subscriptions-section {
    padding: 24px 24px 48px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 16px;
}

.sub-card {
    background: var(--bg2);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sub-color, var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
}

.sub-card:hover {
    border-color: var(--sub-color, var(--accent));
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sub-card:hover::before { opacity: 1; }

.sub-card .sub-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    background: var(--sub-color, var(--accent));
    color: #0a0a0a;
    font-family: var(--font-mono);
}

.sub-card .sub-badge.popular {
    background: var(--gold);
    animation: pulse-badge 2s infinite;
}

.sub-card .sub-badge.corporate {
    background: var(--teal);
    color: #0a0a0a;
}

.sub-card .sub-badge.enterprise {
    background: var(--violet);
    color: #fff;
}

.sub-card .sub-badge.sovereign {
    background: linear-gradient(95deg, #ff3b3b, #8b0000);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(255, 59, 59, 0.6);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-red {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 16px rgba(255, 59, 59, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 24px rgba(255, 59, 59, 0.9);
    }
}

.sub-card .sub-icon {
    font-size: 1.8rem;
    color: var(--sub-color, var(--accent));
    margin-bottom: 8px;
    display: block;
}

.sub-card .sub-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.sub-card .sub-price-block { margin: 4px 0 2px; }

.sub-card .sub-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sub-color, var(--accent));
}

.sub-card .sub-price .old-price {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white3);
    text-decoration: line-through;
    margin-left: 8px;
}

.sub-card .sub-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--white3);
}

.sub-card .sub-save {
    font-size: 0.8rem;
    color: #57F287;
    font-weight: 600;
}

.sub-card .sub-period-text {
    font-size: 0.8rem;
    color: var(--white3);
    margin-bottom: 14px;
}

.sub-card .sub-desc {
    font-size: 0.9rem;
    color: var(--white2);
    line-height: 1.8;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.sub-card .sub-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.sub-card .sub-features li {
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--white2);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sub-card .sub-features li:last-child { border-bottom: none; }
.sub-card .sub-features li .check { color: #57F287; font-weight: 700; }
.sub-card .sub-features li .xmark { color: #ED4245; font-weight: 700; }
.sub-card .sub-features li .panel-check { color: var(--sub-color, var(--accent)); font-weight: 700; }

.sub-card .sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: var(--font-display);
    width: 100%;
    margin-top: auto;
    background: var(--sub-color, var(--accent));
}

.sub-card .sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.sub-card.standard { --sub-color: var(--accent); }
.sub-card.premium { --sub-color: var(--gold); }
.sub-card.corporate { --sub-color: var(--teal); border-color: rgba(20, 184, 166, 0.25); }
.sub-card.enterprise { --sub-color: var(--violet); border-color: rgba(139, 92, 246, 0.25); }

.sub-card.sovereign {
    --sub-color: var(--red);
    border-color: rgba(255, 59, 59, 0.3);
    background: linear-gradient(165deg, #1a0a0a 0%, #121212 100%);
}

.sub-card.sovereign:hover {
    border-color: var(--red);
    box-shadow: 0 12px 40px rgba(255, 59, 59, 0.25);
}

.sub-card.sovereign .sub-btn {
    background: linear-gradient(95deg, #ff3b3b, #8b0000);
    color: #fff;
}

.sub-card.sovereign .sub-btn:hover {
    box-shadow: 0 8px 24px rgba(255, 59, 59, 0.4);
}

.sub-card.sovereign .sub-desc { border-color: rgba(255, 59, 59, 0.2); }

/* ============================================
   PERIOD SELECTOR
   ============================================ */

.period-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 16px 20px;
    background: var(--bg2);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto 24px;
}

.period-selector .period-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white3);
    margin-right: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
}

.period-selector .period-btn {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--white2);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-display);
    position: relative;
}

.period-selector .period-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.period-selector .period-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a;
}

.period-selector .period-btn .discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 50px;
    background: #57F287;
    color: #0a0a0a;
    font-family: var(--font-mono);
}

.period-selector .period-btn.active .discount-badge {
    background: #0a0a0a;
    color: #fff;
}

/* ============================================
   PANEL PREVIEW
   ============================================ */

.panel-preview {
    margin: 32px 0 16px;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.panel-preview::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
}

.panel-preview .panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-preview .panel-sub {
    color: var(--white3);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.panel-item {
    border-radius: 10px;
    padding: 16px;
    transition: all 0.25s;
}

.panel-item:hover { transform: translateY(-2px); }

.panel-item .ap-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}

.panel-item .ap-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.panel-item .ap-desc {
    font-size: 0.75rem;
    color: var(--white3);
    line-height: 1.6;
}

.panel-preview.sovereign-panel {
    background: linear-gradient(165deg, #1a0a0a 0%, #0d0505 100%);
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.panel-preview.sovereign-panel::before {
    background: radial-gradient(circle, rgba(255, 59, 59, 0.15), transparent);
}

.panel-preview.sovereign-panel .panel-title { color: var(--red); }

.panel-preview.sovereign-panel .panel-item {
    background: rgba(255, 59, 59, 0.05);
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.panel-preview.sovereign-panel .panel-item:hover {
    background: rgba(255, 59, 59, 0.1);
    border-color: rgba(255, 59, 59, 0.4);
}

.panel-preview.sovereign-panel .ap-icon { color: var(--red); }

/* ============================================
   INFO BLOCK
   ============================================ */

.info-block {
    background: var(--bg2);
    border-radius: 12px;
    padding: 28px 32px;
    border: 1px solid var(--border);
    margin: 24px 0 0;
}

.info-block .info-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-block .info-header .icon {
    color: var(--accent);
    font-size: 1.4rem;
    margin-top: 2px;
}

.info-block h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.info-block p {
    font-size: 0.9rem;
    color: var(--white3);
    line-height: 1.8;
}

.info-block .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.info-block .tags span {
    font-size: 0.75rem;
    color: var(--white3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-block .tags span .icon {
    color: var(--accent);
    font-size: 0.8rem;
}

/* ============================================
   CTA
   ============================================ */

.cta {
    padding: 48px 24px 64px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta p {
    color: var(--white3);
    font-size: 1rem;
    margin-bottom: 28px;
}

.cta .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary,
.cta .btn-outline {
    padding: 12px 40px;
    font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--white3);
    width: 100%;
}

@media (min-width: 640px) {
    footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

footer a {
    color: var(--white3);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover { color: var(--white); }

/* ============================================
   MODAL (общий)
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg2);
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 480px;
    width: 100%;
    padding: 32px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--white3);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal .modal-close:hover { color: #fff; }

.modal .modal-icon-wrap {
    display: inline-block;
    margin-bottom: 12px;
}

.modal .modal-icon {
    font-size: 2.4rem;
    color: var(--sub-color, var(--accent));
}

.modal .modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.modal .modal-sub {
    font-size: 0.85rem;
    color: var(--white3);
    margin-bottom: 16px;
}

.modal .modal-details {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.modal .modal-details .detail {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.modal .modal-details .detail:last-child { border-bottom: none; }
.modal .modal-details .detail .label { color: var(--white3); }
.modal .modal-details .detail .value { color: var(--white); font-weight: 600; }
.modal .modal-details .detail .value.price { color: var(--sub-color, var(--accent)); font-size: 1.1rem; }

.modal .modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: var(--font-display);
    width: 100%;
    background: var(--sub-color, var(--accent));
}

.modal .modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.modal .modal-btn.secondary {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--white2);
    margin-top: 8px;
}

.modal .modal-btn.secondary:hover {
    border-color: var(--accent);
    color: #fff;
}

/* ============================================
   LOGIN
   ============================================ */

.login-hero {
    text-align: center;
    padding: 40px 24px 24px;
}

.login-hero .badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--white3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.login-hero .badge::before,
.login-hero .badge::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--white3);
}

.login-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.login-hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.login-hero h1 .accent { color: var(--accent); }

.login-hero p {
    color: var(--white3);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.6;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.email-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-form .form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white2);
}

.email-form .form-group input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
}

.email-form .form-group input:focus { border-color: var(--accent); }
.email-form .form-group input::placeholder { color: var(--white3); }

.email-form .btn-submit {
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.email-form .btn-submit:hover { background: var(--accent-dim); }

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 18px;
}

.divider .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider .text {
    color: var(--white3);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.social-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white2);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    width: 100%;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--border3);
}

.social-btn .s-icon {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 700;
}

.social-btn.vk { border-color: rgba(76, 117, 163, 0.3); }
.social-btn.vk:hover {
    border-color: var(--vk-color);
    background: rgba(76, 117, 163, 0.08);
    color: #fff;
}
.social-btn.vk .s-icon { color: var(--vk-color); }

.social-btn.google { border-color: rgba(234, 67, 53, 0.3); }
.social-btn.google:hover {
    border-color: var(--google-color);
    background: rgba(234, 67, 53, 0.08);
    color: #fff;
}
.social-btn.google .s-icon { color: var(--google-color); }

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    color: var(--white3);
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ============================================
   REGISTER
   ============================================ */

.register-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.register-hero {
    text-align: center;
    padding: 48px 24px 32px;
    max-width: 700px;
}

.register-badge-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--white3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.register-badge-line .line {
    height: 1px;
    width: 48px;
    background: var(--white3);
}

.register-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.register-hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

.register-hero h1 .accent { color: var(--accent); }

.register-hero p {
    color: var(--white3);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

.register-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 24px 64px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .register-container {
        grid-template-columns: 1.4fr 1fr;
        gap: 40px;
        align-items: flex-start;
    }
}

.register-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.6;
}

.register-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.register-steps .rs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.register-steps .rs-item.active { opacity: 1; }

.register-steps .rs-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--white2);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-steps .rs-item.active .rs-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.register-steps .rs-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white2);
}

.register-steps .rs-sep {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 60px;
}

.register-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.register-alert.error {
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: #ff8080;
}

.register-alert .ra-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff3b3b;
    flex-shrink: 0;
    margin-top: 2px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.rf-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rf-label .rf-hint {
    font-size: 0.7rem;
    color: var(--white3);
    font-weight: 400;
}

.rf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rf-input-wrap .rf-prefix {
    position: absolute;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--white3);
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.rf-input-wrap .rf-prefix svg { display: block; }

.rf-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 38px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    outline: none;
}

.rf-input-wrap input:focus { border-color: var(--accent); }
.rf-input-wrap input:focus ~ .rf-prefix { color: var(--accent); }
.rf-input-wrap input::placeholder { color: var(--white3); }

.rf-help {
    font-size: 0.72rem;
    color: var(--white3);
    line-height: 1.5;
}

.rf-help code {
    font-family: var(--font-mono);
    background: var(--bg3);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--white2);
}

.rf-roles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .rf-roles { grid-template-columns: repeat(3, 1fr); }
}

.rf-role {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    user-select: none;
}

.rf-role input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}

.rf-role:hover { border-color: var(--border3); }

.rf-role.selected,
.rf-role:has(input:checked) {
    border-color: var(--accent);
    background: rgba(0, 119, 255, 0.06);
}

.rf-role.selected .rf-role-icon,
.rf-role:has(input:checked) .rf-role-icon { color: var(--accent); }

.rf-role:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.rf-role .rf-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white3);
    transition: color 0.2s;
    margin-bottom: 4px;
    pointer-events: none;
}

.rf-role .rf-role-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    pointer-events: none;
}

.rf-role .rf-role-desc {
    font-size: 0.7rem;
    color: var(--white3);
    line-height: 1.4;
    pointer-events: none;
}

.rf-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 600px) {
    .rf-row { grid-template-columns: 1fr 1fr; }
}

.rf-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.rf-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rf-check .rf-check-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border3);
    background: var(--bg);
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s;
    position: relative;
}

.rf-check input:checked + .rf-check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.rf-check input:checked + .rf-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rf-check .rf-check-text {
    font-size: 0.78rem;
    color: var(--white3);
    line-height: 1.5;
}

.rf-check .rf-check-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.rf-check .rf-check-text a:hover { text-decoration: underline; }

.rf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 4px;
}

.rf-submit:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.3);
}

.rf-submit .rf-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
}

.rf-submit:hover .rf-arrow { transform: translateX(4px); }

.rf-login-link {
    text-align: center;
    font-size: 0.82rem;
    color: var(--white3);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.rf-login-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.rf-login-link a:hover { text-decoration: underline; }

.register-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.rs-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 20px;
}

.rs-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.rs-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rs-benefits li {
    font-size: 0.85rem;
    color: var(--white2);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.rs-benefits .rs-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #57F287;
    flex-shrink: 0;
}

.rs-card-accent {
    background: linear-gradient(165deg, rgba(0, 119, 255, 0.08), rgba(0, 119, 255, 0.02));
    border-color: rgba(0, 119, 255, 0.3);
}

.rs-card-accent .rs-card-title { color: var(--accent); }

.rs-card-accent p {
    font-size: 0.85rem;
    color: var(--white2);
    line-height: 1.6;
}

@media (max-width: 899px) {
    .register-side { position: static; }
    .register-container { padding-bottom: 48px; }
}

/* ============================================
   USER PROFILE (fp-*)
   ============================================ */

.fp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .fp-wrap {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }
}

.fp-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 88px;
}

@media (max-width: 900px) {
    .fp-side { position: static; }
}

.fp-user-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.fp-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-avatar-initials {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.fp-avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bg2);
}

.fp-avatar-status.online  { background: #57F287; }
.fp-avatar-status.offline { background: var(--white3); }

.fp-user-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    word-break: break-word;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    line-height: 1.2;
}

.fp-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
}

.fp-verify svg {
    width: 18px;
    height: 18px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.fp-verify-gray     svg { color: #9ca3af; fill: #9ca3af; }
.fp-verify-blue     svg { color: #2563eb; fill: #2563eb; }
.fp-verify-gold     svg { color: #f59e0b; fill: #f59e0b; }
.fp-verify-red      svg { color: #dc2626; fill: #dc2626; }
.fp-verify-purple   svg { color: #7c3aed; fill: #7c3aed; }
.fp-verify-green    svg { color: #16a34a; fill: #16a34a; }
.fp-verify-amber    svg { color: #d97706; fill: #d97706; }
.fp-verify-burgundy svg { color: #991b1b; fill: #991b1b; }

.fp-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.fp-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--white2);
}

.fp-user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--white3);
}

.fp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.fp-dot.online  { background: #57F287; box-shadow: 0 0 8px rgba(87, 242, 135, 0.6); }
.fp-dot.offline { background: var(--white3); }

.fp-user-id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--white3);
}

.fp-user-id code {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1px 8px;
    border-radius: 4px;
    color: var(--white2);
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    width: 100%;
}

.fp-btn-primary {
    background: var(--accent);
    color: #fff;
}

.fp-btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

.fp-btn-outline {
    background: transparent;
    border-color: var(--border2);
    color: var(--white2);
}

.fp-btn-outline:hover {
    border-color: var(--border3);
    color: #fff;
}

.fp-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.fp-box-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white3);
    margin-bottom: 12px;
}

.fp-info,
.fp-stats,
.fp-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-info li,
.fp-stats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    gap: 10px;
}

.fp-info-label,
.fp-stats-label {
    color: var(--white3);
    flex-shrink: 0;
}

.fp-info-value,
.fp-stats-value {
    color: var(--white);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.fp-stats-value {
    font-family: var(--font-mono);
    font-weight: 700;
}

.fp-stats-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
}

.fp-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--white2);
}

.fp-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--accent);
    flex-shrink: 0;
}

.fp-main {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 400px;
    overflow: visible;
}

.fp-owner-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 0;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.1), rgba(139, 92, 246, 0.05));
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.fp-owner-text {
    font-size: 0.88rem;
    color: var(--white2);
    line-height: 1.5;
}

.fp-owner-text strong {
    color: var(--white);
    font-weight: 700;
}

.fp-owner-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.fp-owner-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

@media (max-width: 600px) {
    .fp-owner-bar { padding: 14px 16px 0; }
    .fp-owner-btn { width: 100%; justify-content: center; }
}

.fp-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    overflow-x: auto;
}

.fp-tab {
    flex: 0 0 auto;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--white3);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fp-tab:hover { color: var(--white); }
.fp-tab.active { color: var(--white); }

.fp-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.fp-tab-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 1px 7px;
    border-radius: 50px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--white3);
}

.fp-tab.active .fp-tab-count {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.fp-owner-bar .fp-tabs {
    width: 100%;
    margin-top: 12px;
    background: transparent;
    border-top: none;
    border-bottom: none;
    backdrop-filter: none;
    padding: 0;
}

.fp-tab-content {
    display: none;
    padding: 20px;
}

.fp-tab-content.active { display: block; }

.fp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fp-search {
    position: relative;
    flex: 1;
    max-width: 360px;
    display: flex;
    align-items: center;
}

.fp-search svg {
    position: absolute;
    left: 12px;
    color: var(--white3);
    pointer-events: none;
}

.fp-search input {
    width: 100%;
    padding: 9px 14px 9px 34px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.fp-search input:focus { border-color: var(--accent); }
.fp-search input::placeholder { color: var(--white3); }

.fp-toolbar-info {
    font-size: 0.78rem;
    color: var(--white3);
    font-family: var(--font-mono);
}

.fp-lots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-lot {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    align-items: center;
    transition: border-color 0.2s, transform 0.2s;
}

.fp-lot:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.fp-lot-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.fp-lot-body { min-width: 0; }

.fp-lot-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-lot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-lot-chip {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 2px 8px;
    border-radius: 50px;
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.25);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fp-lot-chip-muted {
    background: var(--bg3);
    border-color: var(--border);
    color: var(--white3);
}

.fp-lot-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.fp-lot-price {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.fp-lot-btn {
    padding: 7px 16px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.fp-lot-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .fp-lot {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }
    .fp-lot-thumb { width: 40px; height: 40px; }
    .fp-lot-buy {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.fp-reviews {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-review {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.fp-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.fp-review-body { min-width: 0; }

.fp-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.fp-review-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.fp-review-date {
    font-size: 0.72rem;
    color: var(--white3);
    white-space: nowrap;
}

.fp-review-stars {
    display: flex;
    gap: 2px;
    font-size: 0.95rem;
    color: var(--border2);
    margin-bottom: 6px;
}

.fp-review-stars .active { color: var(--gold); }

.fp-review-text {
    font-size: 0.86rem;
    color: var(--white2);
    line-height: 1.6;
}

.fp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--white3);
}

.fp-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white2);
    margin-bottom: 6px;
}

.fp-empty-text { font-size: 0.85rem; }

.fp-about {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--white2);
    line-height: 1.75;
}

.fp-about strong {
    color: var(--white);
    font-weight: 700;
}

.fp-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.fp-about-item {
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.fp-about-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.fp-about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.25);
    color: var(--accent);
    margin-bottom: 10px;
}

.fp-about-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.fp-about-item-text {
    font-size: 0.78rem;
    color: var(--white3);
    line-height: 1.55;
}

/* ============================================
   ROLE BADGES (иерархия)
   ============================================ */

.fp-badge-gen_dir {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #ffec8b 100%);
    color: #3a2a0a;
    border-color: #ffd700;
    font-weight: 800;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fp-badge-acting_gen_dir {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #3a2a0a;
    border-color: #f7971e;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(247, 151, 30, 0.4);
}

.fp-badge-board_of_directors {
    background: linear-gradient(135deg, #450a0a 0%, #b91c1c 60%, #dc2626 100%);
    color: #fecaca;
    border-color: #dc2626;
    font-weight: 800;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.fp-badge-lead_developer {
    background: linear-gradient(135deg, #0b7d6c 0%, #11998e 40%, #38ef7d 100%);
    color: #fff;
    border-color: #38ef7d;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(56, 239, 125, 0.45);
}

.fp-badge-developer {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    border-color: #11998e;
    font-weight: 600;
}

.fp-badge-tech_admin {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    border-color: #14b8a6;
    font-weight: 600;
}

.fp-badge-security_specialist {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
    color: #fff;
    border-color: #dc2626;
    font-weight: 600;
}

.fp-badge-head_partner_sales {
    background: linear-gradient(135deg, #2eb872 0%, #43e97b 50%, #38f9d7 100%);
    color: #1a3a2a;
    border-color: #38f9d7;
    font-weight: 700;
}

.fp-badge-head_content {
    background: linear-gradient(135deg, #7ed6d1 0%, #a8edea 50%, #fed6e3 100%);
    color: #2a4a4a;
    border-color: #a8edea;
    font-weight: 700;
}

.fp-badge-head_finance {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #3a2a1a;
    border-color: #fda085;
    font-weight: 700;
}

.fp-badge-head_legal {
    background: linear-gradient(135deg, #c39bd3 0%, #d299c2 50%, #fef9d7 100%);
    color: #3a2a4a;
    border-color: #d299c2;
    font-weight: 700;
}

.fp-badge-head_hr {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #3d2a5a;
    border-color: #a18cd1;
    font-weight: 700;
}

.fp-badge-head_community {
    background: linear-gradient(135deg, #8ee0dc 0%, #a8edea 50%, #fed6e3 100%);
    color: #2a4a4a;
    border-color: #a8edea;
    font-weight: 700;
}

.fp-badge-head_analytics {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #00f2fe;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.fp-badge-head_marketing {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #3a2a1a;
    border-color: #fda085;
    font-weight: 700;
}

.fp-badge-head_sales {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a3a2a;
    border-color: #38f9d7;
    font-weight: 700;
}

.fp-badge-head_dev {
    background: linear-gradient(135deg, #0b7d6c 0%, #11998e 40%, #38ef7d 100%);
    color: #fff;
    border-color: #38ef7d;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(56, 239, 125, 0.45);
}

.fp-badge-head_management {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #00f2fe;
    font-weight: 700;
}

.fp-badge-head_testers {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: #f5576c;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(245, 87, 108, 0.4);
}

.fp-badge-head_moderation {
    background: linear-gradient(135deg, #c39bd3 0%, #d299c2 50%, #fef9d7 100%);
    color: #3a2a4a;
    border-color: #d299c2;
    font-weight: 700;
}

.fp-badge-head_tech_support {
    background: linear-gradient(135deg, #8ee0dc 0%, #a8edea 50%, #fed6e3 100%);
    color: #2a4a4a;
    border-color: #a8edea;
    font-weight: 700;
}

.fp-badge-deputy_head_sales {
    background: linear-gradient(135deg, #a8f0c6 0%, #43e97b 100%);
    color: #1a3a2a;
    border-color: #43e97b;
    font-weight: 600;
}

.fp-badge-deputy_head_dev {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    color: #fff;
    border-color: #38ef7d;
    font-weight: 600;
}

.fp-badge-deputy_head_hr {
    background: linear-gradient(135deg, #fbc2eb 0%, #a18cd1 100%);
    color: #3d2a5a;
    border-color: #a18cd1;
    font-weight: 600;
}

.fp-badge-community_manager {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #3d2a5a;
    border-color: #a18cd1;
    font-weight: 600;
}

.fp-badge-client_manager {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #00f2fe;
    font-weight: 600;
}

.fp-badge-partner_manager {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a3a2a;
    border-color: #38f9d7;
    font-weight: 600;
}

.fp-badge-recruiting_specialist {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #3d2a5a;
    border-color: #a18cd1;
}

.fp-badge-partner_sales_specialist {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a3a2a;
    border-color: #38f9d7;
}

.fp-badge-security_spec {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
    color: #fff;
    border-color: #dc2626;
}

.fp-badge-project_manager {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #00f2fe;
}

.fp-badge-recruiter {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #3d2a5a;
    border-color: #a18cd1;
}

.fp-badge-idea_manager {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #3d2a5a;
    border-color: #a18cd1;
}

.fp-badge-senior_usb_employee {
    background: linear-gradient(135deg, #450a0a 0%, #b91c1c 100%);
    color: #fecaca;
    border-color: #dc2626;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.fp-badge-usb_employee {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
    color: #fff;
    border-color: #dc2626;
    font-weight: 600;
}

.fp-badge-senior_content_label_moderator {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    color: #1a2a5a;
    border-color: #66a6ff;
    font-weight: 700;
}

.fp-badge-senior_content_moderator {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #3a2a5a;
    border-color: #a6c1ee;
    font-weight: 700;
}

.fp-badge-content_label_moderator {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d5a5a;
    border-color: #a8edea;
}

.fp-badge-content_moderator {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    color: #4a2d5a;
    border-color: #d299c2;
}

.fp-badge-senior_pr_manager {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #5a3a1a;
    border-color: #fda085;
    font-weight: 700;
}

.fp-badge-pr_manager {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #00f2fe;
}

.fp-badge-smm_manager {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: #f5576c;
}

.fp-badge-pro_support {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #5a2d3a;
    border-color: #fa709a;
    font-weight: 700;
}

.fp-badge-tech_support {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a3a2a;
    border-color: #38f9d7;
}

.fp-badge-support_trainee {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #00f2fe;
}

.fp-badge-ultra_tester {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    color: #fff;
    border-color: #f7b733;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(252, 74, 26, 0.5);
}

.fp-badge-super_tester {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: #f5576c;
    font-weight: 700;
}

.fp-badge-advanced_tester {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #1a3a2a;
    border-color: #38f9d7;
    font-weight: 700;
}

.fp-badge-active_tester {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border-color: #00f2fe;
}

.fp-badge-tester {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #764ba2;
}

.fp-badge-user {
    background: var(--bg3);
    color: var(--white2);
    border-color: var(--border2);
}

.fp-badge-seller {
    background: rgba(87, 242, 135, 0.12);
    color: #57F287;
    border-color: rgba(87, 242, 135, 0.3);
}

.fp-badge-trader {
    background: rgba(0, 119, 255, 0.12);
    color: var(--accent);
    border-color: rgba(0, 119, 255, 0.3);
}

.fp-badge-standard {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.fp-badge-premium {
    background: linear-gradient(135deg, #e6ab63 0%, #ffd27f 100%);
    color: #0a0a0a;
    border-color: var(--gold);
}

.fp-badge-corporate {
    background: linear-gradient(135deg, #14b8a6 0%, #5eead4 100%);
    color: #0a0a0a;
    border-color: var(--teal);
}

.fp-badge-enterprise {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: #fff;
    border-color: var(--violet);
}

.fp-badge-sovereign {
    background: linear-gradient(95deg, #ff3b3b 0%, #8b0000 100%);
    color: #fff;
    border-color: rgba(255, 59, 59, 0.5);
    font-weight: 800;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.5);
}

/* ============================================
   ORDERS / SALES / PURCHASES (op-*)
   ============================================ */

.op-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

.op-header { margin-bottom: 28px; }

.op-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 6px;
}

.op-sub {
    font-size: 0.9rem;
    color: var(--white3);
    font-weight: 300;
}

.op-table-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.op-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.op-table thead th {
    text-align: left;
    padding: 14px 18px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white3);
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    white-space: nowrap;
}

.op-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--white2);
    vertical-align: top;
}

.op-table tbody tr:last-child td { border-bottom: none; }
.op-table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }

.op-col-date    { width: 130px; }
.op-col-order   { width: 110px; }
.op-col-desc    { min-width: 260px; }
.op-col-seller  { width: 220px; }
.op-col-status  { width: 110px; }
.op-col-total   { width: 110px; text-align: right; white-space: nowrap; }

.op-date-main {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 2px;
}

.op-date-time {
    font-size: 0.75rem;
    color: var(--white3);
    font-family: var(--font-mono);
}

.op-date-rel {
    font-size: 0.72rem;
    color: var(--white3);
    margin-top: 6px;
}

.op-order-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.op-desc-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 4px;
}

.op-desc-text {
    font-size: 0.78rem;
    color: var(--white3);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.op-desc-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.op-desc-cat {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(0, 119, 255, 0.08);
    border: 1px solid rgba(0, 119, 255, 0.2);
    padding: 1px 7px;
    border-radius: 50px;
}

.op-desc-qty {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--white3);
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 50px;
}

.op-seller {
    display: flex;
    align-items: center;
    gap: 10px;
}

.op-seller-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.op-seller-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.op-seller-name {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-seller-name:hover { color: var(--accent); }

.op-seller-badge {
    font-size: 0.68rem;
    color: #57F287;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.op-status {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.op-status-pending   { background: rgba(230, 171, 99, 0.12); color: var(--gold);   border: 1px solid rgba(230, 171, 99, 0.3); }
.op-status-paid      { background: rgba(0, 119, 255, 0.12);  color: var(--accent); border: 1px solid rgba(0, 119, 255, 0.3); }
.op-status-delivered { background: rgba(87, 242, 135, 0.12); color: #57F287;       border: 1px solid rgba(87, 242, 135, 0.3); }
.op-status-closed    { background: rgba(87, 242, 135, 0.12); color: #57F287;       border: 1px solid rgba(87, 242, 135, 0.3); }
.op-status-cancelled { background: rgba(255, 59, 59, 0.1);   color: #ff8080;       border: 1px solid rgba(255, 59, 59, 0.3); }
.op-status-refunded  { background: rgba(255, 59, 59, 0.1);   color: #ff8080;       border: 1px solid rgba(255, 59, 59, 0.3); }
.op-status-default   { background: var(--bg3); color: var(--white3); border: 1px solid var(--border); }

.op-empty {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
}

.op-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.op-empty-text {
    font-size: 0.9rem;
    color: var(--white3);
    margin-bottom: 20px;
}

.op-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.op-empty-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

/* ============================================
   WALLET / FINANCE (fw-*)
   ============================================ */

.fw-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

.fw-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.fw-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 6px;
}

.fw-sub {
    font-size: 0.9rem;
    color: var(--white3);
    font-weight: 300;
}

.fw-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.fw-btn-primary {
    background: var(--accent);
    color: #fff;
}

.fw-btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

.fw-btn-outline {
    background: transparent;
    border-color: var(--border2);
    color: var(--white2);
}

.fw-btn-outline:hover {
    border-color: var(--border3);
    color: #fff;
}

.fw-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.fw-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fw-card-balance {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.12), rgba(139, 92, 246, 0.06));
    border-color: rgba(0, 119, 255, 0.35);
}

.fw-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white3);
    font-family: var(--font-mono);
    font-weight: 700;
}

.fw-card-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.fw-value-positive { color: #57F287; }
.fw-value-negative { color: #ff8080; }

.fw-card-hint {
    font-size: 0.75rem;
    color: var(--white3);
    margin-top: 4px;
}

.fw-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 119, 255, 0.06);
    border: 1px solid rgba(0, 119, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 32px;
}

.fw-info-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.fw-info-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
}

.fw-info-text {
    font-size: 0.8rem;
    color: var(--white3);
    line-height: 1.6;
}

.fw-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.fw-table-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.fw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.fw-table thead th {
    text-align: left;
    padding: 14px 18px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white3);
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    white-space: nowrap;
}

.fw-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--white2);
    vertical-align: middle;
}

.fw-table tbody tr:last-child td { border-bottom: none; }
.fw-table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }

.fw-col-date    { width: 140px; }
.fw-col-type    { width: 130px; }
.fw-col-desc    { min-width: 260px; }
.fw-col-status  { width: 130px; }
.fw-col-amount  { width: 140px; text-align: right; white-space: nowrap; }

.fw-date-main {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 2px;
}

.fw-date-time {
    font-size: 0.75rem;
    color: var(--white3);
    font-family: var(--font-mono);
}

.fw-date-rel {
    font-size: 0.7rem;
    color: var(--white3);
    margin-top: 4px;
}

.fw-type {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.fw-type-deposit      { background: rgba(87, 242, 135, 0.12); color: #57F287;       border: 1px solid rgba(87, 242, 135, 0.3); }
.fw-type-withdraw     { background: rgba(255, 59, 59, 0.1);   color: #ff8080;       border: 1px solid rgba(255, 59, 59, 0.3); }
.fw-type-purchase     { background: rgba(0, 119, 255, 0.12);  color: var(--accent); border: 1px solid rgba(0, 119, 255, 0.3); }
.fw-type-sale         { background: rgba(87, 242, 135, 0.12); color: #57F287;       border: 1px solid rgba(87, 242, 135, 0.3); }
.fw-type-refund       { background: rgba(230, 171, 99, 0.12); color: var(--gold);   border: 1px solid rgba(230, 171, 99, 0.3); }
.fw-type-fee          { background: rgba(255, 59, 59, 0.1);   color: #ff8080;       border: 1px solid rgba(255, 59, 59, 0.3); }
.fw-type-bonus        { background: rgba(139, 92, 246, 0.12); color: var(--violet); border: 1px solid rgba(139, 92, 246, 0.3); }
.fw-type-subscription { background: rgba(230, 171, 99, 0.12); color: var(--gold);   border: 1px solid rgba(230, 171, 99, 0.3); }

.fw-status {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.fw-status-completed { background: rgba(87, 242, 135, 0.12); color: #57F287;       border: 1px solid rgba(87, 242, 135, 0.3); }
.fw-status-pending   { background: rgba(230, 171, 99, 0.12); color: var(--gold);   border: 1px solid rgba(230, 171, 99, 0.3); }
.fw-status-failed    { background: rgba(255, 59, 59, 0.1);   color: #ff8080;       border: 1px solid rgba(255, 59, 59, 0.3); }
.fw-status-cancelled { background: var(--bg3); color: var(--white3); border: 1px solid var(--border); }
.fw-status-default   { background: var(--bg3); color: var(--white3); border: 1px solid var(--border); }

.fw-amount-positive {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #57F287;
}

.fw-amount-negative {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #ff8080;
}

.fw-empty {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
}

.fw-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.fw-empty-text {
    font-size: 0.9rem;
    color: var(--white3);
}

/* ============================================
   SUPPORT / TICKETS (tk-*)
   ============================================ */

.tk-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

.tk-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.tk-back {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--white3);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.tk-back:hover { color: var(--accent); }

.tk-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.2;
}

.tk-sub {
    font-size: 0.9rem;
    color: var(--white3);
    font-weight: 300;
    max-width: 640px;
}

.tk-topbar-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.tk-btn-primary {
    background: var(--accent);
    color: #fff;
}

.tk-btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

.tk-btn-outline {
    background: transparent;
    border-color: var(--border2);
    color: var(--white2);
}

.tk-btn-outline:hover {
    border-color: var(--border3);
    color: #fff;
}

.tk-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--white2);
    line-height: 1.2;
}

.tk-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.tk-status-wait-support { color: var(--gold);   border-color: rgba(230, 171, 99, 0.35); background: rgba(230, 171, 99, 0.06); }
.tk-status-wait-client  { color: var(--accent); border-color: rgba(0, 119, 255, 0.35); background: rgba(0, 119, 255, 0.06); }
.tk-status-wait-tech    { color: var(--teal);   border-color: rgba(20, 184, 166, 0.35); background: rgba(20, 184, 166, 0.06); }
.tk-status-wait-head    { color: var(--violet); border-color: rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.06); }
.tk-status-wait-board   { color: #dc2626;       border-color: rgba(220, 38, 38, 0.35); background: rgba(220, 38, 38, 0.06); }
.tk-status-wait-acting  { color: #f7971e;       border-color: rgba(247, 151, 30, 0.35); background: rgba(247, 151, 30, 0.06); }
.tk-status-wait-gendir  { color: #ffd700;       border-color: rgba(255, 215, 0, 0.5);  background: rgba(255, 215, 0, 0.06); }
.tk-status-closed       { color: var(--white3); border-color: var(--border2); }
.tk-status-system       { color: var(--teal);   border-color: rgba(20, 184, 166, 0.35); background: rgba(20, 184, 166, 0.06); }
.tk-status-default      { color: var(--white3); border-color: var(--border2); }

.tk-priority-text-low    { color: var(--white3); }
.tk-priority-text-normal { color: var(--accent); }
.tk-priority-text-high   { color: var(--gold); }
.tk-priority-text-urgent { color: #ff8080; }

.tk-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.tk-alert-error {
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: #ff8080;
}

.tk-form {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tk-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white2);
}

.tk-input,
.tk-select,
.tk-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.tk-input:focus,
.tk-select:focus,
.tk-textarea:focus { border-color: var(--accent); }

.tk-textarea {
    min-height: 160px;
    line-height: 1.5;
}

.tk-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .tk-row { grid-template-columns: 1fr; }
}

.tk-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.tk-help {
    font-size: 0.72rem;
    color: var(--white3);
    line-height: 1.5;
}

.tk-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 720px) {
    .tk-cards { grid-template-columns: 1fr; }
}

.tk-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}

.tk-card:hover { border-color: var(--border3); }

.tk-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    margin-bottom: 2px;
    flex-shrink: 0;
}

.tk-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.tk-card-status { margin-bottom: 4px; }

.tk-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tk-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 8px;
}

.tk-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--white3);
    line-height: 1.4;
}

.tk-card-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--white3);
    flex-shrink: 0;
}

.tk-card-code {
    font-family: var(--font-mono);
    color: var(--white2);
    font-size: 0.78rem;
}

.tk-card-priority span:last-child { font-weight: 600; }

.tk-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--white2);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

.tk-card-btn:hover {
    border-color: var(--accent);
    color: var(--white);
    background: rgba(0, 119, 255, 0.05);
}

.tk-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 1000px) {
    .tk-detail-grid { grid-template-columns: 1fr; }
}

.tk-chat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tk-msg {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.tk-msg-staff {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.06), rgba(139, 92, 246, 0.03));
    border-color: rgba(0, 119, 255, 0.25);
}

.tk-msg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tk-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.tk-msg-staff .tk-msg-avatar {
    background: linear-gradient(135deg, #57F287, #16a34a);
}

.tk-msg-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.tk-msg-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.tk-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 50px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--white2);
    font-family: var(--font-display);
    line-height: 1.4;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tk-role-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.tk-role-client { color: #57F287; border-color: rgba(87, 242, 135, 0.35); }
.tk-role-staff  { color: var(--accent); border-color: rgba(0, 119, 255, 0.35); }
.tk-role-system { color: var(--teal); border-color: rgba(20, 184, 166, 0.35); }

.tk-role-code-user   { color: #c0c0c0; border-color: var(--border2); }
.tk-role-code-seller { color: #57F287; border-color: rgba(87, 242, 135, 0.35); }
.tk-role-code-trader { color: #0077ff; border-color: rgba(0, 119, 255, 0.35); }
.tk-role-code-gen_dir { color: #ffd700; border-color: rgba(255, 215, 0, 0.5); background: rgba(255, 215, 0, 0.08); }
.tk-role-code-head_dev { color: #38ef7d; border-color: rgba(56, 239, 125, 0.5); background: rgba(56, 239, 125, 0.08); }

.tk-msg-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 46px;
}

@media (max-width: 560px) {
    .tk-msg-body { padding-left: 0; }
}

.tk-msg-text {
    font-size: 0.88rem;
    color: var(--white2);
    line-height: 1.65;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.tk-msg-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.tk-msg-date {
    font-size: 0.72rem;
    color: var(--white3);
    font-family: var(--font-mono);
}

.tk-msg-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--white3);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-family: var(--font-display);
    line-height: 1.4;
}

.tk-msg-action:hover { color: var(--accent); }
.tk-msg-action-danger:hover { color: #ff8080; }

.tk-reply {
    display: block;
    margin-top: 4px;
}

.tk-reply-box {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 8px 10px 8px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.tk-reply-box:focus-within { border-color: var(--accent); }

.tk-reply-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white3);
    padding-bottom: 12px;
    flex-shrink: 0;
}

.tk-reply-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    padding: 10px 0;
    resize: none;
    min-height: 42px;
    max-height: 200px;
    line-height: 1.5;
}

.tk-reply-input::placeholder { color: var(--white3); }

.tk-reply-attach,
.tk-reply-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tk-reply-attach {
    background: transparent;
    color: var(--white3);
}

.tk-reply-attach:hover {
    color: var(--white);
    background: var(--bg3);
}

.tk-reply-send {
    background: #16a34a;
    color: #fff;
}

.tk-reply-send:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.tk-closed-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg3);
    border: 1px dashed var(--border2);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--white3);
}

.tk-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 88px;
}

@media (max-width: 1000px) {
    .tk-aside { position: static; }
}

.tk-aside-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tk-aside-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tk-aside-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white2);
    flex-shrink: 0;
}

.tk-aside-header-text { min-width: 0; }

.tk-aside-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.tk-aside-status {
    font-size: 0.65rem;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-weight: 600;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.tk-aside-status-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .tk-aside-status-group {
        align-items: flex-start;
        grid-column: 1 / -1;
    }
}

.tk-aside-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.tk-aside-list li {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
}

.tk-aside-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--white3);
    flex-shrink: 0;
}

.tk-aside-label {
    color: var(--white3);
    min-width: 0;
    line-height: 1.4;
}

.tk-aside-value {
    color: var(--white);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.4;
}

.tk-aside-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--white2);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.tk-aside-close:hover {
    border-color: #ff8080;
    color: #ff8080;
    background: rgba(255, 59, 59, 0.05);
}

.tk-aside-close-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tk-msg-system .tk-msg-avatar {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
}

.tk-msg-system .tk-msg-author {
    color: #fff;
    font-weight: 600;
}

.tk-msg-avatar-system {
    background: linear-gradient(135deg, #5865F2, #7289DA) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.tk-msg-avatar-ic {
    display: block;
    stroke: #fff;
    stroke-width: 2;
}

.tk-msg-author-system {
    color: #7289DA !important;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tk-role-system {
    color: #9BA7F5 !important;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.35);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.tk-role-admin {
    color: #FF6B6B !important;
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid rgba(237, 66, 69, 0.4);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(237, 66, 69, 0.35);
}

.tk-role-admin .tk-role-dot {
    background: #ED4245 !important;
    box-shadow: 0 0 6px rgba(237, 66, 69, 0.8);
}

.tk-msg-staff .tk-msg-author-wrap .tk-role-admin ~ .tk-msg-author,
.tk-msg-staff .tk-msg-author:has(+ .tk-role-admin) {
    color: #FF8A8A !important;
}

.tk-msg-author-admin {
    color: #FF8A8A !important;
    font-weight: 700;
}

.tk-role-ic-system {
    display: inline-block;
    vertical-align: middle;
    stroke: #9BA7F5;
    margin-right: 2px;
}

.tk-msg-system .tk-msg-body {
    background: transparent;
    border: none;
    box-shadow: none;
}

.tk-msg-system::before { display: none; }

.tk-empty {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
}

.tk-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.tk-empty-text {
    font-size: 0.9rem;
    color: var(--white3);
}

.tk-priority-support {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    color: #57F287;
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.14), rgba(22, 163, 74, 0.08));
    border: 1px solid rgba(87, 242, 135, 0.45);
    box-shadow: 0 0 10px rgba(87, 242, 135, 0.2);
    line-height: 1.2;
    transition: box-shadow 0.2s;
}

.tk-priority-support:hover { box-shadow: 0 0 14px rgba(87, 242, 135, 0.35); }
.tk-priority-support svg { flex-shrink: 0; }

.tk-priority-support-sm {
    font-size: 0.6rem;
    padding: 3px 8px;
    gap: 4px;
}

/* ============================================
   ADMIN PANEL (ad-*)
   ============================================ */

.ad-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 900px) {
    .ad-wrap {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }
}

.ad-side {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 88px;
    align-self: flex-start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .ad-side {
        position: static;
        top: auto;
    }
}

.ad-side-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white3);
    padding: 4px 8px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ad-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
}

.ad-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--white3);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ad-nav-item:hover {
    background: var(--bg3);
    color: var(--white);
}

.ad-nav-item.active {
    background: rgba(0, 119, 255, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.ad-nav-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    font-size: 0.7rem;
    color: var(--accent);
    flex-shrink: 0;
}

.ad-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.ad-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1.2;
}

.ad-sub {
    font-size: 0.88rem;
    color: var(--white3);
    font-weight: 300;
}

.ad-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 8px;
    margin-bottom: 6px;
}

.ad-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.ad-stat {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
}

.ad-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white3);
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 6px;
}

.ad-stat-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.ad-stat-warn { color: var(--gold); }
.ad-stat-green { color: #57F287; }

.ad-table-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
}

.ad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ad-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white3);
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    white-space: nowrap;
}

.ad-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--white2);
    vertical-align: middle;
}

.ad-table tbody tr:last-child td { border-bottom: none; }
.ad-table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }

.ad-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ad-chip {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(0, 119, 255, 0.08);
    border: 1px solid rgba(0, 119, 255, 0.2);
    padding: 2px 8px;
    border-radius: 50px;
}

.ad-user-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ad-user-link:hover { color: var(--accent); }

.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.ad-btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.ad-btn-primary {
    background: var(--accent);
    color: #fff;
}

.ad-btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

.ad-btn-outline {
    background: transparent;
    border-color: var(--border2);
    color: var(--white2);
}

.ad-btn-outline:hover {
    border-color: var(--border3);
    color: #fff;
}

.ad-flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.ad-flash-success {
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.35);
    color: #57F287;
}

.ad-flash-error {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.35);
    color: #ff8080;
}

.ad-empty {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    color: var(--white3);
    font-size: 0.9rem;
}

.ad-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.ad-search-form input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg2);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.ad-search-form input:focus { border-color: var(--accent); }

.ad-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white3);
    margin-top: 6px;
}

.ad-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.ad-box-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white3);
    margin-bottom: 12px;
}

.ad-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
}

.ad-info-list li span { color: var(--white3); }

.ad-info-list li strong {
    color: var(--white);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.ad-ticket-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .ad-ticket-grid { grid-template-columns: 1fr; }
}

.ad-ticket-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-ticket-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 88px;
}

@media (max-width: 900px) {
    .ad-ticket-aside { position: static; }
}

.ad-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 720px) {
    .ad-user-grid { grid-template-columns: 1fr; }
}

.ad-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.ad-role-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.ad-role-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--white3);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============================================
   HIDE SCROLLBARS
   ============================================ */

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ad-wrap,
.ad-main,
.ad-side,
.ad-table-wrap,
.ad-ticket-chat,
body,
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ad-wrap::-webkit-scrollbar,
.ad-main::-webkit-scrollbar,
.ad-side::-webkit-scrollbar,
.ad-table-wrap::-webkit-scrollbar,
.ad-ticket-chat::-webkit-scrollbar,
body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ============================================
   CREATE TICKET (2 COLUMNS)
   ============================================ */

.tk-create-page {
    max-width: 1200px;
    margin: 0 auto;
}

.tk-create-head { margin-bottom: 24px; }

.tk-create-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: var(--white);
    letter-spacing: -0.5px;
}

.tk-create-sub {
    font-size: 14px;
    color: var(--white3);
}

.tk-create-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 1000px) {
    .tk-create-grid { grid-template-columns: 1fr; }
}

.tk-create-col-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tk-create-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.tk-alert-inline {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid;
}

.tk-alert-inline svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.tk-alert-inline .tk-alert-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.tk-alert-inline .tk-alert-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.tk-alert-warn {
    background: linear-gradient(135deg, rgba(237, 66, 69, 0.15), rgba(237, 66, 69, 0.05));
    border-color: rgba(237, 66, 69, 0.4);
    color: #ff9b9b;
}

.tk-alert-warn svg { stroke: #ed4245; }

.tk-alert-error {
    background: linear-gradient(135deg, rgba(237, 66, 69, 0.15), rgba(237, 66, 69, 0.05));
    border-color: rgba(237, 66, 69, 0.4);
    color: #ff9b9b;
}

.tk-create-page .tk-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white2);
    margin-bottom: 8px;
}

.tk-create-page .tk-label svg { opacity: 0.6; }

.tk-required {
    color: #ed4245;
    font-weight: 700;
}

.tk-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 700px) {
    .tk-row-2 { grid-template-columns: 1fr; }
}

.tk-create-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tk-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.tk-btn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #57f287;
    box-shadow: 0 0 8px rgba(87, 242, 135, 0.6);
}

.tk-btn-attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white2);
    transition: all 0.2s;
}

.tk-btn-attach:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tk-info-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.tk-info-card-image {
    display: block;
    position: relative;
}

.tk-info-card-image:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tk-info-card-img-wrap {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1a1f2e, #2a3142);
    overflow: hidden;
}

.tk-info-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tk-info-card-img-wrap.tk-info-card-img-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(88, 101, 242, 0.4), transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(237, 66, 69, 0.3), transparent 60%),
        linear-gradient(135deg, #1a1f2e, #2a3142);
}

.tk-info-card-body {
    padding: 16px 18px;
    position: relative;
}

.tk-info-card-arrow {
    position: absolute;
    top: -22px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tk-info-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 6px;
}

.tk-info-card-sub {
    font-size: 12px;
    color: var(--white3);
    font-family: var(--font-mono);
}

.tk-info-card-status {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    align-items: flex-start;
}

.tk-info-card-status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.15);
    color: #8b9aff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tk-info-card-status-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--white2);
}

.tk-info-card-status-text strong { color: #fff; }

/* ============================================
   INCIDENT BANNER
   ============================================ */

.tk-incident {
    background: linear-gradient(180deg, rgba(237, 66, 69, 0.14) 0%, rgba(237, 66, 69, 0.05) 100%);
    border: 1px solid rgba(237, 66, 69, 0.35);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.tk-incident-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.tk-incident-head:hover { background: rgba(237, 66, 69, 0.06); }

.tk-incident-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(237, 66, 69, 0.18);
    border: 1px solid rgba(237, 66, 69, 0.4);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tk-incident-head-text {
    flex: 1;
    min-width: 0;
}

.tk-incident-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1;
}

.tk-incident-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ff9b9b;
    background: rgba(237, 66, 69, 0.2);
    border: 1px solid rgba(237, 66, 69, 0.45);
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
}

.tk-incident-status {
    color: #ff9b9b;
    font-size: 12px;
    font-weight: 500;
}

.tk-incident-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffe0e0;
    margin: 4px 0 2px;
    line-height: 1.3;
}

.tk-incident-sub {
    font-size: 12px;
    color: #ff9b9b;
    opacity: 0.7;
    margin: 0;
    line-height: 1.4;
}

.tk-incident-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(237, 66, 69, 0.18);
    border: 1px solid rgba(237, 66, 69, 0.4);
    color: #ff9b9b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}

.tk-incident-toggle svg { transition: transform 0.3s ease; }
.tk-incident-open .tk-incident-toggle svg { transform: rotate(180deg); }

.tk-incident-toggle:hover {
    background: rgba(237, 66, 69, 0.3);
    color: #fff;
}

.tk-incident-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 22px;
}

.tk-incident-open .tk-incident-body {
    max-height: 600px;
    padding: 4px 22px 22px;
}

@media (hover: hover) {
    .tk-incident:hover .tk-incident-body {
        max-height: 600px;
        padding: 4px 22px 22px;
    }
}

.tk-incident-msg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(237, 66, 69, 0.05);
    border: 1px solid rgba(237, 66, 69, 0.15);
    margin-bottom: 8px;
}

.tk-incident-msg:last-child { margin-bottom: 0; }

.tk-incident-msg-info {
    background: rgba(237, 66, 69, 0.03);
    border-color: rgba(237, 66, 69, 0.1);
    opacity: 0.85;
}

.tk-incident-msg-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(237, 66, 69, 0.15);
    color: #ff9b9b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.tk-incident-msg-text {
    font-size: 13px;
    color: #ffdada;
    line-height: 1.55;
}

.tk-incident-msg-text strong {
    color: #fff;
    font-weight: 700;
}

.tk-incident-msg-info .tk-incident-msg-text {
    font-size: 12.5px;
    color: #ffb8b8;
}

.tk-incident-error {
    background: linear-gradient(180deg, rgba(237, 66, 69, 0.2) 0%, rgba(237, 66, 69, 0.08) 100%);
    border-color: rgba(237, 66, 69, 0.5);
}

/* ============================================
   JOBS (jb-*)
   ============================================ */

.jb-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

/* Hero */
.jb-hero {
    text-align: center;
    margin-bottom: 56px;
}

.jb-hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--white3);
    padding: 6px 14px;
    border: 1px solid var(--border2);
    border-radius: 50px;
    margin-bottom: 20px;
}

.jb-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--white);
}

.jb-hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.jb-hero-sub {
    font-size: 1.05rem;
    color: var(--white3);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.jb-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.jb-hero-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.jb-hero-num {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.jb-hero-label {
    font-size: 0.72rem;
    color: var(--white3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Filters */
.jb-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 28px;
}

.jb-search {
    flex: 1;
    min-width: 200px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.jb-search:focus { border-color: var(--accent); }

.jb-select {
    padding: 11px 32px 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 170px;
}

.jb-select:focus { border-color: var(--accent); }

.jb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.jb-btn-primary {
    background: var(--accent);
    color: #fff;
}

.jb-btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

.jb-btn-outline {
    background: transparent;
    border-color: var(--border2);
    color: var(--white2);
}

.jb-btn-outline:hover {
    border-color: var(--border3);
    color: #fff;
}

.jb-btn-applied {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.35);
    color: #57F287;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: default;
    white-space: nowrap;
}

/* Grid */
.jb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}

@media (max-width: 900px) {
    .jb-grid { grid-template-columns: 1fr; }
}

.jb-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.jb-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.jb-card-featured {
    background: linear-gradient(165deg, rgba(0, 119, 255, 0.06), var(--bg2) 60%);
    border-color: rgba(0, 119, 255, 0.35);
}

.jb-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
}

.jb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.jb-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.25);
    padding: 3px 10px;
    border-radius: 50px;
    line-height: 1.3;
}

.jb-chip-muted {
    color: var(--white3);
    background: var(--bg3);
    border-color: var(--border);
}

.jb-featured {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(230, 171, 99, 0.12);
    border: 1px solid rgba(230, 171, 99, 0.3);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    line-height: 1;
}

.jb-featured svg {
    flex-shrink: 0;
    color: var(--gold);
    filter: drop-shadow(0 0 4px rgba(230, 171, 99, 0.4));
    stroke: var(--gold);
}

.jb-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.jb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2px;
}

.jb-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--white3);
}

.jb-card-meta-item svg {
    flex-shrink: 0;
    color: var(--white3);
    opacity: 0.7;
}

.jb-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.jb-card-salary {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.jb-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--white3);
    transition: all 0.25s;
    flex-shrink: 0;
}

.jb-card:hover .jb-card-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateX(3px);
}

/* Empty */
.jb-empty {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 56px;
}

.jb-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--white3);
    margin-bottom: 20px;
}

.jb-empty-icon svg {
    stroke: var(--white3);
    opacity: 0.6;
}

.jb-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.jb-empty-text {
    font-size: 0.9rem;
    color: var(--white3);
}

.jb-empty-text a {
    color: var(--accent);
    text-decoration: none;
}

/* ============================================
   MESSAGES (ms-*)
   ============================================ */

.ms-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    width: 100%;
    flex: 1;
    height: calc(100vh - 64px);
    min-height: 500px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .ms-page {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Sidebar */
.ms-sidebar {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.ms-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.ms-sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
    margin: 0;
}

.ms-new-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    text-decoration: none;
}

.ms-new-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

.ms-sidebar-empty {
    padding: 60px 24px;
    text-align: center;
}

.ms-sidebar-empty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.ms-sidebar-empty-text {
    font-size: 0.82rem;
    color: var(--white3);
    line-height: 1.5;
}

.ms-conversations {
    overflow-y: auto;
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ms-conv {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    position: relative;
}

.ms-conv:hover {
    background: var(--bg3);
}

.ms-conv.active {
    background: rgba(0, 119, 255, 0.1);
}

.ms-conv.active .ms-conv-name {
    color: var(--accent);
}

.ms-conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ms-conv-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ms-conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ms-conv-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-conv-time {
    font-size: 0.7rem;
    color: var(--white3);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.ms-conv-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ms-conv-preview {
    font-size: 0.78rem;
    color: var(--white3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ms-conv-preview em {
    opacity: 0.6;
    font-style: italic;
}

.ms-conv-you {
    color: var(--white3);
    font-weight: 600;
}

.ms-conv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

/* Main chat */
.ms-main {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.ms-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.ms-chat-peer {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.ms-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ms-chat-peer-info {
    min-width: 0;
}

.ms-chat-peer-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-chat-peer-status {
    font-size: 0.72rem;
    color: var(--white3);
    margin-top: 2px;
}

.ms-chat-profile-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--white2);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ms-chat-profile-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ms-chat {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}

.ms-msg {
    display: flex;
    width: 100%;
}

.ms-msg-mine {
    justify-content: flex-end;
}

.ms-msg-their {
    justify-content: flex-start;
}

.ms-msg-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-wrap: break-word;
    position: relative;
}

.ms-msg-their .ms-msg-bubble {
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--white2);
    border-top-left-radius: 4px;
}

.ms-msg-mine .ms-msg-bubble {
    background: linear-gradient(135deg, var(--accent), #0060d0);
    color: #fff;
    border-top-right-radius: 4px;
}

.ms-msg-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.ms-msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 4px;
    font-size: 0.65rem;
    opacity: 0.75;
}

.ms-msg-time {
    font-family: var(--font-mono);
}

.ms-msg-status {
    font-size: 0.75rem;
    letter-spacing: -0.1em;
}

.ms-msg-status.read {
    opacity: 1;
    color: #57F287;
}

.ms-chat-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--white3);
    margin: auto;
}

.ms-chat-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--white3);
    margin-bottom: 16px;
    opacity: 0.6;
}

.ms-chat-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white2);
    margin-bottom: 6px;
}

.ms-chat-empty-text {
    font-size: 0.85rem;
}

.ms-reply {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
    flex-shrink: 0;
}

.ms-reply-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    min-height: 42px;
    max-height: 200px;
    line-height: 1.4;
}

.ms-reply-input:focus {
    border-color: var(--accent);
}

.ms-reply-input::placeholder {
    color: var(--white3);
}

.ms-reply-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.ms-reply-send:hover:not(:disabled) {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 119, 255, 0.4);
}

.ms-reply-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty state on main */
.ms-chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 60px 20px;
    color: var(--white3);
}

.ms-chat-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--white3);
    margin-bottom: 20px;
    opacity: 0.5;
}

.ms-chat-empty-state-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white2);
    margin-bottom: 8px;
}

.ms-chat-empty-state-text {
    font-size: 0.88rem;
    margin-bottom: 20px;
    max-width: 320px;
}

.ms-chat-empty-state-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.ms-chat-empty-state-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

/* Скрыть скроллбар в чате */
.ms-conversations::-webkit-scrollbar,
.ms-chat::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}
.ms-conversations,
.ms-chat {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ============================================
   USERS PAGE (us-*)
   ============================================ */

.us-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

.us-hero {
    text-align: center;
    margin-bottom: 48px;
}

.us-hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--white3);
    padding: 6px 14px;
    border: 1px solid var(--border2);
    border-radius: 50px;
    margin-bottom: 20px;
}

.us-hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--white);
}

.us-hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    margin-left: 12px;
}

.us-hero-sub {
    font-size: 1.05rem;
    color: var(--white3);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.us-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.us-hero-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.us-hero-num {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.us-hero-label {
    font-size: 0.72rem;
    color: var(--white3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Фильтры */
.us-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 28px;
    align-items: center;
}

.us-search {
    flex: 1;
    min-width: 220px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.us-search:focus { border-color: var(--accent); }

.us-select {
    padding: 11px 32px 11px 16px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 180px;
}

.us-select:focus { border-color: var(--accent); }

.us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.us-btn-primary {
    background: var(--accent);
    color: #fff;
}

.us-btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

.us-btn-outline {
    background: transparent;
    border-color: var(--border2);
    color: var(--white2);
}

.us-btn-outline:hover {
    border-color: var(--border3);
    color: #fff;
}

/* Сетка */
.us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.us-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.us-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
    opacity: 0;
    transition: opacity 0.25s;
}

.us-card:hover::before { opacity: 1; }

.us-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.us-card-body {
    min-width: 0;
    width: 100%;
}

.us-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.us-card-id {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--white3);
    margin-top: 3px;
}

.us-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    min-height: 22px;
}

.us-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.us-card-balance {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #57F287;
}

.us-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--white3);
    transition: all 0.25s;
    flex-shrink: 0;
}

.us-card:hover .us-card-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateX(3px);
}

/* Пусто */
.us-empty {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 32px;
}

.us-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--white3);
    margin-bottom: 20px;
}

.us-empty-icon svg { stroke: var(--white3); opacity: 0.6; }

.us-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.us-empty-text {
    font-size: 0.9rem;
    color: var(--white3);
}

.us-empty-text a {
    color: var(--accent);
    text-decoration: none;
}

.us-empty-text a:hover { text-decoration: underline; }

/* Пагинация */
.us-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.us-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--white2);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font-display);
}

.us-page-btn:hover:not(.disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.us-page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.us-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.us-page-dots {
    color: var(--white3);
    padding: 0 4px;
    font-size: 0.85rem;
}

/* Мобилка */
@media (max-width: 600px) {
    .us-page { padding: 24px 16px 60px; }
    .us-hero-stats { gap: 24px; }
    .us-hero-num { font-size: 1.4rem; }
    .us-filters { padding: 12px; }
    .us-search,
    .us-select { min-width: 100%; width: 100%; }
    .us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .us-card { padding: 14px 12px; }
    .us-card-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
    .us-card-name { font-size: 0.88rem; }
    .us-page-btn { min-width: 34px; height: 34px; padding: 0 10px; font-size: 0.78rem; }
}

@media (max-width: 380px) {
    .us-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .ms-page {
        padding: 16px 16px 60px;
    }
    .ms-sidebar {
        max-height: 320px;
    }
    .ms-main {
        min-height: 500px;
    }
    .ms-msg-bubble {
        max-width: 85%;
    }
}

.jb-empty-text a:hover { text-decoration: underline; }

/* Values */
.jb-values { margin-bottom: 56px; }

.jb-values-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-align: center;
}

.jb-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .jb-values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .jb-values-grid { grid-template-columns: 1fr; }
}

.jb-value {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
    transition: all 0.2s;
}

.jb-value:hover {
    border-color: var(--border3);
    transform: translateY(-2px);
}

.jb-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.12), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(0, 119, 255, 0.25);
    color: var(--accent);
    margin-bottom: 16px;
    transition: all 0.25s;
}

.jb-value-icon svg {
    display: block;
    stroke: var(--accent);
    transition: all 0.25s;
}

.jb-value:hover .jb-value-icon {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.2), rgba(139, 92, 246, 0.12));
    border-color: rgba(0, 119, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.2);
}

.jb-value:hover .jb-value-icon svg {
    stroke: var(--accent-hover);
    filter: drop-shadow(0 0 6px rgba(0, 119, 255, 0.4));
}

.jb-value:nth-child(1) .jb-value-icon {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.12), rgba(0, 119, 255, 0.03));
    border-color: rgba(0, 119, 255, 0.3);
}
.jb-value:nth-child(1) .jb-value-icon svg { stroke: var(--accent); }

.jb-value:nth-child(2) .jb-value-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(20, 184, 166, 0.03));
    border-color: rgba(20, 184, 166, 0.3);
}
.jb-value:nth-child(2) .jb-value-icon svg { stroke: var(--teal); }

.jb-value:nth-child(3) .jb-value-icon {
    background: linear-gradient(135deg, rgba(230, 171, 99, 0.12), rgba(230, 171, 99, 0.03));
    border-color: rgba(230, 171, 99, 0.35);
}
.jb-value:nth-child(3) .jb-value-icon svg { stroke: var(--gold); }

.jb-value:nth-child(4) .jb-value-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.03));
    border-color: rgba(139, 92, 246, 0.3);
}
.jb-value:nth-child(4) .jb-value-icon svg { stroke: var(--violet); }

.jb-value:nth-child(5) .jb-value-icon {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.12), rgba(255, 59, 59, 0.03));
    border-color: rgba(255, 59, 59, 0.3);
}
.jb-value:nth-child(5) .jb-value-icon svg { stroke: #ff6b6b; }

.jb-value:nth-child(6) .jb-value-icon {
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.12), rgba(87, 242, 135, 0.03));
    border-color: rgba(87, 242, 135, 0.3);
}
.jb-value:nth-child(6) .jb-value-icon svg { stroke: #57F287; }

.jb-value-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.jb-value-text {
    font-size: 0.88rem;
    color: var(--white3);
    line-height: 1.65;
}

/* FAQ */
.jb-faq {
    max-width: 860px;
    margin: 0 auto 56px;
}

.jb-faq-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-align: center;
}

.jb-faq-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.jb-faq-item[open] { border-color: var(--accent); }

.jb-faq-item summary {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    list-style: none;
    position: relative;
    padding-right: 32px;
}

.jb-faq-item summary::-webkit-details-marker { display: none; }

.jb-faq-item summary::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s;
    opacity: 0.6;
}

.jb-faq-item[open] summary::after { transform: rotate(180deg); }

.jb-faq-item > div {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--white3);
    line-height: 1.7;
}

/* CTA */
.jb-cta {
    background: linear-gradient(165deg, rgba(0, 119, 255, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 119, 255, 0.3);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
}

.jb-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.jb-cta-text {
    font-size: 1rem;
    color: var(--white3);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* Single job */
.jb-single {
    max-width: 860px;
    margin: 0 auto;
}

.jb-back {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--white3);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.jb-back:hover { color: var(--accent); }

.jb-single-head {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.jb-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.jb-single-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 12px;
}

.jb-single-sub {
    font-size: 1rem;
    color: var(--white3);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jb-single-sub .jb-salary {
    color: #57F287;
    font-family: var(--font-mono);
    font-weight: 700;
}

.jb-single-block { margin-bottom: 28px; }

.jb-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.jb-block-text {
    font-size: 0.95rem;
    color: var(--white2);
    line-height: 1.75;
}

.jb-single-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .jb-page { padding: 24px 16px 60px; }
    .jb-hero-stats { gap: 24px; }
    .jb-hero-num { font-size: 1.4rem; }
    .jb-filters { padding: 12px; }
    .jb-select,
    .jb-search { min-width: 100%; width: 100%; }
    .jb-faq-item { padding: 14px 16px; }
    .jb-cta { padding: 32px 20px; }
}

/* ============================================
   JOBS — МОДАЛЬНОЕ ОКНО ЗАЯВКИ
   ============================================ */

.jb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.jb-modal-overlay.active { display: flex; }

.jb-modal {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    max-width: 620px;
    width: 100%;
    padding: 28px;
    position: relative;
    animation: jbModalIn 0.25s ease;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    margin: auto;
}

@keyframes jbModalIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.jb-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    z-index: 2;
}

.jb-modal-close:hover {
    background: #0077ff;
    border-color: #0077ff;
    color: #fff;
}

.jb-modal-close svg { display: block; }

.jb-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.jb-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.15), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(0, 119, 255, 0.3);
    color: #0077ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jb-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.jb-modal-sub {
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
}

.jb-modal-sub strong {
    color: #f0f0f0;
    font-weight: 600;
}

.jb-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jb-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .jb-modal-row { grid-template-columns: 1fr; }
}

.jb-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jb-modal-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c0c0c0;
    line-height: 1.4;
}

.jb-required {
    color: #ed4245;
    font-weight: 700;
}

.jb-modal-field input,
.jb-modal-field textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0a0a0a;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    box-sizing: border-box;
}

.jb-modal-field input:focus,
.jb-modal-field textarea:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

.jb-modal-field input::placeholder,
.jb-modal-field textarea::placeholder {
    color: #555;
}

.jb-modal-error {
    font-size: 0.72rem;
    color: #ff8080;
    min-height: 14px;
    line-height: 1.3;
}

.jb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
    flex-wrap: wrap;
}

.jb-modal-footer .jb-btn {
    padding: 11px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jb-modal-footer .jb-btn-primary {
    background: #0077ff;
    color: #fff;
}

.jb-modal-footer .jb-btn-primary:hover:not(:disabled) {
    background: #004cff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

.jb-modal-footer .jb-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.jb-modal-footer .jb-btn-outline {
    background: transparent;
    border-color: #333;
    color: #c0c0c0;
}

.jb-modal-footer .jb-btn-outline:hover {
    border-color: #555;
    color: #fff;
}

.jb-modal-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 4px;
}

.jb-modal-alert-success {
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.35);
    color: #57F287;
}

.jb-modal-alert-error {
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.35);
    color: #ff8080;
}

.jb-modal::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

@media (max-width: 600px) {
    .jb-modal-overlay {
        padding: 12px;
        align-items: flex-start;
    }
    .jb-modal {
        padding: 20px;
        border-radius: 14px;
        margin-top: 12px;
    }
    .jb-modal-head {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }
    .jb-modal-icon {
        width: 40px;
        height: 40px;
    }
    .jb-modal-title { font-size: 1.1rem; }
    .jb-modal-footer { flex-direction: column-reverse; }
    .jb-modal-footer .jb-btn { width: 100%; justify-content: center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 800px) {
    .op-table thead th {
        padding: 12px 10px;
        font-size: 0.68rem;
    }
    .op-table tbody td {
        padding: 12px 10px;
        font-size: 0.8rem;
    }
    .op-col-date,
    .op-col-order,
    .op-col-seller,
    .op-col-status,
    .op-col-total { width: auto; }
    .op-col-desc { min-width: 180px; }
    .op-seller-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 700px) {
    .fw-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .fw-actions { width: 100%; }
    .fw-actions .fw-btn { flex: 1; }
    .fw-table thead th,
    .fw-table tbody td {
        padding: 12px 10px;
        font-size: 0.78rem;
    }
    .fw-col-date,
    .fw-col-type,
    .fw-col-status,
    .fw-col-amount { width: auto; }
    .fw-col-desc { min-width: 160px; }
}

@media (max-width: 560px) {
    .tk-page { padding: 24px 16px 60px; }
    .tk-title { font-size: 1.5rem; }
    .tk-form { padding: 20px 16px; }
    .tk-aside-header { grid-template-columns: 40px 1fr; }
    .tk-aside-status {
        grid-column: 1 / -1;
        justify-self: start;
    }
    .op-page { padding: 24px 16px 60px; }
    .op-title { font-size: 1.5rem; }
    .op-table { font-size: 0.78rem; }
    .op-desc-text { display: none; }
    .tk-incident-head { padding: 14px 16px; gap: 12px; }
    .tk-incident-icon { width: 34px; height: 34px; }
    .tk-incident-title { font-size: 14px; }
    .tk-incident-sub { display: none; }
    .tk-incident-open .tk-incident-body,
    .tk-incident:hover .tk-incident-body { padding: 2px 16px 16px; }
    .tk-incident-toggle { width: 30px; height: 30px; }
}

@media (max-width: 480px) {
    .fw-page { padding: 24px 16px 60px; }
    .fw-title { font-size: 1.5rem; }
    .fw-cards { grid-template-columns: 1fr 1fr; }
    .fw-card { padding: 16px; }
    .fw-card-value { font-size: 1.25rem; }
    .hero .stats { gap: 16px; }
    .cta .btn-group { flex-direction: column; align-items: center; }
    .app-buttons { flex-direction: column; width: 100%; }
    .app-buttons .btn-outline { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .period-selector .period-btn { font-size: 0.65rem; padding: 4px 10px; }
    .period-selector .period-btn .discount-badge {
        font-size: 0.5rem;
        top: -6px;
        right: -6px;
    }
    .sub-card { padding: 20px 16px; }
    .sub-card .sub-price { font-size: 1.4rem; }
    .info-block .info-header { flex-direction: column; }
    .panel-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
    .login-hero h1 { font-size: 1.8rem; }
    .register-card { padding: 24px 20px; }
    .register-hero h1 { font-size: 1.8rem; }
    .rf-role { padding: 12px 10px; }
}

@media (min-width: 480px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .subscriptions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .faq-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .subscriptions-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 1280px) {
    .subscriptions-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}