/* ========================================
   СОВРЕМЕННЫЙ ДИЗАЙН - МИР ФОТОГРАФИИ
   ======================================== */

/* CSS переменные для цветовой схемы */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #2d3436 0%, #000428 100%);
    --light-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --orange-gradient: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    --warm-gradient: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
    
    --primary-color: #667eea;
    --secondary-color: #f5576c;
    --accent-color: #00f2fe;
    --orange-color: #ff9966;
    --warm-color: #ffa751;
    --dark-color: #2d3436;
    --light-color: #f5f7fa;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--light-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(0, 242, 254, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */

.navbar.modern-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.navbar.modern-navbar:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.modern-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    transition: var(--transition-base);
    position: relative;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.logo-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition-base);
}

.modern-brand:hover .logo-img,
.modern-brand:hover .brand-icon {
    transform: scale(1.05);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand img {
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    transition: var(--transition-base);
}

.navbar-brand:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1.2rem;
    transition: var(--transition-fast);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--orange-gradient);
    transition: var(--transition-fast);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 153, 102, 0.5);
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 153, 102, 0.5);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link i {
    margin-right: 0.3rem;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ========================================
   БАЛАНС ПОЛЬЗОВАТЕЛЯ
   ======================================== */

.balance-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.balance-wrapper:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.balance-wrapper .bi-wallet2 {
    color: #ffa751;
    font-size: 1.3rem;
    margin-right: 0.5rem;
    animation: walletPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 153, 102, 0.5));
}

@keyframes walletPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        transform: scale(1.15) rotate(-5deg); 
    }
}

.add-funds-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--orange-gradient);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 153, 102, 0.5);
    position: relative;
}

.add-funds-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--orange-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.add-funds-btn:hover::before {
    opacity: 0.4;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.add-funds-btn:hover {
    transform: rotate(180deg) scale(1.2);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 153, 102, 0.7);
}

/* ========================================
   КНОПКИ
   ======================================== */

.btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-base);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn::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:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
    color: white;
}

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    color: white;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.6);
    color: white;
}

.btn-warning {
    background: var(--orange-gradient);
    box-shadow: 0 4px 15px rgba(255, 153, 102, 0.4);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 102, 0.6);
    color: white;
}

.btn-orange {
    background: var(--orange-gradient);
    box-shadow: 0 4px 15px rgba(255, 153, 102, 0.4);
    color: white;
    border: none;
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 102, 0.6);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.4);
    color: #2d3436;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.6);
}

/* ========================================
   КАРТОЧКИ
   ======================================== */

.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 2px solid transparent;
    border-image: var(--primary-gradient);
    border-image-slice: 1;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.card-body {
    padding: 2rem;
}

/* ========================================
   СЕКЦИЯ ЗАГРУЗКИ ФОТО
   ======================================== */

.upload-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.upload-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.upload-section > * {
    position: relative;
    z-index: 1;
}

.upload-container h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInDown 0.6s ease;
}

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

/* ========================================
   ПРЕВЬЮ ФОТОГРАФИЙ - УЛЬТРА СОВРЕМЕННЫЙ ДИЗАЙН
   ======================================== */

#previewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.preview-wrapper {
    position: relative;
    width: 180px;
    background: white;
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    border: 2px solid transparent;
    overflow: hidden;
}

