@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    background: #F4F3EF;
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
    line-height: 1.4;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* ================================================================ */
/* ========== HEADER ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 24px 0;
    border-bottom: 1px solid #E2DFD7;
    margin-bottom: 32px;
    position: relative;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #1A1A1A;
    flex-shrink: 0;
}

.logo-accent {
    color: #A87B4A;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid #1A1A1A;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    color: #1A1A1A;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    border-color: #A87B4A;
    color: #A87B4A;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #5A5A5A;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #A87B4A;
}

.nav-link.active {
    color: #A87B4A;
    font-weight: 600;
}

.lang-select {
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid #E2DFD7;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.lang-select:focus {
    border-color: #A87B4A;
}

.theme-toggle {
    background: none;
    border: 1px solid #E2DFD7;
    border-radius: 30px;
    padding: 4px 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1A1A1A;
}

.theme-toggle:hover {
    border-color: #A87B4A;
    transform: scale(1.05);
}

/* ================================================================ */
/* ========== MARKETPLACE ========== */
.marketplace-layout {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 3;
    min-width: 0;
}

.platform-sidebar {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #E2DFD7;
    height: fit-content;
}

.platform-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-chip {
    background: #F4F3EF;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.platform-chip.active {
    background: #1A1A1A;
    color: white;
}

/* ========== SEARCH ========== */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E2DFD7;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    outline: none;
    min-width: 150px;
}

.search-input:focus {
    border-color: #A87B4A;
}

.search-select {
    padding: 12px 16px;
    border: 1px solid #E2DFD7;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    outline: none;
    min-width: 150px;
    cursor: pointer;
}

.search-select:focus {
    border-color: #A87B4A;
}

.search-btn {
    padding: 12px 28px;
    background: #1A1A1A;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

/* ========== ACCOUNTS GRID ========== */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.account-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #E9E7E2;
    transition: 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.account-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.account-card img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 12px;
    height: auto;
}

.account-platform {
    font-size: 11px;
    font-weight: 600;
    color: #A87B4A;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.account-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-word;
}

.account-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.seller-info {
    font-size: 13px;
    color: #8A8A8A;
    padding-top: 12px;
    border-top: 1px solid #EFEDE8;
    margin-bottom: 16px;
}

.btn-view {
    width: 100%;
    padding: 10px;
    background: #F4F3EF;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.buy-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.buy-actions .btn-view {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

.btn-view.buy-now {
    background: #1A1A1A;
    color: white;
}

.btn-view.buy-now:hover {
    background: #333;
}

.btn-view.buy-guarantee {
    background: #A87B4A;
    color: white;
}

.btn-view.buy-guarantee:hover {
    background: #C4935A;
}

/* ========== PROFILE ========== */
.profile-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid #E9E7E2;
}

.profile-balance {
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0 24px 0;
}

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

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #D1CEC6;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    border-color: #A87B4A;
    color: #A87B4A;
}

/* ========== SELL FORM ========== */
.form-card {
    max-width: 520px;
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin: 0 auto;
    border: 1px solid #E9E7E2;
    width: 100%;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #E2DFD7;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #A87B4A;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #1A1A1A;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.platform-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.platform-oval {
    background: #F4F3EF;
    border: 1px solid #E2DFD7;
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.platform-oval.selected {
    background: #1A1A1A;
    color: white;
    border-color: #A87B4A;
}

/* ========== REVIEWS ========== */
.reviews-list {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #E2DFD7;
}

.review-item {
    padding: 12px 0;
    border-bottom: 1px solid #EFEDE8;
}

.review-item:last-child {
    border-bottom: none;
}

.review-rating {
    color: #A87B4A;
    font-weight: 600;
}

.review-meta {
    font-size: 12px;
    color: #8A8A8A;
}

/* ========== TICKETS ========== */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #E2DFD7;
    cursor: pointer;
    transition: 0.2s;
}

.ticket-card:hover {
    border-color: #A87B4A;
}

.ticket-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.ticket-status.open {
    background: #D4EDDA;
    color: #155724;
}

.ticket-status.closed {
    background: #F8D7DA;
    color: #721C24;
}

.ticket-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.ticket-message {
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #F4F3EF;
    word-break: break-word;
}

.ticket-message.support {
    background: #E2DFD7;
}

.ticket-meta {
    font-size: 11px;
    color: #8A8A8A;
}

