/* ================= ПЕРЕМЕННЫЕ ================= */
:root {
    --bg: #07070f;
    --panel: rgba(18, 18, 32, 0.86);
    --panel-light: rgba(28, 28, 48, 0.92);
    --border: rgba(255, 255, 255, 0.09);

    --text: #ffffff;
    --muted: #a7a7c2;

    --purple: #8b5cf6;
    --pink: #ec4899;
    --blue: #38bdf8;
    --green: #22c55e;
    --gold: #f59e0b;
    --red: #ef4444;

    --shadow-purple: 0 0 45px rgba(139, 92, 246, 0.35);
    --shadow-blue: 0 0 45px rgba(56, 189, 248, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.22), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.16), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.12), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================= ФОН ================= */
.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
    z-index: -3;
}

.background-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -2;
}

.glow-one {
    top: 120px;
    left: -140px;
    background: var(--purple);
}

.glow-two {
    right: -120px;
    bottom: 80px;
    background: var(--blue);
}

/* ================= HEADER ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 78px;
    padding: 16px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 7, 15, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: var(--shadow-purple);
}

.brand-title {
    font-size: 18px;
    font-weight: 900;
}

.brand-subtitle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a {
    transition: 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* ================= HERO ================= */
.hero {
    padding: 90px 7% 55px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 54px;
    align-items: center;
}

.hero-badge {
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #d7d7ff;
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ================= TRUST BLOCK ================= */
.trust-block {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-item {
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #b6ffcf;
    font-size: 13px;
    font-weight: 900;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid var(--border);
    transition: 0.22s;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: var(--shadow-purple);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #dfdfff;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn.full {
    width: 100%;
    border: none;
    font-size: 16px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #ffaaaa;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.26);
}

/* ================= SERVER CARD ================= */
.hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
}

.server-panel {
    width: min(560px, 100%);
    padding: 26px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 84% 18%, rgba(34, 197, 94, 0.14), transparent 30%),
        radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.14), transparent 34%),
        linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-blue);

    animation: server-card-float 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes server-card-float {
    0% {
        transform: rotate(1.2deg) translateY(0);
    }

    50% {
        transform: rotate(-1.2deg) translateY(-8px);
    }

    100% {
        transform: rotate(1.2deg) translateY(0);
    }
}

.latest-purchases {
    width: min(560px, 100%);
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
    border: 1px solid var(--border);
    box-shadow: 0 20px 70px rgba(56, 189, 248, 0.12);
}

.latest-purchases-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.latest-purchases-header h2 {
    margin: 0;
    font-size: 22px;
}

.latest-purchases-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.latest-purchases-list {
    display: grid;
    gap: 10px;
}

.latest-purchase-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.075);
}

.latest-purchase-item img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    image-rendering: pixelated;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.latest-purchase-info {
    min-width: 0;
}

.latest-purchase-info strong,
.latest-purchase-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-purchase-info strong {
    color: white;
    font-size: 14px;
}

.latest-purchase-info span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.server-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.server-panel-top strong,
.server-label {
    display: block;
}

.server-panel-top strong {
    margin-top: 4px;
    font-size: 20px;
}

.server-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.server-status {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.10);
    color: #b6ffcf;
    font-weight: 900;
    white-space: nowrap;
}

.server-status:has(.status-dot.offline) {
    background: rgba(239, 68, 68, 0.10);
    color: #ffb4b4;
}

.status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 18px var(--green);
}

.status-dot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.55);
    animation: online-pulse 1.6s infinite;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.25);
    filter: blur(10px);
    animation: online-glow 2s infinite alternate;
}

.status-dot.offline {
    background: var(--red);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.65);
}

.status-dot.offline::before {
    display: block;
    background: rgba(239, 68, 68, 0.55);
    animation: offline-pulse 1.6s infinite;
}

.status-dot.offline::after {
    display: block;
    background: rgba(239, 68, 68, 0.25);
    animation: offline-glow 2s infinite alternate;
}

@keyframes online-pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes online-glow {
    from { opacity: 0.25; }
    to { opacity: 0.85; }
}

@keyframes offline-pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes offline-glow {
    from { opacity: 0.25; }
    to { opacity: 0.85; }
}

.server-ip-card {
    padding: 18px;
    border-radius: 24px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.08);
}