.preview-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: var(--orange-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.preview-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at top right, rgba(255, 153, 102, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.preview-wrapper:hover::before {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

.preview-wrapper:hover::after {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% {
        filter: brightness(1) blur(0);
    }
    50% {
        filter: brightness(1.2) blur(2px);
    }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px) rotate(-5deg);
    }
    60% {
        transform: scale(1.05) translateY(-10px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.preview-wrapper:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 16px 48px rgba(255, 153, 102, 0.25), 
                0 0 80px rgba(255, 153, 102, 0.15);
    border-color: rgba(255, 153, 102, 0.3);
}

.preview-image-container {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
}

.preview-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 102, 0.2) 0%, rgba(255, 94, 98, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.preview-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.preview-wrapper:hover .preview-image-container::before {
    opacity: 1;
}

.preview-wrapper:hover .preview-image-container::after {
    left: 100%;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 0;
}

.preview-wrapper:hover .preview-image {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1) contrast(1.05);
}

.remove-file {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(255, 153, 102, 0.5),
                0 0 20px rgba(255, 153, 102, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.remove-file::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--orange-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.remove-file:hover::before {
    opacity: 0.3;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.remove-file:hover {
    transform: rotate(180deg) scale(1.2);
    box-shadow: 0 8px 20px rgba(255, 153, 102, 0.7),
                0 0 40px rgba(255, 153, 102, 0.5);
    background: linear-gradient(135deg, #ff5e62 0%, #ff9966 100%);
}

.photo-settings {
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 153, 102, 0.05) 0%, rgba(255, 94, 98, 0.05) 100%);
    border-radius: 12px;
    animation: fadeIn 0.4s ease 0.2s backwards;
    position: relative;
    z-index: 1;
}

.photo-settings .form-select,
.photo-settings .form-control {
    border-radius: 10px;
    border: 2px solid rgba(255, 153, 102, 0.2);
    padding: 0.5rem 0.6rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.75rem;
    width: 100%;
    margin-bottom: 0.6rem;
    background: white;
    font-weight: 500;
    line-height: 1.2;
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.photo-settings .form-select:hover,
.photo-settings .form-control:hover {
    border-color: rgba(255, 153, 102, 0.4);
    transform: translateX(3px);
}

.photo-settings .form-select:focus,
.photo-settings .form-control:focus {
    border-color: var(--orange-color);
    box-shadow: 0 0 0 0.3rem rgba(255, 153, 102, 0.2),
                0 4px 12px rgba(255, 153, 102, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.photo-settings .input-group {
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.photo-settings .input-group-text {
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px 0 0 10px;
    background: var(--orange-gradient);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 153, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.2;
}

.photo-settings .input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
    margin-bottom: 0;
    flex: 1;
}

.photo-settings .form-check {
    margin-bottom: 0;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.photo-settings .form-check:hover {
    background: rgba(255, 153, 102, 0.08);
}

.photo-settings .form-check-input {
    margin-top: 0;
    margin-right: 0;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 153, 102, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.photo-settings .form-check-input:checked {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 102, 0.25);
}

.photo-settings .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 102, 0.25);
}

.photo-settings .form-check-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.photo-settings .form-check:hover .form-check-label {
    color: var(--orange-color);
}

/* ========================================
   ПРОГРЕСС ЗАГРУЗКИ - С АНИМАЦИЕЙ
   ======================================== */

.upload-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: var(--orange-gradient);
    background-size: 200% 100%;
    transition: width 0.3s ease;
    opacity: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 8px rgba(255, 153, 102, 0.5);
}

.preview-wrapper.uploading {
    animation: uploadingPulse 1.5s ease-in-out infinite;
}

@keyframes uploadingPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1),
                    0 0 0 0 rgba(255, 153, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1),
                    0 0 0 8px rgba(255, 153, 102, 0);
    }
}

.preview-wrapper.uploading .upload-progress-bar {
    opacity: 1;
    width: 100%;
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.preview-wrapper.upload-complete {
    animation: successBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.preview-wrapper.upload-complete .upload-progress-bar {
    opacity: 1;
    width: 100%;
    background: var(--success-gradient);
    animation: successGlow 1s ease;
}

@keyframes successGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(79, 172, 254, 0.5);
    }
    50% {
        box-shadow: 0 2px 16px rgba(79, 172, 254, 0.8);
    }
}

.preview-wrapper.upload-error {
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.preview-wrapper.upload-error .upload-progress-bar {
    opacity: 1;
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

/* ========================================
   СТАТИСТИКА ЗАГРУЗКИ - С АНИМАЦИЕЙ
   ======================================== */

.upload-stats {
    display: inline-flex;
    gap: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(255, 153, 102, 0.15);
    font-size: 0.9rem;
    border: 2px solid rgba(255, 153, 102, 0.2);
    transition: all 0.3s ease;
}

.upload-stats:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 153, 102, 0.25);
    border-color: rgba(255, 153, 102, 0.4);
}

.upload-stats > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.upload-stats i {
    font-size: 1.4rem;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.upload-stats .selected-files-count,
.upload-stats .total-size {
    font-weight: 800;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-stats.size-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    animation: warningShake 0.5s ease, warningPulse 1.5s ease-in-out infinite;
    border-color: #ff5e62;
}

@keyframes warningShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 107, 107, 0.6);
    }
}

.upload-stats.size-warning i,
.upload-stats.size-warning .selected-files-count,
.upload-stats.size-warning .total-size {
    color: white;
    -webkit-text-fill-color: white;
}

