/* ===== CYCLONE АВТОНОМНЫЕ СТИЛИ v96 ===== */

/* Основные переменные */
:root {
    --primary-blue: #2563eb;
    --primary-green: #10B981;
    --primary-orange: #f97316;
    --gray-light: #f3f4f6;
    --gray-medium: #9ca3af;
    --gray-dark: #374151;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== ГРАДИЕНТЫ ===== */
.breeze-gradient {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.cyclone-gradient {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

.wallet-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.deposit-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.withdrawal-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.transfer-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* ===== КНОПКИ С ГРАДИЕНТОМ ===== */
.btn-gradient {
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gradient:active {
    transform: translateY(0);
}

/* ===== НАВИГАЦИЯ ===== */
.nav-container {
    background: var(--primary-blue);
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-items {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-item img,
.nav-item svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s;
}

/* Неактивные иконки: без обесцвечивания, только легкая прозрачность */
.nav-item:not(.active) img,
.nav-item:not(.active) svg {
    filter: none !important;
    opacity: 0.65;
}

.nav-item:not(.active):hover img,
.nav-item:not(.active):hover svg {
    opacity: 0.85;
}

/* Кнопка "Назад" - всегда видимая */
.nav-item#backButton img,
.nav-item#backButton svg {
    opacity: 1 !important;
    filter: brightness(1.2);
}

.nav-item#backButton:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Активная страница - цветная иконка */
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active img,
.nav-item.active svg {
    filter: none;
    opacity: 1;
}

/* === Кнопка "три точки" и выпадающее меню === */
.nav-more {
    position: relative;
    cursor: pointer;
}

.nav-dropdown {
    position: absolute;
    right: 0;
    top: 36px;
    width: 280px;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    display: none;
    z-index: 60;
}

.nav-dropdown.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: #f9fafb;
}

.nav-dropdown-item img {
    width: 24px;
    height: 24px;
}

.nav-dropdown-text {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-title {
    font-weight: 600;
    color: var(--gray-dark);
    line-height: 1.1;
}

.nav-dropdown-desc {
    font-size: 12px;
    color: var(--gray-medium);
    margin-top: 2px;
}

.nav-more-dots {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 1px;
    margin-top: -2px;
    user-select: none;
    display: block;
}

/* Разделитель */
.nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.05rem;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.card.card-gradient {
    background: transparent;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-gradient {
    color: white;
    position: relative;
    overflow: hidden;
}

.card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
}

.card-gradient:hover::before {
    opacity: 1;
}

/* ===== ФОРМЫ ===== */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== ТАБЛИЦЫ ===== */
.data-table {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table thead {
    background: var(--gray-light);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ===== УТИЛИТЫ ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* ===== TAILWIND УТИЛИТЫ (АВТОНОМНЫЕ) ===== */

/* Layout & Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Tailwind CSS Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, "Roboto Mono", "Courier New", monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol, ul, menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

button, [role="button"] {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.m-10 { margin: 2.5rem; }
.m-12 { margin: 3rem; }
.m-16 { margin: 4rem; }
.m-20 { margin: 5rem; }
.m-24 { margin: 6rem; }
.m-32 { margin: 8rem; }
.m-auto { margin: auto; }

.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-5 { margin-left: 1.25rem; margin-right: 1.25rem; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mx-8 { margin-left: 2rem; margin-right: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-5 { margin-right: 1.25rem; }
.mr-6 { margin-right: 1.5rem; }
.mr-8 { margin-right: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-5 { margin-left: 1.25rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-8 { margin-left: 2rem; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-grow { flex-grow: 1; }
.flex-shrink { flex-shrink: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Space Between */
.space-x-0 > * + * { margin-left: 0; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-5 > * + * { margin-left: 1.25rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.space-y-0 > * + * { margin-top: 0; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Sizing */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }

/* Max Width */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }

/* Colors */
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-white { background-color: #ffffff; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: #22c55e; }
.bg-gray-600 { background-color: #4b5563; }
.bg-opacity-50 { background-color: rgba(75, 85, 99, 0.5); }

.text-white { color: #ffffff; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-green-700 { color: #15803d; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-center { text-align: center; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Position */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* Border */
.border { border-width: 1px; border-color: #e5e7eb; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Shadows */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover states */
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
.hover\:bg-green-600:hover { background-color: #16a34a; }

/* Z-index */
.z-50 { z-index: 50; }

/* Min height */
.min-h-screen { min-height: 100vh; }

/* Justify content */
.justify-between { justify-content: space-between; }

/* Align items */
.align-items-start { align-items: flex-start; }

/* Additional spacing */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Additional colors for modals */
.bg-gray-600 { background-color: #4b5563; }

/* Background opacity utilities */
.bg-opacity-50 { 
    background-color: rgba(75, 85, 99, 0.5) !important;
}

/* Modal backdrop fix */
.modal-backdrop {
    background-color: rgba(75, 85, 99, 0.5) !important;
}

/* Specific modal background */
.bg-gray-600.bg-opacity-50 {
    background-color: rgba(75, 85, 99, 0.5) !important;
}

/* Additional text sizes */
.text-base { font-size: 1rem; line-height: 1.5rem; }

/* Additional margins */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }

/* Additional padding */
.p-1 { padding: 0.25rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

/* Input specific styles */
input[readonly] {
    background-color: #f9fafb;
    cursor: default;
}

/* Focus states */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

/* Additional responsive utilities */
@media (max-width: 480px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .p-6 {
        padding: 1rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 640px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-items {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        width: 36px;
        height: 36px;
    }
    
    .nav-item img,
    .nav-item svg {
        width: 24px;
        height: 24px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* ========================================
   КОМПОНЕНТЫ УВЕДОМЛЕНИЙ v1.0
   - Тост-уведомления
   - Модальные окна подтверждения (улучшенные)
   ======================================== */

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

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    background: white;
    min-width: 300px;
    position: relative;
    border-left: 4px solid #3b82f6;
}

@media (max-width: 480px) {
    .toast {
        min-width: 0;
        width: 100%;
    }
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

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

.toast-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: #111827;
}

.toast-message {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 2px;
}

.toast-details {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Цветовые схемы тостов */
.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-left-color: #047857;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.toast-success .toast-title {
    color: #ffffff;
    font-weight: 600;
}

.toast-success .toast-message,
.toast-success .toast-details {
    color: #f0fdf4;
}

.toast-error {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-left-color: #7f1d1d;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.toast-error .toast-title {
    color: #ffffff;
    font-weight: 600;
}

.toast-error .toast-message,
.toast-error .toast-details {
    color: #fef2f2;
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-left-color: #b45309;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.toast-warning .toast-title {
    color: #ffffff;
    font-weight: 600;
}

.toast-warning .toast-message,
.toast-warning .toast-details {
    color: #fffbeb;
}

.toast-info {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-left-color: #0f766e;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.toast-info .toast-title {
    color: #ffffff;
    font-weight: 600;
}

.toast-info .toast-message,
.toast-info .toast-details {
    color: #f0fdfa;
}

/* Анимации тостов */
.toast-enter {
    opacity: 0;
    transform: translateX(-120%) translateY(50px) rotate(-8deg);
}

.toast-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-exit {
    opacity: 0;
    transform: translateX(-80%) translateY(120px) rotate(-12deg);
    transition: all 0.5s cubic-bezier(0.6, -0.28, 0.74, 0.05);
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА (УЛУЧШЕННЫЕ)
   ======================================== */

/* Переопределяем существующие стили modal-overlay и modal-content с улучшениями */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .modal-content {
        max-width: none;
        max-height: 85vh;
    }
}

.modal-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.modal-icon {
    font-size: 48px;
    line-height: 1;
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.modal-title {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    animation: titleSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes titleSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-message {
    font-size: 14px;
    color: #374151;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.modal-details {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #bae6fd;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
    animation: detailsGlow 0.5s ease 0.3s both;
}

@keyframes detailsGlow {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    gap: 12px;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.detail-key {
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.modal-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.btn-modal {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-modal:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.btn-modal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modal:active::before {
    width: 300px;
    height: 300px;
}

.btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

.btn-cancel:hover {
    background: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cancel:active {
    transform: translateY(0);
}

.btn-confirm {
    color: white;
    position: relative;
}

.btn-default {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}

.btn-default::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripplePulse 1.5s ease-out infinite;
}

@keyframes ripplePulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.btn-default:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* Анимации модалок */
.modal-fade-in {
    animation: fadeIn 0.3s ease;
}

.modal-slide-up {
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.modal-fade-out .modal-content {
    animation: slideDown 0.3s cubic-bezier(0.6, -0.28, 0.74, 0.05) forwards;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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