.server-ip-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.server-stats div {
    min-width: 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.075);
}

.server-stats strong {
    display: block;
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.2;
    word-break: break-word;
}

.server-stats span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.server-ip-block {
    margin-top: 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.server-ip-block h2 {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(24px, 2.25vw, 34px);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.play-button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: none;
    font-weight: 900;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--green), var(--blue));
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
    transition: 0.2s;
}

.server-copy-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.play-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.55);
}

.copy-hint {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #9dffba;
}

.copy-hint.show {
    display: block;
    animation: copyFade 0.25s ease;
}

@keyframes copyFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= SECTIONS ================= */
.section {
    padding: 55px 7%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 26px;
}

.section-header h1,
.section-header h2 {
    margin: 0;
    font-size: 36px;
}

.section-header p {
    color: var(--muted);
    margin: 8px 0 0;
}

/* ================= CATEGORIES ================= */
.categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.category {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.055);
    color: var(--muted);
    transition: 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.category:hover,
.category.active {
    color: white;
    background: linear-gradient(135deg, rgba(139,92,246,0.7), rgba(56,189,248,0.55));
}

/* ================= PRODUCTS ================= */
.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.product-section-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 -2px;
    color: white;
    font-size: 30px;
    line-height: 1.1;
}

.product-section-title:first-child {
    margin-top: 0;
}

.product-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.55), transparent);
}

.product-section-title.hidden {
    display: none;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 620px;
    padding: 24px;
    border-radius: 26px;
    background: var(--panel);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.25s;
}

.product-card.compact {
    height: 360px;
}

.product-card::before {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.5;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-purple);
}

.product-purple::before { background: var(--purple); }
.product-blue::before { background: var(--blue); }
.product-gold::before { background: var(--gold); }
.product-pink::before { background: var(--pink); }
.product-green::before { background: var(--green); }
.product-red::before { background: var(--red); }

.popular-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;

    padding: 8px 12px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(245, 158, 11, 0.22),
            rgba(236, 72, 153, 0.18)
        );

    border: 1px solid rgba(245, 158, 11, 0.35);

    color: #ffd27a;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 18px rgba(245, 158, 11, 0.18),
        inset 0 0 12px rgba(255,255,255,0.04);
}

.product-card.compact .popular-badge {
    top: 14px;
    right: 14px;
    font-size: 11px;
    padding: 7px 10px;
}

.product-top {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.product-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
}

.product-icon img {
    width: 32px;
    height: 32px;

    max-width: 32px;
    max-height: 32px;

    object-fit: contain;

    border-radius: 8px;

    display: block;
}

.product-card h3 {
    margin: 0;
    font-size: 24px;
}

.product-top span {
    color: var(--muted);
    font-size: 13px;
}

/* ================= DESCRIPTION ================= */
.product-description {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 0 18px;
    padding-right: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.65;
}

.product-description::-webkit-scrollbar {
    width: 6px;
}

.product-description::-webkit-scrollbar-track {
    background: transparent;
}

.product-description::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.72);
    border-radius: 999px;
}

.product-description p,
.product-description div {
    margin: 0 0 13px;
    padding: 0;
}

.product-description ul,
.product-description ol {
    margin: 8px 0 8px 22px;
    padding-left: 0;
}

.product-description li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.product-card.hidden {
    display: none;
}

/* ================= BOTTOM ================= */
.product-bottom {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    margin-top: auto;
}

.product-extra-info {
    position: relative;
    width: 100%;
    min-height: 58px;
    margin: 0 0 22px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.13),
        rgba(139, 92, 246, 0.12)
    );
    border: 1px solid rgba(56, 189, 248, 0.32);
    overflow: hidden;
}

.product-extra-info small {
    position: relative;
    z-index: 1;
    display: block;
    color: #d8f7ff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
}

.price-row {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.old-price {
    display: block;
    color: #777895;
    text-decoration: line-through;
}

.price {
    font-size: 30px;
    font-weight: 900;
}

.buy-button {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 14px;
    background: white;
    color: #111;
    font-weight: 900;
    transition: 0.2s;
    white-space: nowrap;
}

.buy-button:hover {
    transform: scale(1.06);
}

/* ================= ADVANTAGES ================= */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.advantage-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 26px;
}

