:root {
    --tinkoff-yellow: #FFDD2D;
    --tinkoff-yellow-bright: #FFEB3B;
    --tinkoff-yellow-glow: rgba(255, 221, 45, 0.8);
    --tinkoff-yellow-glow-soft: rgba(255, 221, 45, 0.3);
    --bg-dark: #1A1D21;
    --bg-card: #25292E;
    --bg-input: #141619;
    --text-white: #FFFFFF;
    --text-grey: #9299A5;
    --radius: 20px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(255, 221, 45, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Яркая жёлтая подложка */
    background: 
        radial-gradient(ellipse at top, rgba(255, 221, 45, 0.25) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
}

.screen {
    display: none;
    height: 100%;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 90px;
}

.screen.active {
    display: flex;
}

/* ===== HEADER ===== */
.header {
    padding: 20px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tinkoff-yellow-glow-soft), transparent);
}

.header h1, .header h2 {
    font-size: 24px;
    font-weight: 700;
}

/* Большой заголовок Tinterest */
.app-title {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0 5px;
    letter-spacing: -2px;
    padding: 0 20px;
    text-shadow: 0 0 40px rgba(255, 221, 45, 0.6);
    filter: drop-shadow(0 0 15px rgba(255, 221, 45, 0.4));
}

.screen-title {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 221, 45, 0.4);
}

.subtitle {
    color: var(--text-grey);
    font-size: 14px;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    padding: 0 20px 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.progress-header span:last-child {
    color: var(--tinkoff-yellow);
    font-weight: 600;
    text-shadow: 0 0 10px var(--tinkoff-yellow-glow-soft);
}

.progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 221, 45, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px var(--tinkoff-yellow-glow);
}

.progress-hint {
    font-size: 11px;
    color: var(--text-grey);
    margin-top: 6px;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 12px 16px;
    margin: 0 20px 15px;
    border-radius: var(--radius);
    gap: 10px;
    border: 1px solid rgba(255, 221, 45, 0.2);
    box-shadow: 0 0 10px rgba(255, 221, 45, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    border-color: var(--tinkoff-yellow);
    box-shadow: 0 0 20px var(--tinkoff-yellow-glow-soft);
}

.search-bar i {
    color: var(--tinkoff-yellow);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-white);
    flex: 1;
    outline: none;
    font-size: 14px;
}

/* ===== TAGS GRID ===== */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 20px 20px;
}

@media (max-width: 480px) {
    .tags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .tag {
        min-height: 55px;
        padding: 10px 6px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .tags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

.tag {
    padding: 12px 8px;
    background: var(--bg-input);
    border: 2px solid rgba(255, 221, 45, 0.3);
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 70px;
    justify-content: center;
}

.tag:hover {
    border-color: var(--tinkoff-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 221, 45, 0.2);
}

.tag.yellow.selected {
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow));
    color: var(--bg-dark);
    border-color: var(--tinkoff-yellow);
    font-weight: 700;
    box-shadow: 0 0 25px var(--tinkoff-yellow-glow);
    transform: scale(1.05);
}

/* ===== FORM CONTAINER ===== */
.form-container {
    background: var(--bg-card);
    padding: 24px;
    margin: 0 20px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 221, 45, 0.15);
}

.photo-upload {
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    display: block;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border: 2px dashed var(--tinkoff-yellow);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tinkoff-yellow);
    font-size: 24px;
    box-shadow: 0 0 15px rgba(255, 221, 45, 0.2);
}

.photo-upload span {
    color: var(--text-grey);
    font-size: 13px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    font-size: 12px;
    color: var(--text-grey);
    margin-bottom: 8px;
    display: block;
}

input, select {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--bg-input);
    font-size: 15px;
    color: var(--text-white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    border-color: var(--tinkoff-yellow);
    box-shadow: 0 0 15px var(--tinkoff-yellow-glow-soft);
}

select option {
    background: var(--bg-card);
    color: var(--text-white);
}

.row-inputs {
    display: flex;
    gap: 10px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 8px;
}

.radio-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-btn input {
    display: none;
}

.radio-btn:has(input:checked),
.radio-btn.active {
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow));
    color: var(--bg-dark);
    border-color: var(--tinkoff-yellow);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 221, 45, 0.4);
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--bg-dark);
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 25px var(--tinkoff-yellow-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 6px 35px var(--tinkoff-yellow-glow);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 15px var(--tinkoff-yellow-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== TOP NAV & FILTERS ===== */
.top-nav {
    padding: 20px;
    position: relative;
}

.top-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tinkoff-yellow-glow-soft), transparent);
}