.reply-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.reply-form textarea {
    flex: 1;
    min-height: 50px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #E2DFD7;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #8A8A8A;
    transition: 0.2s;
    line-height: 1;
}

.close:hover {
    color: #1A1A1A;
}

.deposit-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: #F4F3EF;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    min-width: 80px;
}

.tab-btn.active {
    background: #1A1A1A;
    color: white;
}

.wallet-address {
    background: #F4F3EF;
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
    word-break: break-all;
}

.image-preview img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 12px;
    height: auto;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #8A8A8A;
}

/* ========== ACCOUNT DETAIL ========== */
.account-detail {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

.detail-card {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #E2DFD7;
}

.detail-image {
    flex: 1;
}

.detail-image img {
    max-width: 100%;
    border-radius: 16px;
    height: auto;
}

.detail-info {
    flex: 2;
    min-width: 0;
}

.detail-platform {
    font-size: 12px;
    color: #A87B4A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-title {
    font-size: 28px;
    margin: 8px 0;
    word-break: break-word;
}

.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
}

.detail-description {
    margin: 16px 0;
    color: #4A4A4A;
    word-break: break-word;
}

.detail-seller {
    color: #8A8A8A;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.detail-actions .btn-primary {
    flex: 1;
    min-width: 120px;
}

.credentials {
    background: #F4F3EF;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 12px;
    word-break: break-word;
}

/* ========== USER TOAST ========== */
.user-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #155724;
    color: white;
    padding: 14px 24px;
    border-radius: 16px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 400px;
    word-break: break-word;
}

.user-toast.error {
    background: #721C24;
}

/* ========== CUSTOM MODALS ========== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: customModalFadeIn 0.3s ease;
    padding: 16px;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.custom-modal-box {
    position: relative;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: customModalSlideUp 0.3s ease;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.custom-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #8A8A8A;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.custom-modal-close:hover {
    color: #1A1A1A;
}

.custom-modal-body {
    margin-bottom: 24px;
}

.custom-modal-body p {
    font-size: 15px;
    color: #4A4A4A;
    line-height: 1.6;
    margin: 0;
}

.custom-modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2DFD7;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    margin-top: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.custom-modal-input:focus {
    border-color: #A87B4A;
}

.custom-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-modal-btn-primary {
    background: #1A1A1A;
    color: white;
}

.custom-modal-btn-primary:hover {
    background: #333333;
}

.custom-modal-btn-secondary {
    background: #F4F3EF;
    color: #4A4A4A;
}

.custom-modal-btn-secondary:hover {
    background: #E8E5DE;
}

@keyframes customModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes customModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal-box.dark {
    background: #1E1E2F;
    border: 1px solid #33334A;
}

.custom-modal-box.dark .custom-modal-header h3 {
    color: #FFFFFF;
}

.custom-modal-box.dark .custom-modal-body p {
    color: #C0C0D0;
}

.custom-modal-box.dark .custom-modal-input {
    background: #2A2A40;
    border-color: #444466;
    color: white;
}

.custom-modal-box.dark .custom-modal-input:focus {
    border-color: #A87B4A;
}

.custom-modal-box.dark .custom-modal-btn-primary {
    background: #A87B4A;
    color: white;
}

.custom-modal-box.dark .custom-modal-btn-primary:hover {
    background: #C4935A;
}

.custom-modal-box.dark .custom-modal-btn-secondary {
    background: #33334A;
    color: #C0C0D0;
}

.custom-modal-box.dark .custom-modal-btn-secondary:hover {
    background: #444466;
}

.custom-modal-box.dark .custom-modal-close {
    color: #8888AA;
}

.custom-modal-box.dark .custom-modal-close:hover {
    color: #FFFFFF;
}

/* ========== AGENTS ========== */
.agent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #E2DFD7;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-item:hover {
    border-color: #A87B4A;
    background: #F8F7F4;
}

.agent-item.selected {
    border-color: #A87B4A;
    background: #F0EBE3;
}

.agent-item .agent-name {
    font-weight: 600;
}

.agent-item .agent-fee {
    font-size: 12px;
    color: #8A8A8A;
}

/* ========== STARS ========== */
#starRating span {
    transition: color 0.2s;
    cursor: pointer;
    font-size: 28px;
}

#starRating span:hover,
#starRating span.active {
    color: #F5C518;
}

/* ================================================================ */
/* ========== LANDING PAGE ========== */
#landingPage {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.stats-row-landing {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    background: white;
    border-radius: 24px;
    padding: 40px 20px;
    margin-bottom: 50px;
    border: 1px solid #E2DFD7;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 140px;
}