.advantage-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    font-size: 26px;
}

.advantage-card h3 {
    margin-bottom: 8px;
}

.advantage-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* ================= PAGES ================= */
.buy-page,
.success-page,
.admin-page,
.rules-page {
    padding: 70px 7%;
}

.buy-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    max-width: 1050px;
    margin: 0 auto;
}

.buy-preview {
    position: relative;
    padding: 34px;
    border-radius: 30px;
    background: var(--panel);
    border: 1px solid var(--border);
    overflow: hidden;
}

.buy-preview::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(55px);
    opacity: 0.55;
}

.buy-preview h1 {
    font-size: 46px;
    margin: 24px 0 12px;
}

.buy-preview p {
    color: var(--muted);
    line-height: 1.7;
}

.buy-price {
    margin-top: 28px;
}

.buy-price span {
    color: #777895;
    text-decoration: line-through;
    display: block;
}

.buy-price strong {
    font-size: 42px;
}

.buy-form-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 26px;
}

.buy-form-card h2 {
    margin-top: 0;
    font-size: 32px;
}

form {
    margin-top: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
}

input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    background: rgba(255,255,255,0.065);
    color: white;
    outline: none;
    font-size: 16px;
}

input[type="file"] {
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    padding: 11px 16px;
    line-height: 1;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    height: 32px;
    margin: 0 12px 0 0;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.10);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

input[type="file"]:hover::file-selector-button {
    background: rgba(255,255,255,0.16);
}

input:focus {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.form-hint {
    margin: 10px 0 22px;
    font-size: 13px;
    color: var(--muted);
}

.alert-error {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #ffb4b4;
    margin-top: 18px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--muted);
}

/* ================= PAYMENT BOXES ================= */
.payment-security-box {
    margin: 18px 0 22px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.security-item {
    color: #c7ffd8;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 9px;
}

.security-item:last-child {
    margin-bottom: 0;
}

.refund-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.refund-box h3 {
    margin: 0 0 10px;
    color: #ffd27a;
}

.refund-box p,
.refund-box li {
    color: var(--muted);
    line-height: 1.6;
}

.refund-box ul {
    margin: 10px 0;
    padding-left: 22px;
}

/* ================= ЮРИДИЧЕСКИЕ ССЫЛКИ ================= */
.legal-link {
    color: var(--purple);
    text-decoration: underline;
    transition: 0.2s;
}

.legal-link:hover {
    color: var(--blue);
    text-decoration: none;
}

/* ================= LEGAL PAGES ================= */
.legal-header {
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
}

.legal-badge {
    width: fit-content;
    margin: 0 auto 16px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #c8f3ff;
    font-size: 13px;
    font-weight: 900;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.legal-header h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -1.5px;
}

.legal-header p {
    color: var(--muted);
    line-height: 1.7;
}

.legal-card {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 30px;
    border-radius: 30px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-blue);
}

.legal-card .resource-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    font-size: 28px;
}

.legal-card h2 {
    margin: 0 0 18px;
    font-size: 32px;
}

.legal-card .page-body {
    color: #dedfff;
}

.legal-card .page-body h2,
.legal-card .page-body h3 {
    color: white;
}

.legal-card .page-body p,
.legal-card .page-body li {
    color: var(--muted);
    line-height: 1.75;
}

.legal-card .page-body ul,
.legal-card .page-body ol {
    padding-left: 22px;
}

.legal-info-grid {
    max-width: 1000px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.legal-info-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border);
}

.legal-info-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    font-size: 24px;
}

.legal-info-card h3 {
    margin: 14px 0 8px;
}

.legal-info-card p {
    color: var(--muted);
    line-height: 1.6;
}

.legal-footer-box {
    max-width: 1000px;
    margin: 24px auto 0;
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: var(--muted);
    line-height: 1.6;
}

.legal-footer-box strong,
.legal-footer-box a {
    color: white;
}

/* ================= SUCCESS / FAIL ================= */
.success-page {
    min-height: 65vh;
    display: grid;
    place-items: center;
}

.success-card {
    width: min(720px, 100%);
    max-width: 720px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 32px;
    box-shadow: var(--shadow-purple);
}

.success-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.18);
    color: #8affad;
    border: 1px solid rgba(34, 197, 94, 0.35);
    font-size: 44px;
    font-weight: 900;
}