/* ========================================
   ТАБЛИЦА ЦЕН - С ОРАНЖЕВЫМИ АКЦЕНТАМИ
   ======================================== */

.price-table {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    border: 2px solid rgba(255, 153, 102, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.price-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 153, 102, 0.05), transparent 60%);
    pointer-events: none;
}

.price-table h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9966 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    animation: gradientMove 6s ease infinite;
}

.price-table .table {
    margin-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
}

.price-table .table thead th {
    background: var(--orange-gradient);
    color: white;
    font-weight: 700;
    padding: 1.2rem;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 153, 102, 0.3);
}

.price-table .table tbody tr {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-bottom: 2px solid rgba(255, 153, 102, 0.05);
}

.price-table .table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 153, 102, 0.08) 0%, rgba(255, 94, 98, 0.08) 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255, 153, 102, 0.15);
}

.price-table .table td {
    padding: 1.2rem;
    vertical-align: middle;
    font-weight: 500;
}

.price-table .table td:first-child {
    font-weight: 700;
    color: #ff9966;
}

/* ========================================
   ФУТЕР
   ======================================== */

.footer.modern-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2d3436 0%, #000428 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.footer.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer.modern-footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer.modern-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.footer.modern-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer.modern-footer a:hover {
    color: white;
    transform: translateX(5px);
}

.footer.modern-footer i {
    color: #667eea;
    font-size: 1.2rem;
}

.footer.modern-footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Лемур в footer */
.footer-content-wrapper {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    min-height: 250px;
}

.footer-lemur {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-lemur-img {
    height: 100%;
    max-height: 250px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.1));
    transition: all 0.4s ease, opacity 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.footer-lemur-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 30px rgba(255, 255, 255, 0.2));
}

.footer-lemur-img:active {
    transform: scale(0.98);
}

.footer-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .footer-lemur {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 1.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .footer-lemur-img {
        max-height: 150px;
        width: auto;
    }
}

/* ========================================
   DROPDOWN МЕНЮ
   ======================================== */

.dropdown-menu {
    background: rgba(45, 52, 54, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownSlide 0.3s ease;
}

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

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================== */

@media (max-width: 768px) {
    .upload-section {
        padding: 1.5rem;
    }
    
    #previewContainer {
        justify-content: center;
        gap: 1rem;
    }
    
    .preview-wrapper {
        width: 160px;
    }
    
    .preview-image-container {
        height: 140px;
    }
    
    .photo-settings {
        padding: 0.6rem;
    }
    
    .photo-settings .form-select,
    .photo-settings .form-control {
        font-size: 0.7rem;
        padding: 0.45rem 0.5rem;
    }
    
    .photo-settings .input-group-text {
        font-size: 0.65rem;
        padding: 0.45rem 0.5rem;
    }
    
    .remove-file {
        width: 26px;
        height: 26px;
        font-size: 14px;
        top: 0.25rem;
        right: 0.25rem;
        border: 2px solid white;
    }
    
    .upload-container h1,
    .hero-title {
        font-size: 1.8rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.7rem 0;
    }
    
    .balance-wrapper {
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
    }
    
    .upload-stats {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(45, 52, 54, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 12px;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ
   ======================================== */

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Применение анимаций */
.card {
    animation: slideInUp 0.6s ease;
}

.btn {
    animation: fadeIn 0.8s ease;
}

/* ========================================
   ПРЕЛОАДЕР (опционально)
   ======================================== */

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(102, 126, 234, 0.2);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* ========================================
   ОТЗЫВЫ
   ======================================== */

.review-card {
    transition: var(--transition-base);
    border-radius: 16px;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.review-author {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-text {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 1rem;
}

/* ========================================
   МОБИЛЬНАЯ ПАНЕЛЬ ЗАКАЗОВ
   ======================================== */

.mobile-order-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d3436 0%, #000428 100%);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 3px solid transparent;
    border-image: var(--orange-gradient);
    border-image-slice: 1;
}

.mobile-order-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange-gradient);
    animation: gradientMove 3s ease infinite;
}

.mobile-order-panel .total-price {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 153, 102, 0.5);
}

.mobile-order-panel .total-price span {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   ПЛАВНЫЕ ПЕРЕХОДЫ ДЛЯ ВСЕХ ИНТЕРАКТИВНЫХ ЭЛЕМЕНТОВ
   ======================================== */

a, button, input, select, textarea {
    transition: var(--transition-base);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
