/* ============================================
   Базовые стили для rmrp.space
   ============================================ */

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-image: url('/static/images/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #1f2937;
}

/* Fallback для старых браузеров */
@supports not (background-image: url('/static/images/background.webp')) {
    body {
        background-image: url('/static/images/background.jpg');
    }
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

/* ============================================
   ШАПКА (HEADER)
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header:hover {
    background: rgba(20, 20, 30, 0.92);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.header-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.header-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.header-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.header-icon:hover svg {
    transform: scale(1.1);
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    border: 2px solid rgba(20, 20, 30, 0.85);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 179, 107, 0.4);
    cursor: pointer;
    object-fit: cover;
    background: #2d3748;
    transition: all 0.3s ease;
}

.avatar-small:hover {
    border-color: #00b36b;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 179, 107, 0.15);
}

/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ============================================ */

.main-container {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    max-width: 1100px;
    width: 100%;
    margin: 90px auto 20px;
    padding: 0 20px;
    flex: 1;
}

.main-container.public {
    justify-content: center;
}

.page-content {
    flex: 1;
    min-width: 0;
}

/* ============================================
   ЛЕВЫЙ САЙДБАР
   ============================================ */

.sidebar-left {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 90px;
    height: fit-content;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.2s;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar-item.active {
    background: rgba(0, 179, 107, 0.20);
    color: #00b36b;
}

.sidebar-item.active svg {
    stroke: #00b36b;
    color: #00b36b;
}

.sidebar-item .badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 20px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 12px;
}

/* ============================================
   ПРАВЫЙ САЙДБАР
   ============================================ */

.sidebar-right {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.widget {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.widget-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    padding: 6px 8px;
    text-decoration: none;
}

.widget-user:hover {
    background: rgba(255, 255, 255, 0.06);
}

.widget-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #2d3748;
}

.widget-user-name {
    color: white;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.widget-user-name .fullname {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.widget-user-name .server-tag {
    color: #00b36b;
    font-weight: 400;
    font-size: 11px;
}

.widget-user-status {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-user-status.online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.widget-user-status.offline {
    background: #6b7280;
}

/* ============================================
   РАДИО ВИДЖЕТ
   ============================================ */

.radio-widget-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-widget-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.radio-widget-art {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #2d3748;
    flex-shrink: 0;
}

.radio-widget-meta {
    flex: 1;
    min-width: 0;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.radio-widget-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-widget-artist {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-widget-listeners {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-widget-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-widget-play-btn {
    background: #00b36b;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-widget-play-btn:hover {
    background: #009459;
    transform: scale(1.05);
}

.radio-widget-play-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.radio-widget-volume {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.radio-widget-volume svg {
    flex-shrink: 0;
}

.radio-widget-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    transition: background 0.2s ease;
    cursor: pointer;
    min-width: 40px;
}

.radio-widget-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #00b36b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-widget-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.radio-widget-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00b36b;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ============================================
   ПОДВАЛ (FOOTER)
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 20px 16px;
    width: 100%;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   СТРАНИЦА ЛЕНТЫ (FEED)
   ============================================ */

.feed-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.filter-group {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 3px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
    background: rgba(0, 179, 107, 0.20);
    color: #00b36b;
}

.filter-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.filter-select {
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    cursor: pointer;
    min-width: 140px;
}

.filter-select:focus {
    border-color: #00b36b;
    background: rgba(255, 255, 255, 0.06);
}

.filter-select option {
    background: #1a1a2e;
    color: white;
}

.filter-spacer {
    flex: 1;
}

.filter-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.create-post {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 18px 20px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.create-post-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.create-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00b36b;
    object-fit: cover;
    flex-shrink: 0;
    background: #2d3748;
}

.create-post-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    max-height: 200px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.create-post-textarea:focus {
    border-color: #00b36b;
}

.create-post-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.create-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.create-post-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.create-post-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
}

.create-post-btn svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.35);
    transition: stroke 0.2s;
}

.create-post-btn:hover svg {
    stroke: rgba(255, 255, 255, 0.65);
}

.create-post-btn.active {
    color: #00b36b;
}

.create-post-btn.active svg {
    stroke: #00b36b;
}

.create-post-file-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.create-post-file-info.show {
    display: flex;
}

.create-post-file-info .remove-file {
    cursor: pointer;
    color: #ef4444;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    background: none;
    border: none;
}

.create-post-file-info .remove-file:hover {
    color: #f87171;
}

.create-post-submit {
    margin-left: auto;
    padding: 8px 24px;
    border-radius: 20px;
    border: none;
    background: #00b36b;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.2);
    flex-shrink: 0;
}

.create-post-submit:hover {
    background: #009459;
    box-shadow: 0 4px 20px rgba(0, 179, 107, 0.3);
    transform: translateY(-1px);
}

.create-post-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   КАРТОЧКА ПОСТА
   ============================================ */

.post-card {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 18px 20px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
    animation: fadeInPost 0.3s ease;
    flex-shrink: 0;
}

@keyframes fadeInPost {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-card:hover {
    background: rgba(0, 0, 0, 0.40);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 179, 107, 0.4);
    object-fit: cover;
    background: #2d3748;
    flex-shrink: 0;
}

.post-user {
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.post-user .profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-user .profile-badge svg {
    width: 16px;
    height: 16px;
}

.post-user .post-server {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 400;
    font-size: 12px;
    margin-left: 2px;
    color: #00b36b;
}

.post-user .post-server svg {
    width: 14px;
    height: 14px;
    stroke: #00b36b;
}

.post-user span.time {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    margin-left: 2px;
}

.post-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
    white-space: normal;
}

.post-image {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
    background: rgba(0, 0, 0, 0.20);
    cursor: pointer;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}

.post-action:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
}

.post-action.liked {
    color: #ef4444;
}

.post-action svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.post-action .count {
    font-size: 12px;
    min-width: 16px;
}

.post-action .delete-post {
    color: #ef4444;
}

.post-action .delete-post:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ============================================
   УВЕДОМЛЕНИЯ
   ============================================ */

.post-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 400px;
}

.post-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.post-notification.success {
    border-left: 4px solid #00b36b;
}

.post-notification.error {
    border-left: 4px solid #ef4444;
}

/* ============================================
   СТРАНИЦА ПРОФИЛЯ (PROFILE)
   ============================================ */

.profile-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-message {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.profile-message.success {
    background: rgba(0, 179, 107, 0.15);
    border: 1px solid rgba(0, 179, 107, 0.3);
    color: #4ade80;
}

.profile-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-header {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #00b36b;
    object-fit: cover;
    background: #2d3748;
    transition: box-shadow 0.3s ease;
}

.profile-avatar:hover {
    box-shadow: 0 0 30px rgba(0, 179, 107, 0.2);
}

.profile-avatar-edit {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #00b36b;
    border: 2px solid rgba(20, 20, 30, 0.85);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 179, 107, 0.3);
    overflow: hidden;
}

.profile-avatar-edit:hover {
    background: #009459;
    transform: scale(1.1);
}

.profile-avatar-edit svg {
    width: 16px;
    height: 16px;
}

.profile-avatar-edit input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-nickname {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-badge.verified {
    color: #3b82f6;
}

.profile-badge.media {
    color: #f59e0b;
}

.profile-login {
    font-size: 15px;
    color: #00b36b;
    margin-top: 2px;
    font-weight: 500;
}

.profile-details {
    display: flex;
    gap: 24px;
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.profile-details strong {
    font-weight: 500;
}

.profile-details .id-value {
    color: #00b36b;
    font-weight: 600;
}

.profile-details .id-value.pending {
    color: #f59e0b;
    font-weight: 400;
    font-style: italic;
}

.profile-details .server-value {
    color: #00b36b;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-stat {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.profile-stat:hover {
    color: rgba(255, 255, 255, 0.8);
}

.profile-stat strong {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.profile-stat .stat-label {
    margin-left: 2px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-primary-small {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #00b36b;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-small:hover {
    background: #009459;
    box-shadow: 0 4px 20px rgba(0, 179, 107, 0.4);
    transform: translateY(-1px);
}

/* ============================================
   КНОПКИ ДЛЯ ПРОФИЛЯ (PROFILE-VIEW)
   ============================================ */

/* Кнопка удаления из друзей */
.btn-danger-small {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #ef4444;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger-small:hover {
    background: #dc2626;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Кнопка принятия заявки */
.btn-accept-small {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #22c55e;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-accept-small:hover {
    background: #16a34a;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

/* Кнопка "Заявка отправлена" (заблокированная) */
.btn-pending-small {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Индикатор онлайн/офлайн */
.online-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(20, 20, 30, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.online-indicator.offline {
    background: #6b7280;
    box-shadow: none;
}

.online-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0.8;
}

.online-indicator.offline .dot {
    opacity: 0.3;
}

/* ============================================
   ВКЛАДКИ ПРОФИЛЯ
   ============================================ */

.profile-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-tab {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.profile-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.tab-content.active {
    display: flex;
}

/* ============================================
   МЕДИА-ГРИД
   ============================================ */

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.media-item {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.media-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

/* ============================================
   СТРАНИЦА ДРУЗЕЙ
   ============================================ */

.friends-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.friends-header {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.friends-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.friends-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.friends-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.friends-tab {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 100px;
}

.friends-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.friends-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.friends-tab .tab-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 20px;
    margin-left: 6px;
}

.search-container {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.search-container.active {
    display: flex;
}

.search-input {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.search-input:focus {
    border-color: #00b36b;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 179, 107, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.search-select {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    min-width: 150px;
    cursor: pointer;
}

.search-select:focus {
    border-color: #00b36b;
    background: rgba(255, 255, 255, 0.06);
}

.search-select option {
    background: #1a1a2e;
    color: white;
}

.search-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: #00b36b;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.15);
    white-space: nowrap;
}

.search-btn:hover {
    background: #009459;
    box-shadow: 0 4px 20px rgba(0, 179, 107, 0.3);
    transform: translateY(-1px);
}

.search-btn-outline {
    padding: 10px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.search-results-count {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    margin-left: auto;
}

/* ===== КАРТОЧКИ ДРУЗЕЙ И ЗАЯВОК ===== */

.request-card {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    border-left: 3px solid #f59e0b;
    text-decoration: none;
}

.request-card:hover {
    background: rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.08);
}

.friend-card {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.friend-card:hover {
    background: rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.friend-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.friend-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(0, 179, 107, 0.3);
    object-fit: cover;
    background: #2d3748;
    transition: border-color 0.2s;
}

.friend-card:hover .friend-avatar {
    border-color: #00b36b;
}

.friend-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(20, 20, 30, 0.9);
}

.friend-status.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.friend-status.offline {
    background: #6b7280;
}

.friend-info {
    flex: 1;
    min-width: 140px;
}

.friend-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.friend-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.friend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.friend-badge.verified {
    color: #3b82f6;
}

.friend-badge.media {
    color: #f59e0b;
}

.friend-login {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.friend-server-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #00b36b;
    font-weight: 500;
    margin-top: 2px;
}

.friend-server-tag svg {
    width: 14px;
    height: 14px;
    stroke: #00b36b;
}

.friend-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.friend-btn {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 179, 107, 0.15);
    color: #00b36b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-btn:hover {
    background: #00b36b;
    color: white;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.3);
}

.friend-btn-outline {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.friend-btn-add {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-btn-add:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.friend-btn-pending {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    cursor: default;
    pointer-events: none;
}

.friend-btn-danger {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-btn-danger:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
}

.friend-btn-accept {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    background: #00b36b;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-btn-accept:hover {
    background: #009459;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.3);
}

.friend-btn-reject {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-btn-reject:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.empty-state {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 48px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    stroke: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.empty-state .title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 500;
}

.empty-state .desc {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    margin-top: 4px;
}

.friends-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.friends-list.active {
    display: flex;
}

/* ============================================
   СТРАНИЦА РЕДАКТИРОВАНИЯ ПРОФИЛЯ
   ============================================ */

.edit-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edit-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.edit-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    border-color: #00b36b;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 179, 107, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 32px 10px 14px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-save {
    padding: 10px 32px;
    border-radius: 8px;
    border: none;
    background: #00b36b;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.25);
}

.btn-save:hover {
    background: #009459;
    box-shadow: 0 4px 20px rgba(0, 179, 107, 0.4);
    transform: translateY(-1px);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.response-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    display: none;
}

.response-message.show {
    display: block;
}

.response-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.response-message.success {
    background: rgba(0, 179, 107, 0.15);
    border: 1px solid rgba(0, 179, 107, 0.3);
    color: #4ade80;
}

/* ============================================
   СТРАНИЦА РАДИО
   ============================================ */

.radio-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.radio-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.radio-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.track-art-container {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    flex-shrink: 0;
    background: #2d3748;
}

.track-art-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.track-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    line-height: 1.2;
}

.track-artist {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.track-status {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.track-status .online {
    color: #22c55e;
}

.track-status .offline {
    color: #ef4444;
}

.track-status .listener-count {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-left: 8px;
}

.progress-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b36b, #33c585);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.time-display {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    min-width: 45px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    margin-top: 4px;
}

.btn-play {
    background: #00b36b;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 16px rgba(0, 179, 107, 0.3);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 24px rgba(0, 179, 107, 0.5);
    background: #009459;
}

.btn-play svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 140px;
}

.volume-control svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    transition: background 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #00b36b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00b36b;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ============================================
   CROPPER СТИЛИ
   ============================================ */

#cropperModal .cropper-container {
    border-radius: 8px;
}

#cropperModal .cropper-view-box {
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px #00b36b, 0 0 20px rgba(0, 179, 107, 0.3);
}

#cropperModal .cropper-face {
    background-color: rgba(0, 0, 0, 0.3);
}

#cropperModal .cropper-line {
    background-color: rgba(0, 179, 107, 0.3);
}

#cropperModal .cropper-point {
    background-color: #00b36b;
}

#cropperModal .cropper-point.point-se {
    background-color: #00b36b;
}

#cropperModal .cropper-dashed {
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#cropperModal > div {
    animation: fadeInModal 0.3s ease;
}

#cropperStatus.loading {
    color: #fbbf24;
}

#cropperStatus.success {
    color: #4ade80;
}

#cropperStatus.error {
    color: #f87171;
}

#cropperStatus.info {
    color: #60a5fa;
}