.filter-chips {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--tinkoff-yellow);
}

.chip.active {
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow));
    color: var(--bg-dark);
    border-color: var(--tinkoff-yellow);
    box-shadow: 0 0 15px rgba(255, 221, 45, 0.4);
}

/* ===== PROFILE CARD ===== */
.card-stack {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    width: 100%;
    max-width: 340px;
    height: 500px;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255, 221, 45, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 221, 45, 0.2);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
}

.card-img {
    height: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, var(--bg-card));
}

.card-info {
    padding: 20px;
}

.status-badge {
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    vertical-align: middle;
    margin-left: 5px;
    border: 1px solid var(--tinkoff-yellow);
    color: var(--tinkoff-yellow);
    box-shadow: 0 0 10px rgba(255, 221, 45, 0.3);
}

.location {
    color: var(--text-grey);
    font-size: 13px;
    margin: 10px 0;
}

.location i {
    color: var(--tinkoff-yellow);
    margin-right: 5px;
}

.card-tags {
    margin: 10px 0;
}

.mini-tag {
    display: inline-block;
    background: rgba(255, 221, 45, 0.2);
    color: var(--tinkoff-yellow);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
    border: 1px solid rgba(255, 221, 45, 0.4);
}

.bio {
    color: var(--text-grey);
    font-size: 13px;
    line-height: 1.5;
}

/* ===== ACTIONS (SWIPE BUTTONS) ===== */
.actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.action-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn.pass { 
    background: var(--bg-card); 
    color: var(--text-grey);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.action-btn.pass:hover {
    border-color: var(--text-grey);
}

.action-btn.match { 
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    color: var(--bg-dark);
    box-shadow: 0 4px 25px var(--tinkoff-yellow-glow);
}

.action-btn.match:hover {
    box-shadow: 0 6px 35px var(--tinkoff-yellow-glow);
}

/* ===== CHAT LIST ===== */
.chat-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-item:hover {
    background: #2D3136;
    border-color: rgba(255, 221, 45, 0.3);
    box-shadow: 0 4px 20px rgba(255, 221, 45, 0.1);
}

.chat-item:active {
    background: #2D3136;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 12px;
    border: 2px solid var(--tinkoff-yellow);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 221, 45, 0.3);
}

.avatar.group {
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 20px;
    position: relative;
    border: none;
    box-shadow: 0 0 15px rgba(255, 221, 45, 0.4);
}

.avatar.group .members-count {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--bg-dark);
    color: var(--tinkoff-yellow);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    border: 2px solid var(--bg-card);
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-header h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.chat-header .time {
    font-size: 11px;
    color: var(--tinkoff-yellow);
    flex-shrink: 0;
    font-weight: 500;
}

.last-msg {
    font-size: 13px;
    color: var(--text-grey);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.group-badge {
    background: rgba(255, 221, 45, 0.25);
    color: var(--tinkoff-yellow);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    margin-left: 5px;
    vertical-align: middle;
    border: 1px solid rgba(255, 221, 45, 0.4);
}

.chat-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    margin-left: auto;
    flex-shrink: 0;
    border: 2px solid var(--bg-card);
}