.stat-number {
    font-size: 44px;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -1px;
}

.stat-number span {
    color: #A87B4A;
    font-size: 32px;
}

.stat-label {
    font-size: 14px;
    color: #6A6A6A;
    font-weight: 500;
    margin-top: 4px;
}

.process-section {
    margin-bottom: 50px;
}

.process-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1A1A1A;
    text-align: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.process-step {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #E2DFD7;
    align-items: flex-start;
    transition: all 0.2s;
}

.process-step:hover {
    border-color: #A87B4A;
    box-shadow: 0 4px 16px rgba(168, 123, 74, 0.08);
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #1A1A1A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1A1A1A;
}

.step-content p {
    font-size: 14px;
    color: #5A5A5A;
    line-height: 1.5;
    margin: 0;
}

.why-section {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid #E2DFD7;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin: 20px 0 30px;
}

.why-card {
    text-align: center;
    padding: 20px 16px;
    border-radius: 16px;
    background: #F8F7F4;
    transition: all 0.2s;
}

.why-card:hover {
    background: #F0EBE3;
}

.why-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.why-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1A1A1A;
}

.why-card p {
    font-size: 14px;
    color: #5A5A5A;
    line-height: 1.5;
    margin: 0;
}

.contact-section {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid #E2DFD7;
    text-align: center;
}

.contact-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 14px;
    color: #4A4A4A;
}

.contact-item span {
    font-weight: 600;
    color: #1A1A1A;
}

.section {
    margin-bottom: 32px;
}

.section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

/* ================================================================ */
/* ========== DARK THEME (КОНТРАСТНАЯ) ========== */
:root {
    --bg-color: #F4F3EF;
    --card-bg: #FFFFFF;
    --text-color: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted: #8A8A8A;
    --border-color: #E2DFD7;
    --input-bg: #FFFFFF;
    --shadow-color: rgba(0,0,0,0.04);
    --modal-overlay: rgba(0,0,0,0.5);
    --nav-bg: #FFFFFF;
    --hover-bg: #F8F7F4;
    --step-bg: #1A1A1A;
    --step-color: #FFFFFF;
    --link-color: #A87B4A;
    --link-hover: #C4935A;
    --badge-bg: #E8E5DE;
    --badge-text: #4A4A4A;
    --status-open-bg: #D4EDDA;
    --status-open-text: #155724;
    --status-closed-bg: #F8D7DA;
    --status-closed-text: #721C24;
}

[data-theme="dark"] {
    --bg-color: #0D0D0D;
    --card-bg: #1A1A1A;
    --text-color: #F0F0F0;
    --text-secondary: #C0C0C0;
    --text-muted: #999999;
    --border-color: #3A3A3A;
    --input-bg: #2A2A2A;
    --shadow-color: rgba(255,255,255,0.04);
    --modal-overlay: rgba(0,0,0,0.85);
    --nav-bg: #1A1A1A;
    --hover-bg: #2A2A2A;
    --step-bg: #A87B4A;
    --step-color: #FFFFFF;
    --link-color: #C4935A;
    --link-hover: #DBAF7A;
    --badge-bg: #3A3A3A;
    --badge-text: #E0E0E0;
    --status-open-bg: #1A3A2A;
    --status-open-text: #7DDFA0;
    --status-closed-bg: #3A1A1A;
    --status-closed-text: #FF7D7D;
}

