:root {
    --main-purple: #9C4DFF;
    --main-yellow: #FFC107;
}

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    background-color: #0D0D12;
    color: white;
    line-height: 1.6;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* App header (.header/.logo/.header-right/.btn-catalog/.balance) moved to css/app_header.css. */

/* Notification bell shell moved to js/notifications.js (self-injected). */

/* Profile dropdown + avatar shell moved to js/profile_menu.js (self-injected). */

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: black;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    font-size: 16px;
}

.search-bar input::placeholder {
    color: grey;
}

.btn-search {
    padding: 12px 24px;
    background: var(--main-purple);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background: var(--main-yellow);
    color: black;
}

.main {
    display: flex;
    gap: 24px;
    height: auto;
    overflow: hidden;
}

.filters-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--main-purple);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.filters {
    width: 285px;
    min-width: 285px;
    background: black;
    border-radius: 8px;
    padding: 20px;
    height: 99%;
    overflow-y: auto;
}

.filters h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: white;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: grey;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    color: white;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    padding: 4px 10px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 999px;
    color: #ddd;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.filter-chip:hover {
    border-color: var(--main-purple);
}

.filter-chip.active {
    background: var(--main-purple);
    border-color: var(--main-purple);
    color: #fff;
    font-weight: 600;
}

.filter-chips-empty,
.filter-checklist-empty {
    color: #777;
    font-size: 12px;
}

.filter-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-checklist label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
    font-size: 13px;
    cursor: pointer;
    margin: 0;
}

.filter-checklist input[type="checkbox"] {
    accent-color: var(--main-purple);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.85;
}

.btn-green {
    background: green;
    color: white;
}

.btn-grey {
    background: rgba(128, 128, 128, 0.5);
    color: white;
}

.results {
    flex: 1;
    border-bottom: #333;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sort-label {
    font-size: 14px;
    margin-top: 5px;
    margin-right: 5px;
}

.tab {
    padding: 8px 16px;
    background: #0D0D12;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.tab.active {
    color: var(--main-purple);
    border-bottom: 2px solid var(--main-purple);
}

.tab.tab-disabled {
    color: #555;
    cursor: not-allowed;
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 2fr));
    gap: 20px;
}

.streamer-card-v3 {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.streamer-card-v3:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.streamer-card-v3.selected {
    border: 2px solid var(--main-purple);
}

.streamer-card-v3.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--main-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
}

.streamer-card-header {
    background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 60px;
}

.streamer-avatar-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    top: 24px;
}

.streamer-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.streamer-card-name {
    position: absolute;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-left: 70px;
    top: 28px;
}

.streamer-verified-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    position: absolute;
    top: 70px;
    left: 88px;
}

.streamer-card-body {
    margin-top: 30px;
    padding: 20px;
}

.metrics-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.metric-v3 {
    background: black;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
}

.metric-label-v3 {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}