.chat-status.status-online {
    background: #00E676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

.online-count {
    font-size: 11px;
    color: var(--tinkoff-yellow);
    background: rgba(255, 221, 45, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 221, 45, 0.3);
}

.create-btn {
    font-size: 24px;
    color: var(--tinkoff-yellow);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s, text-shadow 0.2s;
    text-shadow: 0 0 10px rgba(255, 221, 45, 0.5);
}

.create-btn:hover {
    text-shadow: 0 0 20px rgba(255, 221, 45, 0.8);
}

.create-btn:active {
    transform: scale(0.9);
}

/* ===== CHAT DETAIL SCREEN ===== */
.chat-detail-screen {
    background: var(--bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    z-index: 100;
    display: none;
    flex-direction: column;
}

.chat-detail-screen.active {
    display: flex;
}

.chat-header-bar {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 221, 45, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.back-btn { 
    background: none; 
    border: none; 
    font-size: 18px; 
    color: var(--tinkoff-yellow);
    margin-right: 12px; 
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: scale(1.1);
}

.chat-user-info { 
    flex: 1; 
}

.chat-user-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.chat-user-info .status {
    font-size: 11px;
    color: #00E676;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

.video-btn { 
    background: none; 
    border: none; 
    font-size: 18px; 
    color: var(--tinkoff-yellow);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s, text-shadow 0.2s;
    text-shadow: 0 0 10px rgba(255, 221, 45, 0.5);
}

.video-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 221, 45, 0.8);
}

.messages-area {
    flex: 1;
    padding: 15px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255, 221, 45, 0.03) 100%);
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    animation: messageSlide 0.2s ease;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.received {
    background: var(--bg-card);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.sent {
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    color: var(--bg-dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(255, 221, 45, 0.3);
}

.input-area {
    padding: 12px 20px;
    background: var(--bg-card);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 221, 45, 0.2);
}

.input-area input { 
    flex: 1;
    padding: 12px 16px;
    border-radius: 20px; 
    background: var(--bg-input); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-area input:focus {
    border-color: var(--tinkoff-yellow);
    box-shadow: 0 0 15px var(--tinkoff-yellow-glow-soft);
}

.send-btn {
    width: 42px; 
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    color: var(--bg-dark);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 221, 45, 0.4);
}

.send-btn:hover {
    box-shadow: 0 6px 25px rgba(255, 221, 45, 0.6);
}

.send-btn:active {
    transform: scale(0.9);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 221, 45, 0.3);
    z-index: 50;
    padding-bottom: 5px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    padding: 10px 0;
    position: relative;
}

.nav-item i { 
    font-size: 22px; 
    margin-bottom: 4px;
    transition: all 0.2s;
}

.nav-item.active { 
    color: var(--tinkoff-yellow); 
}

.nav-item.active i { 
    color: var(--tinkoff-yellow);
    text-shadow: 0 0 15px var(--tinkoff-yellow-glow);
    transform: scale(1.15);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow));
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(255, 221, 45, 0.5);
}

.nav-item:active {
    transform: scale(0.95);
}

/* ===== FULLSCREEN BUTTON ===== */
.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--tinkoff-yellow);
    color: var(--tinkoff-yellow);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(255, 221, 45, 0.3);
    transition: all 0.2s;
}

.fullscreen-btn:hover {
    background: rgba(255, 221, 45, 0.1);
    box-shadow: 0 6px 30px rgba(255, 221, 45, 0.5);
}

.fullscreen-btn:active {
    transform: scale(0.95);
    background: var(--tinkoff-yellow);
    color: var(--bg-dark);
}

:fullscreen .fullscreen-btn,
:-webkit-full-screen .fullscreen-btn {
    display: none;
}

:fullscreen body,
:-webkit-full-screen body {
    background: var(--bg-dark);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--tinkoff-yellow), #FFC107);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tinkoff-yellow-bright);
    box-shadow: 0 0 10px rgba(255, 221, 45, 0.5);
}

/* ===== UTILS ===== */
.avatar-logo {
    display: none;
}

.avatar-small {
    display: none;
}

.user-profile {
    margin-bottom: 0;
}

/* Empty chats state */
.empty-chats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-grey);
}

.empty-chats i {
    font-size: 48px;
    color: var(--tinkoff-yellow);
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(255, 221, 45, 0.5);
}

.empty-chats p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-grey);
}

.btn-outline {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--tinkoff-yellow);
    color: var(--tinkoff-yellow);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(255, 221, 45, 0.2);
}

.btn-outline:hover, .btn-outline:active {
    background: var(--tinkoff-yellow);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(255, 221, 45, 0.5);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-item.new {
    animation: slideIn 0.3s ease;
}
/* ===== AUTH SCREEN ===== */
.auth-container {
    padding: 0 20px 20px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 221, 45, 0.2);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-grey);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow));
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 221, 45, 0.4);
}

.auth-form {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 221, 45, 0.15);
}

.auth-hint {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-grey);
}

.auth-hint a {
    color: var(--tinkoff-yellow);
    text-decoration: none;
    font-weight: 600;
}

.auth-hint a:hover {
    text-shadow: 0 0 10px rgba(255, 221, 45, 0.5);
}

/* ===== PROFILE SCREEN ===== */
#screen-profile {
    overflow-x: hidden;
}

.profile-header {
    text-align: center;
    padding: 30px 20px 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--tinkoff-yellow-bright), var(--tinkoff-yellow), #FFC107);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--bg-dark);
    border: 3px solid var(--tinkoff-yellow);
    box-shadow: 0 0 30px rgba(255, 221, 45, 0.5);
    background-size: cover;
    background-position: center;
}

