/* ============================================================
   RESET & БАЗОВЫЕ СТИЛИ
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8faff;
    color: #1a2332;
    min-height: 100vh;
    line-height: 1.5;
}

a {
    color: #c41e24;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Красная (китайская) — основная */
.btn-cn {
    background: #c41e24;
    color: #ffffff;
}

.btn-cn:hover {
    background: #a0181d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 36, 0.25);
    text-decoration: none;
}

/* Синяя — вторичная */
.btn-blue {
    padding: 14px 28px;
    background: #0b5e8a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-blue:hover {
    background: #094a6e;
}

.btn-outline {
    padding: 12px 24px;
    background: transparent;
    color: #4a5a6e;
    border: 1px solid #d0d8e4;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.btn-outline:hover {
    background: #f0f4f8;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-sm.btn-cn {
    background: #c41e24;
    color: #ffffff;
}

.btn-sm.btn-cn:hover {
    background: #a0181d;
}

.btn-sm.btn-blue {
    background: #0b5e8a;
    color: #ffffff;
}

.btn-sm.btn-blue:hover {
    background: #094a6e;
}

/* Кнопка опасного действия — красный фон */
.btn-danger-outline {
    color: #ffffff;
    background: #c0392b;
    border: 1px solid #c0392b;
}

.btn-danger-outline:hover {
    background: #a0291d;
    border-color: #a0291d;
}

/* ============================================================
   AUTH PAGES (ВХОД / РЕГИСТРАЦИЯ)
   ============================================================ */
.auth-page,
.page-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8faff;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(11, 94, 138, 0.08);
}

.auth-container-wide {
    max-width: 620px;
}

.auth-logo {
    margin-bottom: 24px;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.logo-small {
    width: 120px;
    height: auto;
    animation: softPulse 4s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.95; }
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #0b1a2b;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7f94;
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field,
.form-field {
    text-align: left;
    margin-bottom: 16px;
}

.field label,
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5a6e;
    margin-bottom: 6px;
}

.field input,
.form-field input,
.field select,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d8e4;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    background: #ffffff;
    color: #1a2332;
}

.field input:focus,
.form-field input:focus,
.field select:focus,
.form-field select:focus {
    border-color: #c41e24;
}

.field input::placeholder,
.form-field input::placeholder {
    color: #9aa9bc;
}

.form-error,
.error {
    font-size: 13px;
    color: #c0392b;
    min-height: 18px;
    text-align: left;
    margin-bottom: 8px;
}

.success {
    font-size: 13px;
    color: #00883a;
    min-height: 18px;
    text-align: left;
    margin-bottom: 8px;
}

.auth-footer {
    font-size: 14px;
    color: #6b7f94;
    margin-top: 24px;
}

.auth-footer a {
    color: #c41e24;
}

.auth-back {
    font-size: 13px;
    margin-top: 16px;
}

.auth-back a {
    color: #9aa9bc;
}

/* ============================================================
   APP PAGE (КАБИНЕТ)
   ============================================================ */
.app-page {
    background: #f8faff;
    min-height: 100vh;
}

.header {
    background: #ffffff;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 36px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5a6e;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    position: relative;
}

.nav-btn:hover {
    background: #f0f4f8;
}

.nav-btn.active {
    background: #c41e24;
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
    color: #4a5a6e;
}

.btn-logout {
    padding: 8px 16px;
    border: 1px solid #d0d8e4;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5a6e;
    cursor: pointer;
    font-family: inherit;
}

.btn-logout:hover {
    background: #f0f4f8;
}

/* Переключатель языка */
.btn-lang {
    padding: 8px 16px;
    border: 1px solid #c41e24;
    background: transparent;
    color: #c41e24;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-lang:hover {
    background: #c41e24;
    color: #ffffff;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #0b1a2b;
    margin-bottom: 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   BADGE (СЧЁТЧИКИ)
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    background: #c41e24;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    vertical-align: middle;
}

