/* ==========================================
   СОБРАННЫЕ СТИЛИ ИЗ HTML ШАБЛОНОВ
   ========================================== */

/* ==========================================
   templates/base.html
   ========================================== */

/* Исправляем видимость текста в формах */
input[type="text"],
input[type="email"], 
input[type="password"],
input[type="number"],
select,
textarea {
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    color: #333 !important;
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: #ffec3e !important;
    outline: 0;
}

input::placeholder {
    color: #666 !important;
}

/* Исправляем позиционирование balance dropdown */
.balance-dropdown {
    position: absolute;
    top: 65%;
    right: 0;
    left: auto;
    width: 300px;
    max-width: calc(100vw - 40px);
    z-index: 1000;
    margin-top: 10px;
    background-color: #1a1a1a;
    border-radius: 0px !important; /* Убираем скругление */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.balance-wrapper {
    position: relative;
}

@media screen and (max-width: 767px) {
    .menu-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 20px;
        display: none;
        z-index: 999;
    }
    
    .menu-menu.mobile-active {
        display: flex;
    }
    
    .balance-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 280px;
        max-width: calc(100vw - 20px);
        margin-top: 10px;
    }
}

/* ==========================================
   templates/home/index.html
   ========================================== */

/* Исправляем стили форм на главной странице */
.log-in-form-form input[type="text"],
.log-in-form-form input[type="email"],
.log-in-form-form input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 20px;
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px;
}

.log-in-form-form input[type="text"]:focus,
.log-in-form-form input[type="email"]:focus,
.log-in-form-form input[type="password"]:focus {
    border-color: #ffec3e !important;
    background-color: rgba(255, 255, 255, 1) !important;
    outline: 0;
    color: #333 !important;
}

.log-in-form-form input::placeholder {
    color: #666 !important;
}

/* ==========================================
   templates/stores/store_list.html
   ========================================== */