.profile-avatar i {
    opacity: 0.3;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-status {
    display: inline-block;
    background: rgba(255, 221, 45, 0.2);
    color: var(--tinkoff-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 221, 45, 0.4);
}

.profile-info {
    padding: 0 20px;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.profile-row i {
    color: var(--tinkoff-yellow);
    width: 20px;
    text-shadow: 0 0 10px rgba(255, 221, 45, 0.4);
}

.profile-section {
    padding: 20px 0;
}

.profile-section h4 {
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#profile-tags .tag {
    background: rgba(255, 221, 45, 0.15);
    border-color: rgba(255, 221, 45, 0.3);
    color: var(--tinkoff-yellow);
    cursor: default;
    min-height: auto;
    padding: 8px 12px;
}

#profile-tags .tag:hover {
    transform: none;
    box-shadow: none;
}

.profile-section .tags-grid {
    padding: 0 20px 15px;
}

.btn-outline.danger {
    margin: 20px;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn-outline.danger:hover {
    background: #ff6b6b;
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload {
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.photo-upload:hover .avatar-placeholder {
    border-color: var(--tinkoff-yellow-bright);
    box-shadow: 0 0 20px rgba(255, 221, 45, 0.4);
}

/* ===== TOP NAV WITH BUTTON ===== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

.top-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tinkoff-yellow-glow-soft), transparent);
}

.top-nav .screen-title {
    margin: 0;
}

/* ===== 3 NAV ITEMS ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 221, 45, 0.3);
    z-index: 50;
    padding-bottom: 5px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.bottom-nav .nav-item {
    flex: 1;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    /* Auth screen */
    .app-title {
        font-size: 36px;
    }
    .auth-container {
        padding: 0 10px 15px;
    }
    .auth-form {
        padding: 16px;
    }
    .auth-hint {
        font-size: 12px;
    }

    /* Progress bar */
    .progress-container {
        padding: 0 0 12px;
    }

    /* Photo upload */
    .photo-upload {
        margin-bottom: 12px;
    }
    .avatar-placeholder {
        width: 65px;
        height: 65px;
        font-size: 20px;
    }

    /* Input groups */
    .row-inputs {
        flex-wrap: wrap;
        gap: 8px;
    }
    .row-inputs .input-group {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    /* Search bar */
    .search-bar {
        margin: 0 0 12px;
    }

    /* Tags grid */
    .tags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 0 15px;
    }
    .tag {
        min-height: 50px;
        padding: 8px 4px;
        font-size: 10px;
    }

    /* Buttons */
    .btn-primary {
        width: 100%;
        margin: 0;
        padding: 14px;
        font-size: 15px;
    }
    .btn-outline {
        width: 100%;
        margin: 0;
        padding: 10px;
        font-size: 13px;
    }

    /* Profile card */
    .profile-card {
        max-width: 100%;
        height: 400px;
    }
    .card-img {
        height: 55%;
    }
    .card-info h3 {
        font-size: 16px;
    }
    .card-info .location {
        font-size: 12px;
    }

    /* Actions */
    .actions {
        gap: 20px;
        padding: 12px;
    }
    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    /* Screen padding */
    .screen {
        padding-bottom: 75px;
    }
    .header, .top-nav {
        padding: 12px 15px;
    }
    .screen-title {
        font-size: 24px;
    }

    /* Filter chips */
    .filter-chips {
        gap: 6px;
        flex-wrap: wrap;
    }
    .chip {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Bottom nav */
    .bottom-nav {
        height: 60px;
    }
    .nav-item {
        font-size: 10px;
    }

    /* Chat list */
    .chat-item {
        padding: 10px;
    }
    .chat-info h4 {
        font-size: 14px;
    }
    .chat-info .last-msg {
        font-size: 12px;
    }

    /* Profile screen */
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    .profile-header h3 {
        font-size: 20px;
    }
    .profile-row {
        font-size: 13px;
    }

    /* Chat detail */
    .chat-header-bar {
        padding: 10px 12px;
    }
    .messages-area {
        padding: 10px;
    }
    .message {
        max-width: 85%;
        padding: 10px 14px;
        font-size: 14px;
    }
    .chat-input-bar {
        padding: 8px 10px;
    }
    .chat-input-bar input {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .app-title {
        font-size: 30px;
    }
    .auth-form {
        padding: 12px;
    }
    .tags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .tag {
        min-height: 45px;
        font-size: 9px;
        padding: 6px 3px;
    }
    .profile-card {
        height: 360px;
    }
    .card-img {
        height: 50%;
    }
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .screen {
        padding-bottom: 70px;
    }
    .bottom-nav {
        height: 55px;
    }
    .nav-item {
        font-size: 9px;
    }
    .row-inputs .input-group {
        flex: 1 1 100%;
    }
}
