:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #d4af37; /* Gold */
    --accent-hover: #f1c40f;
    --heart-color: #ff4d4d;
    --verified-color: #27ae60; /* Green */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-color: #333;
    --header-bg: #1e1e1e;
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --border-color: #dddddd;
    --header-bg: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Common Components */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

.btn-danger {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.btn-danger:hover {
    background: #e74c3c;
    color: #fff;
}

.btn-dark {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.btn-dark:hover {
    background: #444;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-login {
    border: 1px solid var(--accent);
    padding: 5px 15px;
    border-radius: 4px;
    color: var(--accent);
}

.btn-login:hover {
    background-color: var(--accent);
    color: #000;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input, .search-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-main);
    border-radius: 4px;
    min-width: 200px;
}

.btn-search {
    padding: 10px 25px;
    background-color: var(--accent);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-search:hover {
    background-color: var(--accent-hover);
}

/* Catalog Grid */
.catalog {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--accent);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.profile-card-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: block;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.profile-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transform: translateY(-8px);
}

/* Heart Icon */
.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.btn-favorite:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.btn-favorite.active {
    color: var(--heart-color);
}

/* Verification Badge */
.verified-icon {
    color: var(--verified-color);
    margin-left: 6px;
    font-size: 0.85em;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 174, 96, 0.15);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    border: 1px solid var(--verified-color);
}

/* VIP Styles */
.profile-card.vip {
    border: 2px solid var(--accent);
}

.vip-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: #000;
    padding: 3px 10px;
    font-weight: 800;
    font-size: 0.7rem;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.profile-image {
    width: 100%;
    height: 380px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s ease;
}

.profile-card:hover .profile-image img {
    transform: scale(1.08);
}

.profile-info {
    padding: 20px;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery & Reviews */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #333;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--header-bg);
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.age-warning {
    border: 1px solid var(--accent);
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 20px;
    color: var(--accent);
}

/* Quick Filters */
.filter-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
    background: rgba(0,0,0,0.3);
}

.filter-tag:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper { flex-direction: column; gap: 15px; }
    .nav-links { gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 0.9rem; }
    .hero h1 { font-size: 1.8rem; }
    .search-bar { flex-direction: column; }
    .search-input, .search-select, .btn-search { width: 100% !important; min-width: 0; }
    .profiles-grid { grid-template-columns: 1fr; }
    .profile-image { height: 450px; }
    .profile-header { flex-direction: column; }
    .main-photo { height: 400px; }
}
/* Button-like labels fix */
label.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.hidden-file-input {
    display: none !important;
}

/* Premium Horizontal Scrollbar */
.stories-container, 
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255,255,255,0.05);
}

.stories-container::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar {
    height: 5px;
}

.stories-container::-webkit-scrollbar-track,
.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin: 0 10px;
}

.stories-container::-webkit-scrollbar-thumb,
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4); /* Полупрозрачное золото */
    border-radius: 10px;
    transition: 0.3s;
}

.stories-container:hover::-webkit-scrollbar-thumb,
.horizontal-scroll:hover::-webkit-scrollbar-thumb {
    background: var(--accent); /* Яркое золото при наведении */
    box-shadow: 0 0 10px var(--accent);
}

/* Chat Box Scrollbar */
#chat-box::-webkit-scrollbar {
    width: 5px;
}

#chat-box::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}

#chat-box::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

#chat-box:hover::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
}
.story-item-wrapper {
    text-align: center;
    min-width: 80px;
}
.story-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2.5px;
    margin: 0 auto 5px;
    box-shadow: 0 0 10px rgba(220, 39, 67, 0.3);
}

.story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #000;
    overflow: hidden;
    background: #222;
}

.story-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* Catalog Card Ring */
.profile-image.has-story {
    border: none;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    border-radius: 12px; /* Совпадает с радиусом карточки */
}

.profile-image.has-story span {
    border: 2px solid #1a1a1a;
    border-radius: 10px;
}