/* ===== ОСНОВНЫЕ ЦВЕТА ===== */
[data-theme="dark"] body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* ===== КАРТОЧКИ ===== */
[data-theme="dark"] .account-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .platform-sidebar,
[data-theme="dark"] .reviews-list,
[data-theme="dark"] .ticket-card,
[data-theme="dark"] .why-section,
[data-theme="dark"] .stats-row-landing,
[data-theme="dark"] .process-step,
[data-theme="dark"] .why-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .custom-modal-box,
[data-theme="dark"] .nav,
[data-theme="dark"] .header,
[data-theme="dark"] .detail-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* ===== ТЕКСТ ===== */
[data-theme="dark"] .nav-link,
[data-theme="dark"] .logo,
[data-theme="dark"] .process-title,
[data-theme="dark"] .step-content h4,
[data-theme="dark"] .why-card h4,
[data-theme="dark"] .contact-section h4,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .ticket-subject,
[data-theme="dark"] .account-title,
[data-theme="dark"] .seller-info,
[data-theme="dark"] .detail-title,
[data-theme="dark"] .detail-price,
[data-theme="dark"] .profile-balance,
[data-theme="dark"] .section h3,
[data-theme="dark"] .detail-description,
[data-theme="dark"] .ticket-meta,
[data-theme="dark"] .review-meta,
[data-theme="dark"] .loading-state,
[data-theme="dark"] .stat-item .stat-number,
[data-theme="dark"] .platform-title,
[data-theme="dark"] .detail-seller,
[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .form-card h2 {
    color: var(--text-color);
}

[data-theme="dark"] .stat-number span {
    color: var(--link-color);
}

[data-theme="dark"] .step-content p,
[data-theme="dark"] .why-card p,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .detail-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-label {
    color: var(--text-muted);
}

/* ===== ССЫЛКИ ===== */
[data-theme="dark"] .nav-link:hover {
    color: var(--link-hover);
}

[data-theme="dark"] .nav-link.active {
    color: var(--link-color);
}

[data-theme="dark"] .logo-accent {
    color: var(--link-color);
}

[data-theme="dark"] .account-platform {
    color: var(--link-color);
}

[data-theme="dark"] .detail-platform {
    color: var(--link-color);
}

/* ===== БУРГЕР МЕНЮ (МОБИЛА) ===== */
[data-theme="dark"] .mobile-menu-btn {
    border-color: var(--link-color);
    color: var(--link-color);
}

[data-theme="dark"] .mobile-menu-btn:hover {
    border-color: var(--link-hover);
    color: var(--link-hover);
}

/* ===== ИНПУТЫ ===== */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--link-color);
    outline: none;
}

/* ===== КНОПКИ ===== */
[data-theme="dark"] .btn-primary {
    background: var(--step-bg);
    color: var(--step-color);
}

[data-theme="dark"] .btn-primary:hover {
    opacity: 0.85;
    background: var(--link-hover);
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--border-color);
    color: var(--text-color);
    background: transparent;
}

[data-theme="dark"] .btn-secondary:hover {
    border-color: var(--link-color);
    color: var(--link-color);
}

[data-theme="dark"] .btn-view {
    background: #2A2A2A;
    color: var(--text-color);
}

[data-theme="dark"] .btn-view.buy-now {
    background: var(--step-bg);
    color: white;
}

[data-theme="dark"] .btn-view.buy-now:hover {
    background: var(--link-hover);
}

[data-theme="dark"] .btn-view.buy-guarantee {
    background: var(--link-color);
    color: white;
}

[data-theme="dark"] .btn-view.buy-guarantee:hover {
    background: var(--link-hover);
}