.success-card h1 {
    font-size: 38px;
    margin: 0 0 14px;
}

.success-card p {
    color: var(--muted);
    line-height: 1.7;
}

.success-description {
    font-size: 18px;
}

.success-info {
    margin: 24px 0;
    display: grid;
    gap: 12px;
}

.success-info-item {
    padding: 14px 16px;
    border-radius: 16px;
    text-align: left;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border);
    color: #e7e7ff;
    font-weight: 800;
}

.support-box {
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.support-box h3 {
    margin: 0 0 10px;
}

.support-contacts {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    color: #c8f3ff;
    font-weight: 900;
}

.success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.success-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.payment-fail-card {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 45px rgba(239, 68, 68, 0.18);
}

.payment-fail-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #ffaaaa;
    border-color: rgba(239, 68, 68, 0.35);
}

/* ================= ERROR PAGE ================= */
.error-page {
    min-height: 70vh;
    padding: 70px 7%;
    display: grid;
    place-items: center;
}

.error-wrapper {
    width: min(680px, 100%);
    text-align: center;
    padding: 34px;
    border-radius: 30px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-purple);
}

.error-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    font-size: 38px;
}

.error-title {
    margin: 0 0 12px;
    font-size: 40px;
}

.error-description {
    color: var(--muted);
    line-height: 1.7;
}

.error-info {
    margin: 24px 0;
    display: grid;
    gap: 12px;
}

.error-info-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border);
    color: #e7e7ff;
    font-weight: 800;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.error-support {
    margin-top: 24px;
    color: var(--muted);
    line-height: 1.6;
}

/* ================= ADMIN ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 26px;
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 34px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 100px;
    padding: 18px;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
}

.admin-sidebar-link {
    display: flex;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 16px;
    color: var(--muted);
    font-weight: 900;
    transition: 0.2s;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(139,92,246,0.55), rgba(56,189,248,0.35));
}

.admin-sidebar-link.danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ffaaaa;
}

.admin-content {
    min-width: 0;
}

.admin-table-card {
    max-width: 100%;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 26px;
}

.admin-table-card h2 {
    margin-top: 0;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table-card table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
}

th,
td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

th {
    color: #dadaff;
    font-size: 13px;
    text-transform: uppercase;
}

td {
    color: #ededff;
}

.admin-table-card th,
.admin-table-card td {
    vertical-align: middle;
    white-space: normal;
}

.admin-table-card td:nth-child(1),
.admin-table-card th:nth-child(1) {
    width: 90px;
}

.admin-table-card td:nth-child(2),
.admin-table-card th:nth-child(2) {
    width: 80px;
    text-align: center;
}

.admin-table-card td:nth-child(3),
.admin-table-card th:nth-child(3) {
    width: 150px;
}

.admin-table-card td:nth-child(4),
.admin-table-card th:nth-child(4) {
    width: 110px;
}

.admin-table-card td:nth-child(5),
.admin-table-card th:nth-child(5) {
    width: 90px;
}

.admin-table-card td:nth-child(6),
.admin-table-card th:nth-child(6) {
    width: 240px;
    word-break: break-word;
}

.admin-table-card td:nth-child(7),
.admin-table-card th:nth-child(7) {
    width: 100px;
}

.admin-table-card td:nth-child(8),
.admin-table-card th:nth-child(8) {
    width: 120px;
}

.admin-table-card td:nth-child(9),
.admin-table-card th:nth-child(9) {
    width: 220px;
}

.status {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-paid {
    background: rgba(34, 197, 94, 0.16);
    color: #8affad;
}

.status-created {
    background: rgba(245, 158, 11, 0.16);
    color: #ffd27a;
}

.status-error {
    background: rgba(239, 68, 68, 0.16);
    color: #ffaaaa;
}

.admin-table-card .form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.admin-table-card .form-inline form {
    margin: 0;
}

.admin-table-card .btn {
    min-height: 44px;
    padding: 0 18px;
    white-space: nowrap;
}

.admin-users-card {
    overflow: visible;
}

.admin-users-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.45fr) auto;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-user-row.is-blocked {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.055);
}

.admin-user-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.admin-user-id code {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.22);
    color: #dadaff;
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-ip {
    color: white;
    font-weight: 900;
    word-break: break-word;
}

.admin-user-meta {
    min-width: 0;
    display: grid;
    grid-template-columns: 90px minmax(150px, 1fr) minmax(150px, 1fr);
    gap: 10px;
}

.admin-user-stat {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.065);
}

.admin-user-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.admin-user-stat strong {
    display: block;
    margin-top: 6px;
    color: #f3f3ff;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.admin-user-agent {
    grid-column: 1 / -1;
    min-width: 0;
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.065);
    color: var(--muted);
}

.admin-user-agent summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #dadaff;
    font-weight: 900;
    cursor: pointer;
}

.admin-user-agent div {
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.admin-user-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-table-card .admin-user-actions form {
    margin: 0;
    display: block;
}

.admin-table-card .admin-user-actions .btn {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
}

.admin-users-empty {
    padding: 18px;
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-nav-create {
    display: grid;
    gap: 14px;
}

.admin-nav-type {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-nav-type label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    color: #dadaff;
    cursor: pointer;
}

.admin-nav-type input {
    width: 16px;
    height: 16px;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(220px, 1fr) 120px;
    gap: 12px;
}

.admin-nav-page-content {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.065);
    color: white;
    outline: none;
    font-size: 16px;
    font-family: inherit;
}

.admin-nav-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-nav-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-nav-id code {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.22);
    color: #dadaff;
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-table-card .admin-nav-edit {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr) 110px auto auto;
    gap: 10px;
    align-items: center;
}

.admin-nav-actions {
    grid-column: 2;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-table-card .admin-nav-actions form {
    margin: 0;
    display: block;
}

.admin-table-card .admin-nav-actions .btn,
.admin-nav-actions .btn {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
}

/* ================= LOGIN ================= */
.login-page {
    min-height: 70vh;
    padding: 80px 7%;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(460px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 26px;
    box-shadow: var(--shadow-purple);
}

.login-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    font-size: 32px;
    margin-bottom: 20px;
}

