:root {
    --brand-pink: rgb(235, 0, 160);
    --bg-gradient: linear-gradient(to bottom, rgb(100, 0, 130), rgb(245, 0, 130));
    --container-bg: #1e1e1e;
    --text-color: #f0f0f0;
    --border-color: #444;
    --card-bg: #2a2a2a;
    --browser-bar: #c0c0c0;
    --controls-bg: #444; 
}

[data-theme="light"] {
    --bg-gradient: linear-gradient(to bottom, rgb(135, 206, 250), rgb(75, 40, 140));
    --container-bg: #ffffff;
    --text-color: #111;
    --border-color: #999;
    --card-bg: #e0e0e0;
    --browser-bar: #d4d4d4;
    --controls-bg: #e0e0e0; 
}

html { height: 100%; background: var(--bg-gradient); background-attachment: fixed; transition: background 0.4s ease; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: Tahoma, Arial, sans-serif; }

body {
    color: var(--text-color); min-height: 100%; padding: 20px; 
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='white' stroke='black' stroke-width='1.5' d='M6 14L6 2L10 2L10 10L18 10L19 22L7 22L4 16Z'/%3E%3C/svg%3E") 8 2, auto;
}

a, button, .clickable, input, select, .profile-detail .image-slider img {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath fill='white' stroke='black' stroke-width='1.5' d='M6 14L6 10L10 10L10 2L14 2L14 10L18 10L19 22L7 22L4 16Z'/%3E%3C/svg%3E") 12 2, pointer !important;
}
.profile-detail .image-slider img, .niko-frame { cursor: zoom-in !important; }

.browser-window {
    background: var(--container-bg); width: 100%; max-width: 1000px; margin: 0 auto;
    border: 3px solid var(--border-color); border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); display: flex; flex-direction: column; position: relative;
}