/* Исправляем отображение карточек магазинов */
.shops-shops {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.shop-card {
    height: 100%;
}

.shop-card-image img {
    object-fit: contain;
}

@media screen and (max-width: 767px) {
    .shops-shops {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   templates/stores/store_info.html
   ========================================== */

/* Основная структура страницы */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.content-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Боковая панель слева */
.sidebar-left {
    flex: 0 0 300px;
    position: sticky;
    top: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 0px;
    border: 2px solid #080808;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-title {
    color: #f03966;
    margin-bottom: 25px;
    text-align: center;
}

.cashback-display {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f03966;
    border-radius: 0px;
}

.cashback-amount {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    margin: 0 0 18px 0;
}

.cashback-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.2;
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: bold;
}

.info-notice {
    background: #e0f2fe;
    padding: 15px;
    border-radius: 0px;
    margin-bottom: 25px;
    text-align: center;
}

.info-notice .text14 {
    color: #0277bd;
    margin: 0;
}

.btn-full {
    width: 100% !important;
    text-align: center;
}

/* Основной контент по центру */
.main-content-center {
    flex: 1;
    max-width: 800px;
}

.content-section {
    background: white;
    padding: 40px;
    border-radius: 0px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.store-content,
.store-features,
.store-conditions {
    text-align: center;
    line-height: 1.8;
    /* Обеспечиваем правильное отображение HTML контента */
}

/* Дополнительные стили для HTML форматирования */
.store-content strong, .store-content b,
.store-features strong, .store-features b,
.store-conditions strong, .store-conditions b {
    font-weight: 600;
    color: #333;
}

.store-content em, .store-content i,
.store-features em, .store-features i,
.store-conditions em, .store-conditions i {
    font-style: italic;
}

.store-content u,
.store-features u,
.store-conditions u {
    text-decoration: underline;
}

.store-content s, .store-content strike,
.store-features s, .store-features strike,
.store-conditions s, .store-conditions strike {
    text-decoration: line-through;
}

.store-content code,
.store-features code,
.store-conditions code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.store-content pre,
.store-features pre,
.store-conditions pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
}

.store-content blockquote,
.store-features blockquote,
.store-conditions blockquote {
    border-left: 4px solid #ffec3e;
    padding-left: 20px;
    margin: 1.5rem 0;
    font-style: italic;
    background-color: #fafafa;
}

.store-content ol,
.store-features ol,
.store-conditions ol {
    text-align: left;
    display: inline-block;
    margin: 1rem 0;
    padding-left: 25px;
}

.store-content ol li,
.store-features ol li,
.store-conditions ol li {
    margin-bottom: 0.8rem;
    list-style-type: decimal;
}

.store-content table,
.store-features table,
.store-conditions table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.store-content th, .store-content td,
.store-features th, .store-features td,
.store-conditions th, .store-conditions td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.store-content th,
.store-features th,
.store-conditions th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.store-content h1, .store-content h2, .store-content h3,
.store-features h1, .store-features h2, .store-features h3,
.store-conditions h1, .store-conditions h2, .store-conditions h3 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.store-content ul, .store-features ul, .store-conditions ul {
    text-align: left;
    display: inline-block;
    margin: 1rem 0;
    padding-left: 20px;
}

.store-content li, .store-features li, .store-conditions li {
    margin-bottom: 0.8rem;
}

.store-content p, .store-features p, .store-conditions p {
    margin-bottom: 1.5rem;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 0px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-title {
    margin-bottom: 20px;
    color: #333;
}

.modal-logo {
    margin-bottom: 20px;
}

.store-logo-modal {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
}

.modal-text {
    margin-bottom: 20px;
    color: #555;
}

.success-notice {
    background: #dcfce7;
    color: #15803d;
    padding: 15px;
    border-radius: 0px;
    margin-bottom: 20px;
    font-weight: bold;
}

.progress-container {
    background: #f1f5f9;
    height: 8px;
    border-radius: 0px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    background: #22c55e;
    height: 100%;
    width: 0%;
    transition: width 0.1s ease;
}

.modal-subtext {
    color: #666;
    margin-bottom: 20px;
}

/* Адаптивность для мобильных */
@media screen and (max-width: 991px) {
    .content-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .sidebar-left {
        flex: none;
        position: static;
        width: 100%;
        order: 2; /* Показываем после основного контента на мобильных */
    }
    
    .main-content-center {
        order: 1;
        max-width: none;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .content-section {
        padding: 30px 20px;
    }
    
    .main-content-wrapper {
        padding: 0 15px;
    }
}

@media screen and (max-width: 479px) {
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .cashback-amount {
        font-size: 36px;
        margin-bottom: 18px;
    }
    
    .content-section {
        padding: 25px 15px;
    }
    
    .info-card {
        padding: 20px;
    }
}

/* Убираем лишние отступы для текста в контенте */
.store-content *:first-child,
.store-features *:first-child,
.store-conditions *:first-child {
    margin-top: 0 !important;
}

.store-content *:last-child,
.store-features *:last-child,
.store-conditions *:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================
   templates/stores/redirect_page.html
   ========================================== */

.redirect-container {
    min-height: 70vh;
    padding: 40px 20px;
    justify-content: center;
    align-items: center;
}

.redirect-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.redirect-header {
    margin-bottom: 40px;
}

.redirect-header .heading48 {
    margin-bottom: 10px;
    color: #010000 !important;
}

.redirect-header .text16-low {
    opacity: 0.8;
    color: #020000 !important;
}

.store-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
}

.store-main-info {
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.store-logo-container {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-logo-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    color: white;
}

.store-details {
    flex: 1;
}

.store-details .heading24 {
    margin-bottom: 8px;
    color: #070404 !important;
}

.store-category {
    margin-bottom: 12px;
    opacity: 0.8;
    color: #070101 !important;
}

.cashback-info {
    gap: 10px;
}

.progress-section {
    margin-bottom: 30px;
}

.progress-text {
    margin-bottom: 15px;
    font-weight: 600;
    color: #120202 !important;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6C5CE7, #a29bfe);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-status {
    opacity: 0.8;
    color: #ffffff !important;
}

.redirect-info {
    text-align: left;
    gap: 12px;
    margin-bottom: 30px;
}

.info-item {
    padding: 8px 0;
}

.info-item .text14 {
    color: #080101 !important;
}

.redirect-actions {
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .redirect-container {
        padding: 20px 15px;
    }
    
    .store-info-card {
        padding: 20px;
    }
    
    .store-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .store-details {
        text-align: center;
    }
}

/* ==========================================
   templates/payouts/create_payout.html
   ========================================== */

.withdraw-form-form input[type="text"],
.withdraw-form-form input[type="number"],
.withdraw-form-form select {
    display: block;
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 20px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.withdraw-form-form input[type="text"]:focus,
.withdraw-form-form input[type="number"]:focus,
.withdraw-form-form select:focus {
    border-color: #ffec3e;
    background-color: rgba(255, 255, 255, 0.15);
    outline: 0;
}

.choose-box {
    text-decoration: none;
    transition: all 0.3s ease;
}

.choose-box.selected {
    border: 2px solid #ffec3e;
    background-color: rgba(255, 236, 62, 0.1);
}

.choose-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   templates/payouts/user_payouts.html
   ========================================== */

.payout-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag.g {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.tag.y {
    background: #f03966 !important;
    color: #ffffff !important;
}

.tag.p {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

@media screen and (max-width: 767px) {
    .w-layout-hflex[style*="gap: 20px"] {
        flex-direction: column;
    }
    
    .w-layout-hflex[style*="justify-content: space-between"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

/* ==========================================
   templates/users/referral_program.html
   ========================================== */

/* Исправляем видимость текста */
.text16-low.w,
.text24.w,
.heading48.w,
.heading24.w {
    color: #ffffff !important;
}

.referral-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.referral-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}

.referral-stats {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.hidden {
    display: none !important;
}

/* Адаптивность для мобильных */
@media screen and (max-width: 767px) {
    .partner-label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .flex-block-8 {
        margin-top: 20px;
    }
    
    .partner-how-content {
        flex-direction: column;
    }
    
    .partner-how-box {
        margin-bottom: 30px;
    }
    
    .referral-stats {
        flex-direction: column;
        gap: 15px !important;
    }
    
    .referral-stats .number-block {
        min-width: auto !important;
    }
    
    .history-list {
        flex-direction: column !important;
    }
    
    .history-item {
        min-width: auto !important;
    }
}

/* ==========================================
   templates/users/register.html
   ========================================== */

/* Исправляем стили форм */
.sign-up-form-form input[type="text"],
.sign-up-form-form input[type="email"],
.sign-up-form-form input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 20px;
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px;
}

.sign-up-form-form input[type="text"]:focus,
.sign-up-form-form input[type="email"]:focus,
.sign-up-form-form input[type="password"]:focus {
    border-color: #ffec3e !important;
    background-color: rgba(255, 255, 255, 1) !important;
    outline: 0;
    color: #333 !important;
}

.sign-up-form-form input::placeholder {
    color: #666 !important;
}

/* ==========================================
   templates/users/login.html
   ========================================== */

/* Исправляем стили форм (дублируем для логина) */
.sign-up-form-form input[type="text"],
.sign-up-form-form input[type="email"],
.sign-up-form-form input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 20px;
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px;
}

.sign-up-form-form input[type="text"]:focus,
.sign-up-form-form input[type="email"]:focus,
.sign-up-form-form input[type="password"]:focus {
    border-color: #ffec3e !important;
    background-color: rgba(255, 255, 255, 1) !important;
    outline: 0;
    color: #333 !important;
}

.sign-up-form-form input::placeholder {
    color: #666 !important;
}

/* ==========================================
   templates/users/profile.html
   ========================================== */

/* Добавляем стили для Django форм */
.profile-form-form input[type="text"],
.profile-form-form input[type="email"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 20px;
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px;
}

.profile-form-form input[type="text"]:focus,
.profile-form-form input[type="email"]:focus {
    border-color: #ffec3e !important;
    background-color: rgba(255, 255, 255, 1) !important;
    outline: 0;
    color: #333 !important;
}

.profile-form-form input::placeholder {
    color: #666 !important;
}

/* ==========================================
   templates/orders/user_orders.html
   ========================================== */

/* Убираем подчеркивание для элементов истории */
.history-item {
    cursor: default;
}

.history-item.w-inline-block {
    text-decoration: none;
}

/* Адаптивность для мобильных */
@media screen and (max-width: 767px) {
    .orders-one-row {
        flex-direction: column;
    }
    
    .number-block {
        margin-bottom: 20px;
    }
}

/* ==========================================
   templates/admin/orders_statistics.html
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stats-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.stats-card h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-value {
    font-weight: bold;
    color: #007cba;
}

.stats-value.green {
    color: #28a745;
}

.stats-value.orange {
    color: #fd7e14;
}

.stats-value.red {
    color: #dc3545;
}

.import-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.import-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.import-button:hover {
    background: #005a87;
    color: white;
}

.import-button.danger {
    background: #dc3545;
}

.import-button.danger:hover {
    background: #c82333;
}

/* ==========================================
   templates/admin/giveaways/participants.html
   ========================================== */

.winner-row {
    background-color: #d4edda !important;
}

#result_list th {
    background: #417690;
    color: white;
}

.actions {
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.actions select {
    margin-left: 10px;
    margin-right: 10px;
}

/* ==========================================
   templates/admin/giveaways/stats.html
   ========================================== */

.results table {
    width: 100%;
    border-collapse: collapse;
}

.results th {
    background: #417690;
    color: white;
    padding: 10px;
    text-align: left;
}

.results td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.row1 {
    background: #f9f9f9;
}

.row2 {
    background: white;
}

.suspicious-ip {
    background-color: #f8d7da !important;
}

.module h2 {
    background: #79aec8;
    color: white;
    padding: 10px 15px;
    margin: 0;
}

.module.aligned {
    margin-bottom: 20px;
}

/* ==========================================
   Стили для формы смены пароля
   ========================================== */

.password-change-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.password-change-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.password-change-header {
    text-align: center;
    margin-bottom: 30px;
}

.password-change-icon {
    margin-bottom: 20px;
}

.password-change-icon img {
    filter: drop-shadow(0 4px 8px rgba(255, 236, 62, 0.3));
}

.password-change-form-wrapper {
    margin-bottom: 30px;
}

.password-change-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.password-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.password-field {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.password-field:focus {
    outline: none;
    border-color: #ffec3e;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 236, 62, 0.1);
}

.password-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.field-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-error::before {
    content: "⚠";
    font-size: 10px;
}

.password-change-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.error-text {
    color: #ff6b6b;
    font-size: 14px;
}

.password-requirements {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
}

.requirements-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.password-change-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.password-change-submit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ffec3e 0%, #ffd700 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.password-change-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 236, 62, 0.3);
}

.password-change-cancel {
    padding: 15px 25px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-change-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.password-change-success {
    text-align: center;
    padding: 30px;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon img {
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.3));
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .password-change-wrapper {
        padding: 20px 15px;
        min-height: 100vh;
    }
    
    .password-change-container {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .password-change-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .password-change-cancel {
        order: -1; /* Кнопка отмены сверху на мобильных */
    }
}

@media screen and (max-width: 480px) {
    .password-change-wrapper {
        padding: 15px 10px;
    }
    
    .password-change-container {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .password-field {
        padding: 12px 16px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .requirements-list {
        gap: 4px;
    }
    
    .requirement-item {
        font-size: 11px;
    }
}

/* ==========================================
   Стили для фильтров заказов и статусов
   ========================================== */

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.order-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.filter-btn.active {
    color: #000;
    background: #ffec3e;
    border-color: #ffec3e;
}

.filter-confirmed.active {
    background: #34c85a;
    color: #fff;
    border-color: #34c85a;
}

.filter-pending.active {
    background: #f9d443;
    color: #000;
    border-color: #f9d443;
}

.filter-cancelled.active {
    background: #f03a66;
    color: #fff;
    border-color: #f03a66;
}

/* Цветовая кодировка статусов заказов */
.order-status-confirmed {
    background: #34c85a !important;
    border-left: 4px solid #34c85a !important;
    color: #000 !important;
}

.order-status-confirmed:hover {
    background: #2eb84e !important;
}

.order-status-pending {
    background: #f9d443 !important;
    border-left: 4px solid #f9d443 !important;
    color: #000 !important;
}

.order-status-pending:hover {
    background: #f7ce2d !important;
}

.order-status-cancelled {
    background: #f03a66 !important;
    border-left: 4px solid #f03a66 !important;
    color: #fff !important;
}

.order-status-cancelled:hover {
    background: #e8285a !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
        font-size: 12px;
        padding: 6px 8px;
    }
}