.badge-new {
    display: inline-block;
    padding: 2px 8px;
    background: #c41e24;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   STATUS BADGES (RFQ / КП)
   ============================================================ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-sent { background: #e8f0f7; color: #0b5e8a; }
.status-viewed { background: #fff4e5; color: #b76e00; }
.status-responded { background: #e5f5eb; color: #00883a; }
.status-accepted { background: #d4f0dc; color: #006b2e; border: 1px solid #00883a; }
.status-rejected { background: #fde8e8; color: #c0392b; }
.status-declined { background: #f0f4f8; color: #6b7f94; }
.status-pending { background: #fff4e5; color: #b76e00; }
.status-cancelled { background: #f0f4f8; color: #6b7f94; text-decoration: line-through; }
.status-closed { background: #f0f4f8; color: #6b7f94; }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(11, 94, 138, 0.06);
}

.stat-label {
    font-size: 13px;
    color: #6b7f94;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #0b1a2b;
}

/* ============================================================
   ACTIONS BAR
   ============================================================ */
.actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: center;
}

/* ============================================================
   LIST CARDS (RFQ, ПРЕДЛОЖЕНИЯ)
   ============================================================ */
.list-card {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(11, 94, 138, 0.06);
    border: 1px solid transparent;
    transition: all 0.15s;
}

.list-card-clickable {
    cursor: pointer;
}

.list-card-clickable:hover {
    border-color: #c41e24;
    transform: translateY(-1px);
}

.list-card-new {
    border-left: 4px solid #c41e24;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: #0b1a2b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-subtitle {
    font-size: 13px;
    color: #6b7f94;
}

.list-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #6b7f94;
    margin-top: 8px;
    flex-wrap: wrap;
}

.list-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-meta-item strong {
    color: #0b1a2b;
}

.list-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

/* ============================================================
   RFQ ITEMS
   ============================================================ */
.rfq-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rfq-item {
    display: grid;
    grid-template-columns: 180px 1fr 140px;
    gap: 12px;
    padding: 10px 14px;
    background: #f8faff;
    border-radius: 10px;
    font-size: 14px;
    align-items: center;
}

.rfq-item-part {
    font-weight: 600;
    color: #c41e24;
}

.rfq-item-desc {
    color: #6b7f94;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfq-item-qty {
    text-align: right;
    color: #4a5a6e;
}

.rfq-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #6b7f94;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
    flex-wrap: wrap;
}

.rfq-meta strong {
    color: #0b1a2b;
}

.rfq-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #0b1a2b;
    margin: 20px 0 12px 0;
}

/* ============================================================
   ФОРМА КП
   ============================================================ */
.rfq-form {
    margin-top: 20px;
}

.rfq-form-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 16px;
}

.rfq-form-table thead th {
    background: #f8faff;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #4a5a6e;
    text-transform: uppercase;
    border-bottom: 2px solid #e9edf4;
}

.rfq-form-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.rfq-form-table .part-number {
    font-weight: 600;
    color: #c41e24;
}

.rfq-form-table .description {
    color: #4a5a6e;
    max-width: 300px;
    font-size: 13px;
}

.rfq-form-table .qty {
    text-align: center;
    color: #4a5a6e;
}

.rfq-form-table .suggested-price {
    font-size: 12px;
    color: #9aa9bc;
    display: block;
    margin-top: 2px;
}

.qty-input {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #d0d8e4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    text-align: center;
    outline: none;
    background: #ffffff;
}

.qty-input:focus {
    border-color: #c41e24;
    box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.1);
}

.price-input {
    width: 110px;
    padding: 8px 10px;
    border: 1px solid #d0d8e4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    text-align: right;
    outline: none;
    background: #ffffff;
}

.price-input:focus {
    border-color: #c41e24;
    box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.1);
}

.row-total {
    text-align: right;
    font-weight: 600;
    color: #0b1a2b;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 2px solid #e9edf4;
    margin-top: 8px;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: #0b1a2b;
}

.total-value {
    font-size: 22px;
    font-weight: 700;
    color: #c41e24;
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(11, 94, 138, 0.06);
}

.data-table thead th {
    background: #f8faff;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #4a5a6e;
    text-transform: uppercase;
    border-bottom: 2px solid #e9edf4;
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
}

.data-table tbody tr:hover {
    background: #fafcff;
}

.data-table .part-number {
    font-weight: 600;
    color: #c41e24;
}

.data-table .description {
    color: #4a5a6e;
    max-width: 400px;
}

.delete-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    background: #fde8e8;
    color: #c0392b;
    cursor: pointer;
    font-family: inherit;
}

.delete-btn:hover {
    background: #fbd4d4;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #d0d8e4;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    color: #1a2332;
}

.search-box input:focus {
    border-color: #c41e24;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    color: #9aa9bc;
    padding: 40px 20px;
    font-size: 15px;
}

.empty-state-small {
    color: #9aa9bc;
    padding: 12px;
    font-size: 13px;
}

/* ============================================================
   CHAT
   ============================================================ */
.chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(11, 94, 138, 0.06);
    min-height: 500px;
}