.metric-value-v3 {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.streamer-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-v3 {
    background: black;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.btn-select-format {
    width: 100%;
    padding: 12px 20px;
    background: var(--main-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select-format:hover {
    background: var(--main-yellow);
    color: black;
}

.integration-side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #1a1a1a;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 1200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.integration-side-panel.active {
    right: 0;
}

.integration-panel-header {
    padding: 20px;
    background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.integration-panel-streamer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streamer-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.streamer-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.integration-streamer-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.integration-verified-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.integration-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.integration-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.integration-panel-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.integration-panel-title {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
    text-align: center;
}

.integration-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.integration-option {
    background: #252525;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.integration-option:hover {
    background: #2a2a2a;
}

.integration-option.selected {
    border-color: var(--main-purple);
    background: rgba(156, 77, 255, 0.1);
}

.integration-option-info {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.integration-option-text {
    min-width: 0;
    flex: 1;
}

.integration-option-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px;
}

.integration-option-desc {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.integration-option-price {
    width: 130px;
    margin-left: 12px;
}

.opt-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
    cursor: pointer;
}

.opt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.opt-switch-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: background 0.18s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.opt-switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.opt-switch input:checked + .opt-switch-slider {
    background: var(--main-purple);
    border-color: var(--main-purple);
}

.opt-switch input:checked + .opt-switch-slider::before {
    transform: translateX(16px);
}

.opt-switch input:focus-visible + .opt-switch-slider {
    outline: 2px solid var(--main-purple);
    outline-offset: 2px;
}

.integration-panel-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #151515;
}

.integration-selected-count {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
}

.integration-add-to-collection {
    width: 100%;
    padding: 14px;
    background: var(--main-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.integration-add-to-collection:hover {
    background: var(--main-yellow);
    color: black;
}

.selection-bottom-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    transition: bottom 0.3s ease;
}

.selection-bottom-bar.active {
    bottom: 0;
}

.selection-info {
    font-size: 14px;
    color: #ccc;
}

.selection-info strong {
    color: var(--main-purple);
    font-weight: 700;
}

.selection-actions {
    display: flex;
    gap: 12px;
}

.btn-selection-cancel {
    padding: 10px 20px;
    background: rgba(128, 128, 128, 0.3);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-selection-cancel:hover {
    background: rgba(128, 128, 128, 0.5);
}

.btn-selection-confirm {
    padding: 10px 24px;
    background: var(--main-purple);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-selection-confirm:hover {
    background: var(--main-yellow);
    color: black;
}

.nam-content {
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 95vw;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s ease;
    padding: 35px;
    margin: 0 auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nam-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    font-size: 20px;
    color: #fff;
}

.nam-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nam-header {
    padding-right: 60px;
    margin-bottom: 25px;
}

.nam-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px;
    text-align: center;
}

.nam-forming-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.nam-forming-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nam-forming-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nam-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nam-form-group.full-width {
    width: 100%;
}

.nam-form-group label {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}

.nam-form-group input,
.nam-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-family: inherit;
}

.nam-form-group textarea {
    resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--main-purple);
}

.nam-dates-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nam-date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nam-date-separator {
    color: #666;
    margin-top: 20px;
}

.nam-integrations-section {
    background: black;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.nam-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-purple);
}

.nam-integrations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 175px;
    overflow-y: auto;
}

.integration-item-card {
    background: #252525;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--main-purple);
}

.integration-item-info h4 {
    font-size: 14px;
    color: white;
    margin: 0 0 2px;
}

.integration-item-info span {
    font-size: 12px;
    color: var(--main-yellow);
}

.integration-item-remove {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.integration-item-remove:hover {
    color: #ff4444;
}

.empty-integrations-msg {
    color: #666;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

.nam-upload-zone {
    width: 100%;
    height: 200px;
    background: rgba(156, 77, 255, 0.1);
    border: 2px dashed var(--main-purple);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.nam-upload-zone:hover {
    background: rgba(156, 77, 255, 0.2);
}

.upload-icon {
    font-size: 48px;
    color: var(--main-purple);
    margin-bottom: 10px;
}

.nam-upload-zone span {
    color: var(--main-purple);
    font-weight: 500;
}

.nam-upload-zone.has-image {
    background: rgba(156, 77, 255, 0.2);
    border: 2px dashed var(--main-purple);
    padding: 10px;
}

.nam-upload-zone.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.nam-upload-zone.has-image .upload-icon,
.nam-upload-zone.has-image span {
    display: none;
}

.remove-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 68, 68, 0.95);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
}

.remove-photo-btn:hover {
    background: #ff4444;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.nam-upload-zone.has-image {
    position: relative;
    cursor: pointer;
}

.nam-upload-zone.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none;
}

.nam-info-note {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.nam-forming-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.nam-btn-secondary {
    padding: 12px 20px;
    background: rgba(128, 128, 128, 0.5);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nam-btn-primary {
    padding: 12px 20px;
    background: green;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nam-btn-primary:hover,
.nam-btn-secondary:hover {
    opacity: 0.85;
}

.nam-content::-webkit-scrollbar {
    width: 8px;
}

.nam-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 0 16px 16px 0;
}

.nam-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.streamer-group-card {
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #333;
}

.streamer-group-header {
    background: linear-gradient(90deg, #d32f2f 0%, #1a0505 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.streamer-group-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streamer-group-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
}

.streamer-group-name {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.streamer-verified-small {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    vertical-align: middle;
}

.btn-remove-streamer {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-remove-streamer:hover {
    background: rgba(255, 0, 0, 0.6);
}

.streamer-integrations-inner {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integration-row-item {
    background: black;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 12px;
}

.int-name {
    flex: 1;
    color: white;
    font-weight: 600;
    word-break: break-word;
}

.int-price {
    color: var(--main-yellow);
    font-weight: 700;
    margin-left: auto;
    margin-right: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-remove-int {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.btn-remove-int:hover {
    color: #ff4444;
}

.new-application-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.new-application-modal.active {
    display: flex;
}

.streamer-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1150;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.streamer-details-modal.active {
    display: flex;
    opacity: 1;
}

.sdm-content {
    background: #252525;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.8);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sdm-content.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.sdm-close {
    position: absolute;
    top: 8px;
    right: 4px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.sdm-content {
    background: #1e1e1e;
    border-radius: 16px;
    max-width: 950px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sdm-header {
    background: black;
    padding: 32px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.sdm-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #333;
}

.sdm-name-text {
    font-size: 32px;
    font-weight: 700;
}

.sdm-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--main-yellow);
}

.sdm-profile-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.sdm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdm-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sdm-verified {
    width: 24px;
    height: 24px;
}

.sdm-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sdm-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #ccc;
}

.sdm-actions {
    display: flex;
    gap: 10px;
}

.sdm-btn-contact {
    padding: 10px 20px;
    background: var(--main-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sdm-btn-favorite {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sdm-btn-favorite .sdm-fav-icon {
    color: var(--main-yellow);
    font-size: 16px;
    line-height: 1;
}

.sdm-btn-favorite.is-active {
    background: rgba(255, 193, 7, 0.12);
    border-color: var(--main-yellow);
    color: var(--main-yellow);
}

.sdm-btn-contact:hover, .sdm-btn-favorite:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.sdm-channel-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--main-purple);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sdm-channel-link:hover {
    opacity: 0.85;
}

.sdm-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sdm-stat-box {
    background: black;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.sdm-stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.sdm-body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
}

.sdm-description h4, .sdm-schedule h4 {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.sdm-desc-block {
    background: #252525;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
}

.sdm-desc-label {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 10px;
}

.sdm-desc-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 8px;
}

.sdm-schedule {
    background: #252525;
    border-radius: 12px;
    padding: 16px;
}

.sdm-schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sdm-day {
    background: black;
    padding: 12px 4px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sdm-day-center {
    grid-column: 2;
}

.sdm-day-name {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.sdm-day-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--main-yellow);
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }

        /* header responsive rules moved to css/app_header.css */

    .filters-toggle {
        display: flex;
    }

    .filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #0D0D12;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .filters.active {
        left: 0;
    }

    .filters-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }

    .filters-overlay.active {
        display: block;
    }

    .search-bar {
        flex-direction: column;
    }

    .streamers-grid {
        grid-template-columns: 1fr;
    }

    .integration-side-panel {
        width: 100%;
        max-width: 320px;
        right: -100%;
    }

    .integration-side-panel.active {
        right: 0;
    }

    .selection-bottom-bar {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .selection-actions {
        width: 100%;
        justify-content: center;
    }

    .nam-content {
        width: 95%;
        max-width: 95%;
        padding: 20px 15px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .nam-close {
        top: 10px !important;
        right: 10px !important;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
    
    .nam-header h2 {
        font-size: 18px;
        padding-right: 40px;
        line-height: 1.3;
    }
    
    .nam-forming-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nam-dates-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .nam-date-separator {
        display: none;
    }
    
    .nam-forming-right {
        order: -1;
    }
    
    .nam-upload-zone {
        height: 150px;
    }

    .sdm-content {
        padding: 24px;
        max-height: 95vh;
        width: 98%;
    }
    
    .sdm-header {
        padding: 24px;
    }
    
    .sdm-avatar {
        width: 80px;
        height: 80px;
    }
    
    .sdm-name-text {
        font-size: 24px;
    }

    .sdm-profile-info {
        flex-direction: column;
        width: 100%;
    }

    .sdm-tags {
        justify-content: center;
    }

    .sdm-actions {
        justify-content: center;
        width: 100%;
    }

    .sdm-stats-row {
        grid-template-columns: 1fr;
    }

    .sdm-body {
        grid-template-columns: 1fr;
    }
}

/* === Platform chips (карточка каталога + детальная модалка) === */

.streamer-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.platform-chip.platform-twitch  { background: rgba(145, 70, 255, 0.18); color: #c4a3ff; border-color: rgba(145, 70, 255, 0.35); }
.platform-chip.platform-youtube { background: rgba(255, 70, 70, 0.16);  color: #ff9c9c; border-color: rgba(255, 70, 70, 0.35); }
.platform-chip.platform-vkplaylive { background: rgba(27, 152, 255, 0.16); color: #93c8ff; border-color: rgba(27, 152, 255, 0.35); }
.platform-chip.platform-rutube     { background: rgba(255, 27, 15, 0.16);  color: #ff9c93; border-color: rgba(255, 27, 15, 0.35); }

.sdm-channels-block h4 {
    margin-bottom: 8px;
}

.sdm-channels {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sdm-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ddd;
    font-size: 13px;
}

.sdm-channel-link:hover .sdm-channel-name {
    text-decoration: underline;
}

.sdm-channel-name {
    color: #aaa;
}
/* legal stuff */
.legal-content.simple-format {
    line-height: 1.8;
}

.legal-content.simple-format p {
    margin-bottom: 20px;
    color: #ccc;
}

.legal-content.simple-format ul {
    margin: 20px 0;
    padding-left: 30px;
    color: #ccc;
}

.legal-content.simple-format li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-content.simple-format strong {
    color: white;
    font-weight: 600;
}

.legal-content.simple-format a {
    color: var(--main-purple);
    text-decoration: underline;
}

.legal-content.simple-format a:hover {
    color: var(--main-yellow);
}

.legal-content.simple-format .note {
    background: rgba(156, 77, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--main-purple);
    margin-top: 30px;
    font-size: 14px;
}

.page-title {
    text-align: center;
}

.offer-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.offer-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.offer-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(156, 77, 255, 0.3);
    color: white;
    font-size: 22px;
}

.offer-section h3 {
    color: var(--main-purple);
    font-size: 16px;
    margin: 24px 0 12px;
    font-weight: 600;
}

.offer-section ul {
    margin: 12px 0 20px 20px;
    padding-left: 10px;
}

.offer-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #ccc;
}

.legal-content.simple-format {
    max-width: 800px;
    margin: 0 auto;
}