.login-card h1 {
    margin: 0;
    font-size: 36px;
}

.login-card p {
    color: var(--muted);
    line-height: 1.6;
}

.login-card label {
    margin-top: 18px;
}

.login-card .btn.full {
    margin-top: 22px;
}

.login-card input {
    margin-bottom: 16px;
}

/* ================= RULES ================= */
.rules-page .section-header {
    max-width: 1180px;
    margin: 0 auto 24px;
}

.rules-notice {
    max-width: 1180px;
    margin: 0 auto 28px;
    padding: 22px 24px;
    display: grid;
    gap: 10px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(56, 189, 248, 0.07)),
        rgba(255,255,255,0.035);
    border: 1px solid rgba(139, 92, 246, 0.24);
    color: var(--muted);
    line-height: 1.65;
}

.rules-notice strong {
    color: white;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}

.rule-card {
    position: relative;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025)),
        var(--panel);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 40px rgba(0,0,0,0.16);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.rule-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 3px solid rgba(56, 189, 248, 0.55);
    pointer-events: none;
}

.rule-card-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.rule-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.rule-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.86), rgba(56, 189, 248, 0.72));
    color: white;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.18);
}

.rule-card h3 {
    min-width: 0;
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    word-break: break-word;
}

.rule-description {
    max-width: 820px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.rule-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.rule-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.rule-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rule-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 0;
    padding: 0 8px;
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: #c8f3ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.rule-item-body {
    display: block;
    min-width: 0;
}

.rule-item-text {
    display: block;
    color: #d6d7ef;
    white-space: pre-line;
}

.rule-item-extra {
    display: block;
    margin-top: 7px;
    color: #aeb0cf;
    font-size: 13px;
    line-height: 1.55;
}

.rules-info-grid {
    margin-top: 28px;
}

/* ================= RESOURCES ================= */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.resource-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    transition: 0.25s;
}

.resource-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    transform: translateX(6px);
}

.resource-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.resource-text h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 600;
}

.resource-text p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.95rem;
}

.page-single {
    padding: 50px 7% 40px;
}

.page-body {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

.page-body p {
    margin-bottom: 16px;
}

/* ================= FOOTER ================= */
.footer {
    margin-top: auto;
    padding: 22px 7%;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    background: rgba(7, 7, 15, 0.58);
    backdrop-filter: blur(16px);
}

.footer strong {
    color: white;
    margin-right: 8px;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
    font-size: 13px;
    color: #888aa7;
    line-height: 1.6;
}

.footer-right {
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
    color: #a7a7c2;
}

.footer-status {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #b6ffcf;
}

.footer-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
}