.chat-list {
    border-right: 1px solid #eef2f7;
    padding-right: 20px;
    overflow-y: auto;
    max-height: 600px;
}

.chat-item {
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5a6e;
    margin-bottom: 4px;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.chat-item:hover {
    background: #f0f4f8;
}

.chat-item.active {
    background: #fdf0f0;
    color: #c41e24;
    font-weight: 500;
    border-left-color: #c41e24;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-item-title {
    font-weight: 600;
    color: #0b1a2b;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-item-preview {
    font-size: 12px;
    color: #9aa9bc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-item-time {
    font-size: 11px;
    color: #9aa9bc;
}

.chat-window {
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    padding: 10px 14px;
    background: #f0f4f8;
    border-radius: 12px;
    max-width: 70%;
    font-size: 14px;
    word-wrap: break-word;
    align-self: flex-start;
}

.message.sent {
    background: #c41e24;
    color: #ffffff;
    align-self: flex-end;
}

.message-system {
    background: transparent;
    color: #9aa9bc;
    text-align: center;
    font-size: 12px;
    max-width: 100%;
    align-self: center;
    margin: 8px auto;
    font-style: italic;
}

.message-card {
    padding: 14px 18px;
    background: #fdf0f0;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
    border-left: 4px solid #c41e24;
    cursor: pointer;
    align-self: flex-start;
}

.message-card:hover {
    background: #fae0e0;
}

.message-card-title {
    font-weight: 600;
    color: #c41e24;
    margin-bottom: 4px;
}

.message-card-meta {
    font-size: 12px;
    color: #6b7f94;
}

.chat-input {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d0d8e4;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    color: #1a2332;
}

.chat-input input:focus {
    border-color: #c41e24;
}

.chat-input input:disabled {
    background: #f8faff;
    color: #9aa9bc;
    cursor: not-allowed;
}

.chat-input-notice {
    padding: 10px 16px;
    background: #fff4e5;
    border-radius: 10px;
    font-size: 13px;
    color: #b76e00;
    margin-top: 8px;
    text-align: center;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-block {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    max-width: 700px;
    box-shadow: 0 2px 8px rgba(11, 94, 138, 0.06);
}

.profile-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    color: #6b7f94;
    font-weight: 500;
}

.profile-value {
    color: #0b1a2b;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 26, 43, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-wide {
    max-width: 900px;
}

.modal-small {
    max-width: 420px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0b1a2b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #9aa9bc;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s;
}

.modal-close:hover {
    background: #f0f4f8;
    color: #0b1a2b;
}

.modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-small .modal-body {
    padding: 20px 24px;
    font-size: 15px;
    color: #4a5a6e;
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eef2f7;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-block {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(11, 94, 138, 0.06);
}

.form-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0b1a2b;
    margin-bottom: 16px;
}

.manual-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   AI HINT
   ============================================================ */
.ai-hint {
    font-size: 13px;
    color: #c41e24;
    margin-bottom: 12px;
    min-height: 18px;
}

/* ============================================================
   UPLOAD RESULT
   ============================================================ */
.upload-result {
    background: #e5f5eb;
    color: #00883a;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .nav-btn {
        white-space: nowrap;
    }

    .main {
        padding: 24px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-list {
        border-right: none;
        border-bottom: 1px solid #eef2f7;
        padding-right: 0;
        padding-bottom: 12px;
        max-height: 200px;
    }

    .page-title {
        font-size: 22px;
    }

    .rfq-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .rfq-item-qty {
        text-align: left;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .rfq-form-table .description {
        display: none;
    }

    .list-header {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-container {
        padding: 28px 20px;
    }

    .modal {
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 20px 16px;
    }
}