.browser-header { background: var(--browser-bar); padding: 8px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--border-color); }
.url-bar { flex-grow: 1; background: #fff; color: #000; padding: 6px 10px; border: 2px inset #999; font-size: 16px; outline: none; min-width: 0; }
.nav-btn { background: linear-gradient(to bottom, #f0f0f0 0%, #dcdcdc 49%, #c0c0c0 50%, #e0e0e0 100%); border: 2px outset #fff; padding: 4px 12px; font-weight: bold; color: #000; transition: all 0.1s ease; }
.nav-btn:active { border-style: inset; background: #c0c0c0; }
#mobile-menu-btn { display: none; font-size: 1.2rem; padding: 2px 10px; }

.nav-container { position: sticky; top: 0; z-index: 100; transition: transform 0.3s ease-in-out; background: var(--card-bg); border-bottom: 2px solid var(--border-color); width: 100%; }
.nav-container.hidden { transform: translateY(-100%); }

.site-nav { display: flex; flex-wrap: nowrap; overflow: hidden; }
.site-nav-item {
    flex: 1 1 0; padding: 10px 5px; text-align: center; font-weight: bold; font-size: 0.85rem; text-transform: uppercase;
    color: #fff; border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    text-decoration: none; transition: all 0.2s; user-select: none; white-space: nowrap;
    background: linear-gradient(to bottom, #5a5a5a 0%, #3a3a3a 49%, #2a2a2a 50%, #4a4a4a 100%);
    border-top: 1px outset #777; border-left: 1px outset #777;
}
.site-nav-item:hover, .site-nav-item.active { 
    background: linear-gradient(to bottom, #f0f0f0 0%, #dcdcdc 49%, #c0c0c0 50%, #e0e0e0 100%);
    color: #000; border-top: 1px inset #fff; border-left: 1px inset #fff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 0 0 15px rgba(255,255,255,0.3);
}
.site-nav-item.active { box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 0 0 15px var(--brand-pink); }

[data-theme="light"] .site-nav-item { background: linear-gradient(to bottom, #f0f0f0 0%, #dcdcdc 49%, #c0c0c0 50%, #e0e0e0 100%); color: #000; border-top: 1px outset #fff; border-left: 1px outset #fff; }
[data-theme="light"] .site-nav-item:hover, [data-theme="light"] .site-nav-item.active, [data-theme="light"] .theme-btn:hover, [data-theme="light"] .lang-btn:hover { 
    background: linear-gradient(to bottom, #5a5a5a 0%, #3a3a3a 49%, #2a2a2a 50%, #4a4a4a 100%);
    color: #fff; border-top: 1px inset #555; border-left: 1px inset #555;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
}

.hero-banner { background: var(--brand-pink); color: white; text-align: center; padding: 15px 20px; border-bottom: 2px solid var(--border-color); }
.header-title-container { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 5px; }
.logo-svg { height: 3rem; filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.4)); }
.header-title-container h1 { font-size: 3rem; text-transform: uppercase; letter-spacing: -2px; text-shadow: 2px 2px 0 rgba(0,0,0,0.4); }
.promo-text { font-size: 1.05rem; max-width: 800px; margin: 0 auto; line-height: 1.4; font-style: italic; }

.controls { padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; background: var(--controls-bg); font-size: 0.85rem; flex-wrap: wrap; gap: 10px; border-bottom: 2px solid var(--border-color); }
.controls > div { flex: 1; }
.controls-center { text-align: center; }
.controls-right { text-align: right; display: flex; justify-content: flex-end; gap: 10px; align-items: center; position: relative; }

.lang-dropdown { position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: -10px; }
.lang-menu { display: none; position: absolute; top: 100%; right: 0; background: var(--card-bg); border: 2px outset #777; z-index: 1000; min-width: 120px; box-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.lang-menu a { display: block; padding: 10px; color: var(--text-color); text-decoration: none; font-weight: bold; border-bottom: 1px solid var(--border-color); transition: background 0.2s; text-align: left; }
.lang-menu a:hover { background: var(--brand-pink); color: white; }
.lang-dropdown:hover .lang-menu { display: block; }

.action-btn { 
    background: linear-gradient(to bottom, #5a5a5a 0%, #3a3a3a 49%, #2a2a2a 50%, #4a4a4a 100%);
    color: white; padding: 10px 20px; text-decoration: none; font-weight: bold; 
    border: 2px outset #777; text-transform: uppercase; transition: all 0.2s; 
    display: inline-block; text-align: center; box-shadow: 0 0 5px rgba(255,255,255,0.1);
    max-width: 100%; box-sizing: border-box; white-space: normal; 
}
.action-btn:hover { background: linear-gradient(to bottom, #f0f0f0 0%, #dcdcdc 49%, #c0c0c0 50%, #e0e0e0 100%); color: #000; border: 2px inset #fff; box-shadow: 0 0 15px rgba(0,0,0,0.8); }

.btn-pink { background: linear-gradient(to bottom, #ff33b5 0%, #cc0088 49%, #990066 50%, #dd1199 100%); border: 2px outset #ff99dd; color: white; }
.btn-pink:hover { background: linear-gradient(to bottom, #e0e0e0 0%, #cccccc 49%, #bbbbbb 50%, #dddddd 100%); border: 2px inset #fff; color: #000; box-shadow: 0 0 15px var(--brand-pink); }
.btn-gold { background: linear-gradient(to bottom, #ffda44 0%, #d4af37 49%, #aa8000 50%, #e6c200 100%); border: 2px outset #fffaaa; color: #332200; text-shadow: 1px 1px 0 rgba(255,255,255,0.4); }
.btn-gold:hover { background: linear-gradient(to bottom, #e0e0e0 0%, #cccccc 49%, #bbbbbb 50%, #dddddd 100%); border: 2px inset #fff; color: #000; text-shadow: none; box-shadow: 0 0 15px #d4af37; }

/* Серебряная кнопка */
.btn-silver { background: linear-gradient(to bottom, #e6e6e6 0%, #cccccc 49%, #b3b3b3 50%, #d9d9d9 100%); border: 2px outset #ffffff; color: #111; text-shadow: 1px 1px 0 rgba(255,255,255,0.7); }
.btn-silver:hover { background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 49%, #cccccc 50%, #f0f0f0 100%); border: 2px inset #999; color: #000; box-shadow: 0 0 15px rgba(255,255,255,0.6); text-shadow: none; }

/* Обновленная Розовое Золото кнопка */
.btn-rosegold { background: linear-gradient(to bottom, #e3a8b8 0%, #c48295 49%, #b0697e 50%, #d495a8 100%); border: 2px outset #f2c7d3; color: #3a1a24; text-shadow: 1px 1px 0 rgba(255,255,255,0.3); }
.btn-rosegold:hover { background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 49%, #cccccc 50%, #f0f0f0 100%); border: 2px inset #fff; color: #000; text-shadow: none; box-shadow: 0 0 15px #e3a8b8; }

.nav-focusable.focused { border: 2px solid var(--brand-pink); transform: scale(1.02); box-shadow: 0 0 20px rgba(235, 0, 160, 0.7); outline: none; }
button.nav-focusable.focused, a.nav-focusable.focused, div.nav-focusable.focused { background: var(--brand-pink); color: white; border: 2px inset #fff; }
div.nav-focusable.focused { background: var(--card-bg); border: 2px solid var(--brand-pink); }

.page-view { padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--card-bg); border: 2px inset var(--border-color); padding: 12px; text-align: center; transition: all 0.2s ease; cursor: pointer; display: flex; flex-direction: column; }
.card h2 { margin: 10px 0; font-size: 1.3rem; }

.image-slider { position: relative; width: 100%; height: 180px; margin-bottom: 10px; background: #000; border: 2px inset #444; }
.profile-detail .image-slider { height: 300px; border: 3px solid var(--brand-pink); }
.image-slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.2s; }
.image-slider img.active { opacity: 1; z-index: 1; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.7); color: white; border: 2px outset #777; padding: 10px; z-index: 2; font-weight: bold; transition: all 0.2s; }
.slider-btn:hover { background: var(--brand-pink); border-color: #fff; }
.slider-btn.left { left: 0; }
.slider-btn.right { right: 0; }
button.fullscreen-hint { position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,0.7); color: white; border: 1px outset #777; padding: 4px 8px; font-size: 0.8rem; z-index: 2; font-weight: bold; transition: all 0.2s; cursor: pointer; pointer-events: auto; }
button.fullscreen-hint:hover { background: var(--brand-pink); border-color: #fff; transform: scale(1.1); box-shadow: 0 0 10px rgba(235, 0, 160, 0.8); }

.profile-detail { display: none; }
.profile-layout { display: flex; gap: 20px; background: var(--card-bg); border: 2px inset var(--border-color); padding: 20px; align-items: stretch; }
.profile-left { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; }
.profile-right { flex-grow: 1; display: flex; flex-direction: column; }
.profile-title { font-size: 2.5rem; color: var(--brand-pink); text-transform: uppercase; margin-bottom: 10px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; font-weight: bold; letter-spacing: -1px; }
.data-label { color: #888; font-size: 0.9rem; text-transform: uppercase; font-weight: bold; }
.data-value { font-size: 1.1rem; margin-bottom: 10px; }

.main-action-btn { margin-top: auto; height: 45px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.back-btn-container { margin-top: auto; display: flex; justify-content: flex-end; }
.back-btn { height: 45px; display: flex; align-items: center; justify-content: center; width: 200px; box-sizing: border-box; }

#age-gate { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; z-index: 9999; color: white; text-align: center; }
.age-box { background: #222; padding: 40px; border: 3px solid var(--brand-pink); max-width: 500px; width: 90%; }
.age-btns { display: flex; gap: 20px; margin-top: 30px; justify-content: center; flex-wrap: wrap; }
#image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10000; align-items: center; justify-content: space-between; padding: 0 10px; }
.modal-center { display: flex; flex-grow: 1; justify-content: center; align-items: center; height: 100%; padding: 0 15px; cursor: zoom-out; }
.modal-center img { max-width: 100%; max-height: 95%; border: 3px solid var(--brand-pink); }

.teaser-page { text-align: center; padding: 40px 20px; }
.teaser-title { font-size: 2rem; color: var(--brand-pink); margin-bottom: 20px; text-transform: uppercase; }
.teaser-desc { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px auto; line-height: 1.6; }
.contact-list { display: flex; flex-direction: column; gap: 15px; max-width: 500px; margin: 0 auto; }
.niko-frame { width: 200px; height: 200px; margin: 0 auto 20px auto; border: 4px inset #444; background: #000; box-shadow: 0 0 15px rgba(0,0,0,0.8); background-image: url('images/niko_placeholder.jpg'); background-size: cover; background-position: center; transition: all 0.2s; }

/* Стили форума */
.form-area { background: var(--container-bg); border: 2px inset var(--border-color); padding: 20px; max-width: 600px; margin: 0 auto; text-align: left; }
.form-area input, .form-area textarea { width: 100%; background: var(--card-bg); color: var(--text-color); border: 2px inset #555; padding: 10px; margin-bottom: 15px; font-size: 1rem; outline: none; transition: border-color 0.2s; }
.form-area textarea { height: 120px; resize: none; }
.form-area input:focus, .form-area textarea:focus { border: 2px solid var(--brand-pink); }

#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--brand-pink); color: white; padding: 12px 25px; font-weight: bold; border: 2px outset #ff99dd; opacity: 0; transition: opacity 0.3s; z-index: 10001; text-transform: uppercase; text-align: center; }
#toast.show { opacity: 1; }
.footer-warning { background: #111; color: #888; text-align: center; padding: 15px; font-size: 0.85rem; border-top: 2px solid var(--border-color); text-transform: uppercase; letter-spacing: 1px; }
[data-theme="light"] .footer-warning { background: #f0f0f0; color: #555; }

@media (max-width: 768px) {
    #mobile-menu-btn { display: inline-block; }
    .site-nav { display: none; flex-direction: column; width: 100%; overflow: visible; }
    .site-nav.mobile-open { display: flex; }
    .site-nav-item { border-right: none; white-space: normal; border-bottom: 1px solid var(--border-color); }
    .controls { flex-direction: column; text-align: center; }
    .controls-right { justify-content: center; width: 100%; margin-top: 10px; }
    .profile-layout { flex-direction: column; }
    .profile-left { width: 100%; }
    .back-btn-container { justify-content: center; margin-top: 15px; }
    .back-btn { width: 100%; }
    .header-title-container h1 { font-size: 2.5rem; }
    .logo-svg { height: 2.5rem; }
}