.footer-links {
    color: var(--muted);
    font-size: 13px;
    background: rgba(7, 7, 15, 0.58);
}

.footer-links a {
    color: #dadaff;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ================= ANIMATIONS ================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: 0.5s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FORM ELEMENTS ================= */
.input-select,
.input-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    background: rgba(255,255,255,0.065);
    color: white;
    outline: none;
    font-size: 16px;
    margin-bottom: 16px;
}

.input-select {
    height: 54px;
}

.input-select option {
    background: #121220;
    color: white;
}

.input-textarea {
    min-height: 120px;
    padding-top: 14px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.editor-toolbar button,
.editor-toolbar input[type="color"] {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    color: white;
    cursor: pointer;
}

.editor-toolbar input[type="color"] {
    width: 46px;
    padding: 4px;
}

.editor {
    min-height: 140px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: white;
    outline: none;
    margin-bottom: 16px;
    line-height: 1.6;
}

.editor:focus {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 9999;
    padding: 14px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: white;
    font-weight: 900;
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(24px) scale(0.96);
    transition: 0.35s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.form-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-inline .btn {
    margin-top: 4px;
}

.admin-table-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-table-card .admin-order-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px auto auto;
    gap: 12px;
    align-items: center;
    margin: 18px 0 22px;
}

.admin-table-card .admin-order-filters input {
    min-width: 0;
}

.admin-table-card .admin-order-filters .btn {
    width: auto;
    min-height: 54px;
    margin-top: 0;
}

.admin-table-card textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.065);
    color: white;
    outline: none;
    font-size: 16px;
    font-family: inherit;
}

.admin-table-card textarea:focus {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.admin-table-card form .btn {
    width: fit-content;
    margin-top: 4px;
}

.admin-product-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 22px;
    font-weight: 900;
}

.admin-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= FIX BUY EXTRA INFO ================= */

.buy-preview .product-extra-info {
    margin: 24px 0 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    min-height: auto;
}

.buy-preview .product-extra-info .info-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #dff7ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    word-break: normal;
}

.buy-preview .product-extra-info .info-line::first-letter {
    color: #22c55e;
}

.buy-preview .product-extra-info::before {
    display: none;
}

/* ================= PROTECTION ================= */
#protection-message {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 99999;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(18, 18, 32, 0.96);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: white;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.35);
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

#protection-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#devtools-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.2), transparent 40%),
        rgba(7, 7, 15, 0.98);
    backdrop-filter: blur(18px);
}

#devtools-overlay.show {
    display: flex;
}

.devtools-box {
    max-width: 520px;
    padding: 34px;
    border-radius: 28px;
    text-align: center;
    background: rgba(18, 18, 32, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.35);
}

.devtools-icon {
    font-size: 54px;
    margin-bottom: 14px;
}

.devtools-box h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

.devtools-box p {
    color: #a7a7c2;
    line-height: 1.7;
}

.devtools-box button {
    margin-top: 18px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #8b5cf6, #38bdf8);
}

/* ================= NAV SELECTS ================= */

.currency-select {
    height: 42px;

    padding: 0 14px;

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.10);

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.16),
            rgba(56, 189, 248, 0.12)
        );

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    outline: none;

    cursor: pointer;

    transition: 0.22s ease;

    backdrop-filter: blur(12px);

    box-shadow:
        0 0 18px rgba(139, 92, 246, 0.10);

    appearance: none;

    min-width: 125px;
}

.currency-select:hover {
    border-color: rgba(139, 92, 246, 0.45);

    box-shadow:
        0 0 22px rgba(139, 92, 246, 0.18);

    transform: translateY(-1px);
}

.currency-select:focus {
    border-color: rgba(56, 189, 248, 0.55);

    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.12);
}

.currency-select option {
    background: #121220;
    color: #ffffff;
}

/* ================= NAVBAR FIX ================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.product-card .product-top .product-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex: 0 0 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-size: 20px !important;
}

.product-card .product-top .product-icon img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    image-rendering: auto;
    display: block !important;
}