/* ===== ПЛАТФОРМЫ ===== */
[data-theme="dark"] .platform-oval {
    background: #2A2A2A;
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .platform-oval.selected {
    background: var(--link-color);
    color: white;
    border-color: var(--link-color);
}

[data-theme="dark"] .platform-chip {
    background: #2A2A2A;
    color: var(--text-color);
}

[data-theme="dark"] .platform-chip.active {
    background: var(--link-color);
    color: white;
}

/* ===== БЕЙДЖИ ===== */
[data-theme="dark"] .badge {
    background: var(--badge-bg);
    color: var(--badge-text);
}

[data-theme="dark"] .ticket-status.open {
    background: var(--status-open-bg);
    color: var(--status-open-text);
}

[data-theme="dark"] .ticket-status.closed {
    background: var(--status-closed-bg);
    color: var(--status-closed-text);
}

/* ===== СООБЩЕНИЯ ===== */
[data-theme="dark"] .ticket-message {
    background: #2A2A2A;
    color: var(--text-color);
}

[data-theme="dark"] .ticket-message.support {
    background: #1A2A3A;
    color: var(--text-color);
}

/* ===== КРЕДЕНШИАЛЫ ===== */
[data-theme="dark"] .credentials {
    background: #2A2A2A;
    color: var(--text-color);
    border-color: var(--border-color);
}

/* ===== ПОИСК ===== */
[data-theme="dark"] .search-input,
[data-theme="dark"] .search-select {
    background: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-btn {
    background: var(--link-color);
    color: white;
}

[data-theme="dark"] .search-btn:hover {
    background: var(--link-hover);
}

/* ===== МОДАЛКИ ===== */
[data-theme="dark"] .close {
    color: var(--text-muted);
}

[data-theme="dark"] .close:hover {
    color: var(--text-color);
}

[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    color: var(--text-color);
}

/* ===== АГЕНТЫ ===== */
[data-theme="dark"] .agent-item {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .agent-item:hover {
    border-color: var(--link-color);
    background: var(--hover-bg);
}

[data-theme="dark"] .agent-item.selected {
    border-color: var(--link-color);
    background: #2A2A2A;
}

[data-theme="dark"] .agent-item .agent-fee {
    color: var(--text-muted);
}

/* ===== ОТЗЫВЫ ===== */
[data-theme="dark"] .review-item {
    border-color: var(--border-color);
}

[data-theme="dark"] .review-rating {
    color: #F5C518;
}

/* ===== ТОСТЫ ===== */
[data-theme="dark"] .user-toast {
    background: #1A3A2A;
    color: #E0E0E0;
    border-color: #2A5A3A;
}

[data-theme="dark"] .user-toast.error {
    background: #3A1A1A;
    color: #FFD0D0;
    border-color: #5A2A2A;
}

/* ===== КАСТОМНЫЕ МОДАЛКИ ===== */
[data-theme="dark"] .custom-modal-box {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .custom-modal-box .custom-modal-header h3 {
    color: var(--text-color);
}

[data-theme="dark"] .custom-modal-box .custom-modal-body p {
    color: var(--text-secondary);
}

[data-theme="dark"] .custom-modal-box .custom-modal-input {
    background: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .custom-modal-box .custom-modal-input:focus {
    border-color: var(--link-color);
}

[data-theme="dark"] .custom-modal-box .custom-modal-btn-primary {
    background: var(--link-color);
    color: white;
}

[data-theme="dark"] .custom-modal-box .custom-modal-btn-primary:hover {
    background: var(--link-hover);
}

[data-theme="dark"] .custom-modal-box .custom-modal-btn-secondary {
    background: #2A2A2A;
    color: var(--text-color);
}

[data-theme="dark"] .custom-modal-box .custom-modal-btn-secondary:hover {
    background: #3A3A3A;
}

[data-theme="dark"] .custom-modal-box .custom-modal-close {
    color: var(--text-muted);
}

[data-theme="dark"] .custom-modal-box .custom-modal-close:hover {
    color: var(--text-color);
}

/* ================================================================ */
/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .container {
        padding: 12px 16px;
    }

    .header {
        padding: 12px 0 16px 0;
        margin-bottom: 20px;
        gap: 8px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-accent {
        font-size: 18px;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 22px;
        padding: 6px 12px;
        border-width: 2px;
        border-radius: 10px;
        margin-left: auto;
        background: transparent;
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        background: var(--card-bg);
        border-radius: 16px;
        margin-top: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        border: 2px solid var(--border-color);
        overflow: hidden;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }

    .nav.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

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

    .nav-link {
        padding: 14px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        font-size: 15px;
        white-space: normal;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .lang-select {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
        margin: 0;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        min-width: unset;
        background: var(--input-bg);
    }

    .theme-toggle {
        width: 100%;
        padding: 14px 20px;
        text-align: left;
        font-size: 18px;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        background: none;
        color: var(--text-color);
    }

    .theme-toggle:hover {
        transform: none;
    }

    .marketplace-layout {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .platform-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 16px;
        margin-bottom: 0;
        height: auto;
        border-radius: 16px;
    }

    .platform-title {
        width: 100%;
        margin-bottom: 4px;
        font-size: 13px;
    }

    .platform-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .platform-chip {
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 20px;
    }

    .main-content {
        width: 100%;
    }

    .search-bar {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .search-input {
        flex: 1 1 100%;
        font-size: 16px;
        padding: 12px 14px;
        border-radius: 12px;
        min-width: unset;
    }

    .search-select {
        width: 100%;
        font-size: 16px;
        padding: 12px 14px;
        border-radius: 12px;
        min-width: unset;
    }

    .search-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 12px;
        text-align: center;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .account-card {
        padding: 16px;
        border-radius: 16px;
    }

    .account-title {
        font-size: 16px;
    }

    .account-price {
        font-size: 18px;
    }

    .buy-actions {
        flex-direction: column;
        gap: 6px;
    }

    .buy-actions .btn-view {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        border-radius: 10px;
    }

    .profile-card {
        padding: 16px;
        border-radius: 16px;
    }

    .profile-balance {
        font-size: 16px;
        margin: 16px 0 20px 0;
    }

    .profile-actions {
        flex-direction: column;
        gap: 8px;
    }

    .profile-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 12px;
    }

    .form-card {
        padding: 20px 16px;
        margin: 0;
        border-radius: 16px;
        max-width: 100%;
    }

    .form-card h2 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 16px;
    }

    input, select, textarea {
        font-size: 16px !important;
        padding: 12px 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .platform-selector {
        gap: 8px;
        margin-bottom: 16px;
    }

    .platform-oval {
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 30px;
    }

    .ticket-card {
        padding: 14px;
        border-radius: 14px;
    }

    .reply-form {
        flex-direction: column;
        gap: 8px;
    }

    .reply-form textarea {
        min-height: 60px;
        font-size: 16px !important;
        padding: 12px;
    }

    .reply-form button {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
    }

    .ticket-messages {
        max-height: 300px;
    }

    .modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        padding: 20px 16px;
        margin: 0;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .close {
        font-size: 26px;
        top: 12px;
        right: 16px;
    }

    .deposit-tabs {
        gap: 8px;
    }

    .deposit-tabs .tab-btn {
        flex: 1 1 45%;
        padding: 10px;
        font-size: 14px;
        border-radius: 12px;
    }

    .custom-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .custom-modal-box {
        padding: 24px 20px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }

    .custom-modal-header h3 {
        font-size: 18px;
    }

    .custom-modal-body p {
        font-size: 14px;
    }

    .custom-modal-footer {
        flex-direction: row;
        gap: 8px;
    }

    .custom-modal-btn {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        text-align: center;
        border-radius: 12px;
    }

    .custom-modal-input {
        font-size: 16px !important;
        padding: 12px;
    }

    .user-toast {
        bottom: 16px !important;
        right: 16px !important;
        left: 16px !important;
        max-width: none !important;
        text-align: center;
        font-size: 14px !important;
        padding: 14px 18px !important;
        border-radius: 14px !important;
    }

    #landingPage {
        padding: 0;
    }

    .stats-row-landing {
        flex-direction: column;
        align-items: center;
        padding: 24px 16px;
        gap: 16px;
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .stat-item {
        min-width: unset;
        width: 100%;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-number span {
        font-size: 24px;
    }

    .stat-label {
        font-size: 13px;
    }

    .process-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .process-section {
        margin-bottom: 30px;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 18px;
        border-radius: 14px;
        gap: 12px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .step-content h4 {
        font-size: 15px;
    }

    .step-content p {
        font-size: 13px;
    }

    .why-section {
        padding: 20px 16px;
        border-radius: 16px;
        margin-bottom: 30px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 16px 0 20px;
    }

    .why-card {
        padding: 16px 12px;
        border-radius: 14px;
    }

    .why-card h4 {
        font-size: 15px;
    }

    .why-card p {
        font-size: 13px;
    }

    .contact-items {
        flex-direction: column;
        gap: 8px;
    }

    .contact-item {
        font-size: 13px;
    }

    .contact-section h4 {
        font-size: 16px;
    }

    .section h3 {
        font-size: 16px;
    }

    .account-detail {
        padding: 0;
        margin: 20px 0;
    }

    .detail-card {
        flex-direction: column;
        padding: 16px;
        border-radius: 16px;
        gap: 16px;
    }

    .detail-image {
        flex: none;
        width: 100%;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-price {
        font-size: 26px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn-primary {
        min-width: unset;
    }

    .agent-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 12px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-accent {
        font-size: 16px;
    }

    .mobile-menu-btn {
        font-size: 18px;
        padding: 4px 10px;
    }

    .account-card {
        padding: 14px;
    }

    .account-title {
        font-size: 15px;
    }

    .account-price {
        font-size: 17px;
    }

    .profile-balance {
        font-size: 15px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px;
        font-size: 14px;
        border-radius: 12px;
    }

    .search-input,
    .search-select {
        font-size: 15px !important;
        padding: 10px 12px;
    }

    .search-btn {
        padding: 12px;
        font-size: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .process-title {
        font-size: 20px;
    }

    .why-card h4 {
        font-size: 14px;
    }

    .why-card p {
        font-size: 12px;
    }

    .modal-content {
        padding: 16px 12px;
    }

    .custom-modal-box {
        padding: 20px 16px;
    }

    .custom-modal-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 16px 24px;
    }

    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .marketplace-layout {
        gap: 20px;
    }

    .platform-sidebar {
        flex: 0 0 200px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}