/* RedRoom global theme — market look on every page:
   visible BG image, side red glow, dark-red center fill */

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

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

body {
    background-color: #050505;
    background-image: url('/static/horror_bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #e8e8e8;
    font-family: 'Fira Mono', 'Courier New', monospace;
    padding: 30px 20px;
    line-height: 1.7;
    position: relative;
}

/* Payment + recharge — solid black, no background image */
body.page-solid-dark {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
}

body.page-solid-dark::before {
    display: none !important;
}

/* Scanlines + light veil — BG image stays visible on sides */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.10),
            rgba(0, 0, 0, 0.10) 1px,
            transparent 1px,
            transparent 2px
        ),
        rgba(5, 3, 7, 0.38);
    pointer-events: none;
    z-index: 0;
}

/* Side glow + dark-red center fill (market panel look) */
.container,
.wrap,
.login-container,
.register-container,
.fp-card,
.dispute-container,
.profile-box,
.details-container,
.seller-box,
.become-box {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(15, 5, 12, 0.95) 0%, rgba(25, 8, 18, 0.95) 100%);
    border: 2px solid #d90429;
    box-shadow:
        0 0 30px #d90429,
        0 0 60px rgba(255, 32, 82, 0.3),
        inset 0 0 40px rgba(217, 4, 41, 0.12);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 2px;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Cards inside wrap (recharge / payment) get the panel look */
.wrap .card,
.wrap .topbar,
.payment-card,
.card {
    background: linear-gradient(135deg, rgba(15, 5, 12, 0.96) 0%, rgba(28, 8, 18, 0.96) 100%) !important;
    border: 2px solid #d90429 !important;
    box-shadow:
        0 0 24px rgba(217, 4, 41, 0.45),
        0 0 48px rgba(255, 32, 82, 0.2),
        inset 0 0 30px rgba(217, 4, 41, 0.1) !important;
}

.login-container,
.register-container,
.fp-card {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    padding: 44px 36px 32px;
    border-radius: 10px;
}

.register-container { max-width: 540px; }

.help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 4px 8px;
    background: none;
    color: #ff2052;
    text-decoration: none;
    border: 1px solid #ff2052;
    font-size: 0.85em;
    font-weight: 700;
    font-family: 'Fira Mono', monospace;
    z-index: 9999;
    cursor: pointer;
}
.help-btn:hover {
    color: #fff;
    background: #ff2052;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 900;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 2.5em;
    color: #ff2052;
    text-shadow: 0 0 15px #d90429, 0 0 30px #ff2052, 0 0 45px rgba(217, 4, 41, 0.5);
    border-bottom: 3px solid #d90429;
    padding-bottom: 15px;
    margin-bottom: 30px;
    animation: glitch-intense 2s infinite linear;
}

h2 {
    font-size: 1.8em;
    color: #d90429;
    text-shadow: 0 0 10px #ff2052;
    border-left: 4px solid #ff2052;
    padding-left: 15px;
}

h3 {
    font-size: 1.3em;
    color: #ff2052;
    border-bottom: 2px dashed #d90429;
    padding-bottom: 8px;
}

@keyframes glitch-intense {
    0% { text-shadow: 2px 0 #ff2052, -2px 0 #d90429, 0 2px #fff; }
    20% { text-shadow: -2px 2px #d90429, 2px -2px #ff2052, -4px 0 #fff; }
    40% { text-shadow: 2px -2px #ff2052, -2px 2px #d90429, 4px 0 #fff; }
    60% { text-shadow: -2px 0 #d90429, 2px 0 #ff2052, 0 -2px #fff; }
    80% { text-shadow: 2px 2px #ff2052, -2px -2px #d90429, -2px 2px #fff; }
    100% { text-shadow: 0 0 15px #d90429, 0 0 30px #ff2052, 0 0 45px rgba(217, 4, 41, 0.5); }
}

@keyframes glitch-soft {
    0% { text-shadow: 1px 0 #ff2052, -1px 0 #d90429; }
    50% { text-shadow: -1px 1px #d90429, 1px -1px #ff2052; }
    100% { text-shadow: 1px 0 #ff2052, -1px 0 #d90429; }
}

.glitch {
    color: #ff2052;
    font-weight: 700;
    text-shadow: 0 0 10px #d90429;
    animation: glitch-soft 0.3s infinite;
}

input, select, textarea {
    background: #18181c;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    padding: 11px 12px;
    width: 100%;
    margin-bottom: 14px;
    font-family: inherit;
    font-size: 0.95em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    border-radius: 6px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.2);
    background: #1c1c22;
}

button, .button {
    background: #c41e3a;
    border: 1px solid #a31830;
    color: #fff;
    font-weight: 600;
    padding: 11px 20px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    margin-right: 8px;
    font-size: 0.9em;
}

button:hover:not(:disabled) {
    background: #a31830;
    border-color: #8b1530;
    color: #fff;
}

a { color: #f87171; text-decoration: none; font-weight: 500; }
a:hover { color: #fff; text-decoration: underline; }

.success {
    border: 1px solid #22c55e;
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    padding: 14px;
    margin: 14px 0;
    border-radius: 6px;
    border-left: 3px solid #22c55e;
}

.error {
    border: 1px solid #ff2052;
    background: rgba(255, 32, 82, 0.08);
    color: #ff6b9d;
    padding: 14px;
    margin: 14px 0;
    border-radius: 6px;
    border-left: 3px solid #ff2052;
}

footer {
    margin-top: 32px;
    text-align: center;
    color: #71717a;
    font-size: 0.85em;
    border-top: 1px solid #2a2a32;
    padding-top: 16px;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes scan-line {
    0% { top: 0; }
    100% { top: 100%; }
}

.pulse { animation: pulse 2s infinite; }

.scan-effect { position: relative; overflow: hidden; }
.scan-effect::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 32, 82, 0.35);
    animation: scan-line 3s infinite;
    pointer-events: none;
}

/* Warning popup */
.warning-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.warning-popup-overlay.show { display: flex; }
.warning-popup-container {
    background: linear-gradient(135deg, rgba(15, 5, 12, 0.98) 0%, rgba(25, 8, 18, 0.98) 100%);
    border: 2px solid #d90429;
    border-radius: 8px;
    max-width: 90%;
    width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px;
    box-shadow: 0 0 30px #d90429, 0 0 60px rgba(255, 32, 82, 0.3);
}
.warning-popup-header {
    color: #f87171;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}
.warning-popup-content {
    color: #d4d4d8;
    font-size: 0.9em;
    line-height: 1.7;
    margin-bottom: 20px;
}
.official-domains {
    background: #141418;
    border-left: 3px solid #c41e3a;
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
}
.domain-list { list-style: none; }
.domain-list li {
    color: #a1a1aa;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    font-size: 0.9em;
}
.warning-btn {
    padding: 10px 24px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid #c41e3a;
    background: transparent;
    color: #f87171;
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
}
.warning-btn:hover, .warning-btn.primary {
    background: #c41e3a;
    color: #fff;
}

@media (max-width: 768px) {
    body { padding: 10px; font-size: 0.95em; }
    .container { padding: 16px 12px; }
    h1 { font-size: 1.35em; }
}