/* ============================================
   СТРАНИЦЫ ВХОДА/РЕГИСТРАЦИИ/WELCOME
   ============================================ */

.login-container,
.register-container,
.welcome-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
}

.login-container .card,
.register-container .card,
.welcome-container .card {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    padding: 28px 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.register-container .card {
    padding: 22px 22px 16px;
}

.welcome-container .card {
    padding: 32px 28px 28px;
    max-width: 580px;
    align-items: center;
    text-align: center;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.register-container .card-header {
    margin-bottom: 14px;
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
}

.register-container .card-title {
    font-size: 22px;
}

.welcome-container .card-title {
    font-size: 28px;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.register-container .card-subtitle {
    font-size: 13px;
    margin-top: 2px;
}

.welcome-container .card-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.welcome-container .card-subtitle .highlight {
    background: rgba(0, 179, 107, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    color: #00b36b;
}

.logo-center {
    margin-bottom: 12px;
}

.logo-center img {
    height: 60px;
    width: auto;
    display: block;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-container .form-container {
    gap: 8px;
}

.input-field {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.register-container .input-field {
    padding: 7px 12px;
    font-size: 14px;
}

.input-field:focus {
    border-color: #00b36b;
    box-shadow: 0 0 0 3px rgba(0, 179, 107, 0.15);
}

.select-wrapper .input-field {
    padding: 7px 32px 7px 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.register-container .checkbox-wrapper {
    margin-top: 2px;
    align-items: flex-start;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #00b36b;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.register-container .checkbox-wrapper input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin-top: 1px;
}

.checkbox-wrapper label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    user-select: none;
}

.register-container .checkbox-wrapper label {
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-wrapper label a {
    color: #00b36b;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link {
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: -4px;
}

.forgot-link a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    background: #00b36b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    text-decoration: none;
}

.register-container .btn-primary {
    padding: 10px 16px;
    font-size: 15px;
    margin-top: 2px;
}

.welcome-container .btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 17px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.2);
}

.btn-primary:hover {
    background: #009459;
    box-shadow: 0 4px 20px rgba(0, 179, 107, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

#login-response,
#register-response {
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.register-container #register-response {
    margin-top: 6px;
}

.register-block,
.login-block {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    padding: 0;
    background: transparent;
    border: none;
}

.register-container .login-block {
    margin-top: 6px;
}

.register-block a,
.login-block a {
    color: #00b36b;
    text-decoration: none;
    font-weight: 600;
}

.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    margin: 4px 0 8px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.divider-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

/* ============================================
   СТИЛИ ДЛЯ МАРКЕТПЛЕЙСА (УЛУЧШЕННЫЕ)
   ============================================ */

.marketplace-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marketplace-header {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.marketplace-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.marketplace-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */
.marketplace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.action-btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.action-btn-primary {
    background: #00b36b;
    color: white;
    box-shadow: 0 2px 12px rgba(0, 179, 107, 0.2);
}

.action-btn-primary:hover {
    background: #009459;
    box-shadow: 0 4px 20px rgba(0, 179, 107, 0.3);
    transform: translateY(-1px);
}

.action-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn-outline.active {
    background: rgba(0, 179, 107, 0.12);
    color: #00b36b;
    border-color: rgba(0, 179, 107, 0.2);
}

.action-btn .badge-count {
    background: #00b36b;
    color: white;
    font-size: 11px;
    padding: 0 8px;
    border-radius: 12px;
    line-height: 18px;
    font-weight: 600;
}

.action-btn-outline .badge-count {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.action-btn-outline.active .badge-count {
    background: rgba(0, 179, 107, 0.2);
    color: #00b36b;
}

/* ===== ФИЛЬТРЫ ===== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 4px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.filter-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
    background: rgba(0, 179, 107, 0.20);
    color: #00b36b;
}

.filter-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.filter-select {
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    cursor: pointer;
    min-width: 140px;
}

.filter-select:focus {
    border-color: #00b36b;
    background: rgba(255, 255, 255, 0.06);
}

.filter-select option {
    background: #1a1a2e;
    color: white;
}

.filter-spacer {
    flex: 1;
}

.filter-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

/* ===== СЕТКА ОБЪЯВЛЕНИЙ (2 КАРТОЧКИ В РЯДУ) ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 4px;
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.listing-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.listing-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #2d3748;
}

.listing-body {
    padding: 16px 18px 18px;
}

.listing-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 16px;
}

.listing-category {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.listing-category .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.listing-server {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #00b36b;
    font-weight: 500;
}

.listing-server svg {
    width: 13px;
    height: 13px;
    stroke: #00b36b;
}

.listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.listing-price {
    color: #00b36b;
    font-size: 20px;
    font-weight: 700;
}

.listing-price span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 2px;
}

.listing-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

/* ===== СЕРДЕЧКО (избранное) ===== */
.listing-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
    padding: 0;
}

.listing-favorite:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.7);
}

.listing-favorite svg {
    width: 20px;
    height: 20px;
    transition: all 0.25s ease;
}

.listing-favorite .heart-outline {
    color: rgba(255, 255, 255, 0.4);
}

.listing-favorite .heart-filled {
    color: #ef4444;
    display: none;
}

.listing-favorite.active .heart-outline {
    display: none;
}

.listing-favorite.active .heart-filled {
    display: block;
}

.listing-favorite.active {
    background: rgba(239, 68, 68, 0.15);
}

.listing-favorite.active:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-state {
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 48px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    grid-column: 1 / -1;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    stroke: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.empty-state .title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 500;
}

.empty-state .desc {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    margin-top: 4px;
}

/* ============================================
   СТИЛИ ДЛЯ ПРОСМОТРА ОБЪЯВЛЕНИЯ
   ============================================ */

.listing-view {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.listing-card-full {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery {
    position: relative;
    width: 100%;
    height: 480px;
    background: rgba(0, 0, 0, 0.50);
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.30);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.20);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    color: white;
    padding: 0;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.gallery-arrow-left {
    left: 16px;
}

.gallery-arrow-right {
    right: 16px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 24px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #00b36b;
    transform: scale(1.25);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== КОНТЕНТ ТОВАРА ===== */
.listing-body-full {
    padding: 24px 28px 20px;
}

.listing-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.listing-title-full {
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.listing-price-full {
    font-size: 28px;
    font-weight: 700;
    color: #00b36b;
    white-space: nowrap;
}

.listing-price-full span {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 2px;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 16px;
}

.listing-meta-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-meta-item .server-tag {
    color: #00b36b;
    font-weight: 500;
}

.listing-meta-item .category-tag {
    color: rgba(255, 255, 255, 0.5);
}

.listing-meta-item .status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.listing-meta-item .status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.listing-meta-item .status-badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.listing-meta-item svg {
    width: 16px;
    height: 16px;
}

.listing-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
    margin: 12px 0 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.listing-description p {
    margin-bottom: 8px;
}

.listing-description p:last-child {
    margin-bottom: 0;
}

/* ===== ПРОДАВЕЦ ===== */
.seller-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
}

.seller-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.seller-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(0, 179, 107, 0.3);
    object-fit: cover;
    background: #2d3748;
}

.seller-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2.5px solid rgba(20, 20, 30, 0.9);
}

.seller-status.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.seller-status.offline {
    background: #6b7280;
}

.seller-info {
    flex: 1;
}

.seller-name {
    color: white;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.seller-name .badge {
    display: inline-flex;
    align-items: center;
}

.seller-name .badge svg {
    width: 18px;
    height: 18px;
}

.seller-name .owner-tag {
    font-size: 11px;
    font-weight: 500;
    color: #00b36b;
    background: rgba(0, 179, 107, 0.12);
    padding: 2px 12px;
    border-radius: 12px;
}

.seller-status-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.seller-status-text.online {
    color: #22c55e;
}

.seller-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ===== КНОПКИ ДЛЯ ВЛАДЕЛЬЦА ===== */
.btn-edit {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-edit:hover {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-edit svg {
    width: 18px;
    height: 18px;
}

.btn-delete {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.btn-delete svg {
    width: 18px;
    height: 18px;
}

.btn-toggle-status {
    padding: 10px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-status:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-toggle-status svg {
    width: 18px;
    height: 18px;
}

/* ===== КНОПКИ ДЛЯ ПОКУПАТЕЛЯ ===== */
.btn-chat {
    padding: 10px 28px;
    border-radius: 10px;
    border: none;
    background: #00b36b;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 16px rgba(0, 179, 107, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-chat:hover {
    background: #009459;
    box-shadow: 0 4px 24px rgba(0, 179, 107, 0.35);
    transform: translateY(-2px);
}

.btn-chat svg {
    width: 20px;
    height: 20px;
}

.btn-favorite-outline {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-favorite-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-favorite-outline.active {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
}

.btn-favorite-outline svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   СТИЛИ ДЛЯ СОЗДАНИЯ/РЕДАКТИРОВАНИЯ
   ============================================ */

.create-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #00b36b;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 179, 107, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
    line-height: 1.6;
}

.form-select {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.form-select:focus {
    border-color: #00b36b;
    background: rgba(255, 255, 255, 0.06);
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-cancel {
    padding: 10px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== ЗАГРУЗКА ФОТО ===== */
.photo-upload {
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.photo-upload:hover {
    border-color: rgba(0, 179, 107, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.photo-upload svg {
    width: 48px;
    height: 48px;
    stroke: rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
}

.photo-upload .title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.photo-upload .sub {
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    margin-top: 4px;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.photo-preview {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview .remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.photo-preview .remove:hover {
    background: #ef4444;
}

.photo-preview .remove svg {
    width: 14px;
    height: 14px;
}

.photo-preview .add-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    gap: 4px;
    cursor: pointer;
}

.photo-preview .add-more svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.15);
}

.photo-preview .add-more:hover {
    color: rgba(255, 255, 255, 0.4);
}

.photo-preview .add-more:hover svg {
    stroke: rgba(255, 255, 255, 0.3);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #ef4444;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
}

.modal-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn-cancel {
    padding: 10px 28px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.modal-btn-delete {
    padding: 10px 28px;
    border-radius: 10px;
    border: none;
    background: #ef4444;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-delete:hover {
    background: #dc2626;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    .sidebar-right {
        display: none;
    }
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .listing-image {
        height: 180px;
    }
    .gallery {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
        height: 60px;
    }
    .header-logo {
        height: 34px;
    }
    .header-divider,
    .header-subtitle {
        display: none;
    }
    .header-icon {
        width: 38px;
        height: 38px;
    }
    .header-icon svg {
        width: 21px;
        height: 21px;
    }
    .avatar-small {
        width: 34px;
        height: 34px;
    }

    .sidebar-left {
        display: none;
    }

    .main-container {
        margin-top: 80px;
        padding: 0 12px;
    }

    /* Профиль */
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-name-row {
        justify-content: center;
    }
    .profile-details {
        justify-content: center;
    }
    .profile-stats {
        justify-content: center;
    }
    .profile-actions {
        justify-content: center;
    }
    .profile-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Друзья */
    .friends-header {
        padding: 18px 16px;
    }
    .friends-title {
        font-size: 20px;
    }
    .friends-tabs {
        flex-wrap: wrap;
    }
    .friends-tab {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
        min-width: 80px;
    }
    .search-container {
        flex-wrap: wrap;
    }
    .search-input {
        min-width: 140px;
        flex: 1 1 100%;
    }
    .search-select {
        flex: 1;
        min-width: 100px;
    }
    .search-results-count {
        margin-left: 0;
        width: 100%;
        text-align: left;
        margin-top: 4px;
    }
    .friend-card {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .friend-actions {
        width: 100%;
        margin-top: 4px;
        gap: 6px;
    }
    .friend-btn,
    .friend-btn-outline,
    .friend-btn-add,
    .friend-btn-pending,
    .friend-btn-danger,
    .friend-btn-accept,
    .friend-btn-reject {
        flex: 1;
        text-align: center;
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Редактирование профиля */
    .edit-card {
        padding: 20px 16px;
    }
    .edit-title {
        font-size: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .form-actions {
        flex-direction: column;
    }
    .btn-save,
    .btn-cancel {
        width: 100%;
        text-align: center;
    }

    /* Радио */
    .radio-card {
        padding: 20px 16px;
    }
    .radio-title {
        font-size: 22px;
    }
    .track-art-container {
        width: 180px;
        height: 180px;
    }
    .track-title {
        font-size: 20px;
    }
    .track-artist {
        font-size: 15px;
    }
    .progress-container {
        max-width: 100%;
    }
    .volume-control {
        flex: 0 1 100px;
    }

    /* Лента */
    .filters {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    .filter-group {
        flex-wrap: wrap;
        width: 100%;
    }
    .filter-btn {
        flex: 1;
        text-align: center;
        padding: 6px 12px;
        font-size: 12px;
    }
    .filter-select {
        flex: 1;
        min-width: 100px;
        font-size: 12px;
        padding: 6px 12px;
    }
    .filter-divider {
        display: none;
    }
    .filter-spacer {
        display: none;
    }
    .filter-count {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
    .create-post-top {
        flex-direction: column;
        align-items: stretch;
    }
    .post-card {
        padding: 14px 14px 10px;
    }
    .post-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Маркетплейс */
    .marketplace-header {
        padding: 16px 16px;
    }
    .marketplace-title {
        font-size: 20px;
    }
    .marketplace-actions {
        gap: 8px;
    }
    .action-btn {
        font-size: 13px;
        padding: 6px 14px;
    }
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .listing-image {
        height: 140px;
    }
    .listing-body {
        padding: 12px 14px 14px;
    }
    .listing-title {
        font-size: 14px;
    }
    .listing-price {
        font-size: 17px;
    }
    .listing-favorite {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }
    .listing-favorite svg {
        width: 16px;
        height: 16px;
    }
    .filter-group {
        flex-wrap: wrap;
        width: 100%;
    }
    .filter-btn {
        flex: 1;
        text-align: center;
        padding: 6px 10px;
        font-size: 12px;
        min-width: 50px;
    }
    .filter-select {
        flex: 1;
        min-width: 120px;
        font-size: 12px;
        padding: 6px 12px;
    }
    .filter-divider {
        display: none;
    }
    .filter-spacer {
        display: none;
    }
    .filter-count {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
    .gallery {
        height: 320px;
    }
    .gallery-arrow {
        width: 36px;
        height: 36px;
    }
    .gallery-arrow svg {
        width: 18px;
        height: 18px;
    }
    .gallery-arrow-left {
        left: 10px;
    }
    .gallery-arrow-right {
        right: 10px;
    }
    .gallery-dots {
        padding: 6px 12px;
        gap: 8px;
        bottom: 14px;
    }
    .gallery-dot {
        width: 8px;
        height: 8px;
    }
    .listing-body-full {
        padding: 18px 16px 16px;
    }
    .listing-title-full {
        font-size: 20px;
    }
    .listing-price-full {
        font-size: 22px;
    }
    .listing-top-row {
        flex-direction: column;
    }
    .seller-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .seller-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .btn-edit,
    .btn-delete,
    .btn-toggle-status,
    .btn-chat,
    .btn-favorite-outline {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    .form-card {
        padding: 20px 16px;
    }
    .form-title {
        font-size: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .photo-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .form-actions {
        flex-direction: column;
    }
    .btn-primary,
    .btn-cancel {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .modal {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
        height: 56px;
    }
    .header-logo {
        height: 28px;
    }
    .header-right {
        gap: 10px;
    }
    .header-icon {
        width: 34px;
        height: 34px;
    }
    .header-icon svg {
        width: 18px;
        height: 18px;
    }
    .avatar-small {
        width: 30px;
        height: 30px;
    }

    .main-container {
        margin-top: 72px;
        padding: 0 8px;
        gap: 12px;
    }

    /* Профиль */
    .profile-avatar {
        width: 72px;
        height: 72px;
    }
    .profile-nickname {
        font-size: 20px;
    }
    .profile-login {
        font-size: 14px;
    }
    .profile-details {
        font-size: 13px;
        gap: 12px;
    }
    .profile-stats {
        gap: 16px;
    }
    .profile-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Друзья */
    .friends-header {
        padding: 14px 12px;
    }
    .friends-title {
        font-size: 18px;
    }
    .friends-tab {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 60px;
    }
    .search-input,
    .search-select {
        font-size: 13px;
        padding: 8px 12px;
    }
    .search-btn,
    .search-btn-outline {
        font-size: 13px;
        padding: 8px 16px;
    }
    .friend-avatar {
        width: 42px;
        height: 42px;
    }
    .friend-status {
        width: 12px;
        height: 12px;
    }
    .friend-name {
        font-size: 14px;
    }
    .friend-login {
        font-size: 12px;
    }

    /* Редактирование профиля */
    .edit-card {
        padding: 16px 12px;
    }
    .edit-title {
        font-size: 18px;
    }
    .form-input,
    .form-select {
        font-size: 14px;
        padding: 8px 12px;
    }
    .btn-save,
    .btn-cancel {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Радио */
    .radio-card {
        padding: 16px 12px;
    }
    .radio-title {
        font-size: 20px;
    }
    .track-art-container {
        width: 140px;
        height: 140px;
    }
    .track-title {
        font-size: 18px;
    }
    .track-artist {
        font-size: 14px;
    }
    .btn-play {
        width: 48px;
        height: 48px;
    }
    .btn-play svg {
        width: 22px;
        height: 22px;
    }
    .volume-control {
        flex: 0 1 80px;
    }

    /* Лента */
    .filters {
        padding: 10px 12px;
        gap: 8px;
    }
    .filter-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
    .filter-select {
        font-size: 11px;
        padding: 4px 10px;
        min-width: 80px;
    }
    .filter-count {
        font-size: 11px;
    }
    .create-post {
        padding: 12px 14px 10px;
    }
    .create-post-textarea {
        font-size: 13px;
        min-height: 50px;
        padding: 10px 12px;
    }
    .create-post-btn {
        font-size: 12px;
        padding: 4px 10px;
    }
    .create-post-submit {
        padding: 6px 16px;
        font-size: 13px;
    }
    .post-card {
        padding: 12px 12px 8px;
    }
    .post-content {
        font-size: 13px;
    }
    .post-image {
        max-height: 250px;
    }
    .post-action {
        font-size: 12px;
        padding: 2px 6px;
    }
    .post-action svg {
        width: 16px;
        height: 16px;
    }
    .post-notification {
        padding: 12px 16px;
        font-size: 13px;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Маркетплейс */
    .marketplace-header {
        padding: 12px 12px;
    }
    .marketplace-title {
        font-size: 18px;
    }
    .marketplace-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .action-btn {
        font-size: 12px;
        padding: 5px 12px;
        white-space: normal;
    }
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .listing-image {
        height: 180px;
    }
    .listing-body {
        padding: 12px 14px 14px;
    }
    .listing-title {
        font-size: 15px;
    }
    .listing-price {
        font-size: 18px;
    }
    .listing-favorite {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }
    .listing-favorite svg {
        width: 18px;
        height: 18px;
    }
    .filter-btn {
        font-size: 11px;
        padding: 4px 8px;
        min-width: 40px;
    }
    .filter-select {
        font-size: 11px;
        padding: 4px 10px;
        min-width: 100px;
    }
    .filter-count {
        font-size: 11px;
    }
    .gallery {
        height: 260px;
    }
    .gallery-arrow {
        width: 30px;
        height: 30px;
    }
    .gallery-arrow svg {
        width: 16px;
        height: 16px;
    }
    .gallery-arrow-left {
        left: 6px;
    }
    .gallery-arrow-right {
        right: 6px;
    }
    .gallery-dots {
        padding: 4px 10px;
        gap: 6px;
        bottom: 10px;
    }
    .gallery-dot {
        width: 7px;
        height: 7px;
    }
    .listing-body-full {
        padding: 14px 12px 12px;
    }
    .listing-title-full {
        font-size: 18px;
    }
    .listing-price-full {
        font-size: 20px;
    }
    .listing-description {
        font-size: 14px;
        padding: 12px 14px;
    }
    .seller-avatar {
        width: 44px;
        height: 44px;
    }
    .seller-name {
        font-size: 15px;
    }
    .btn-edit,
    .btn-delete,
    .btn-toggle-status,
    .btn-chat,
    .btn-favorite-outline {
        font-size: 13px;
        padding: 8px 16px;
        min-width: 100px;
    }
    .form-card {
        padding: 14px 12px;
    }
    .form-title {
        font-size: 18px;
    }
    .form-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .form-group {
        margin-bottom: 14px;
    }
    .form-label {
        font-size: 13px;
    }
    .form-input {
        font-size: 13px;
        padding: 8px 12px;
    }
    .photo-upload {
        padding: 24px 16px;
    }
    .photo-upload svg {
        width: 36px;
        height: 36px;
    }
    .photo-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .btn-primary,
    .btn-cancel {
        font-size: 14px;
        padding: 10px 20px;
    }
    .modal {
        padding: 20px 16px;
    }
    .modal-title {
        font-size: 18px;
    }
    .modal-btn-cancel,
    .modal-btn-delete {
        font-size: 13px;
        padding: 8px 20px;
    }

    /* Общее */
    .login-container .card,
    .register-container .card,
    .welcome-container .card {
        padding: 16px 12px;
    }
    .card-title {
        font-size: 20px;
    }
    .welcome-container .card-title {
        font-size: 22px;
    }
    .btn-primary,
    .btn-secondary {
        font-size: 15px;
        padding: 10px 16px;
    }
}

/* ============================================
   УТИЛИТЫ
   ============================================ */

.text-red-600 {
    color: #dc2626;
}
.text-green-600 {
    color: #16a34a;
}
.text-sm {
    font-size: 0.875rem;
}
.text-xs {
    font-size: 0.75rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-4 {
    margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
    .dark\:text-red-400 {
        color: #f87171;
    }
    .dark\:text-green-400 {
        color: #4ade80;
    }
}