/* Анимация спиннера */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Force Light Theme - No Dark Mode Support */
:root {
  --app-bg-color: #ffffff;
  --app-text-color: #000000;
  --app-hint-color: #8e8e93;
  --app-link-color: #007aff;
  --app-button-color: #007aff;
  --app-button-text-color: #ffffff;
  --app-secondary-bg-color: #f2f2f7;
  
  --border-radius: 12px;
  --shadow-color: rgba(0, 0, 0, 0.05);
  
  /* Иконка баннера - настройки позиционирования и масштаба */
  --icon-width: 122px;
  --icon-height: 162px;
  --icon-top: -17px;
  --icon-left: 65%;
  --icon-rotate: 0deg;
  --icon-scale: 1;
  

}

/* Force light theme */
* {
  color-scheme: light !important;
}

html {
  color-scheme: light !important;
}

body {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 16px;
  padding-bottom: 24px; /* Дополнительный отступ снизу */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-container {
    max-width: 380px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.main-header h1, .page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

/* Search Bar - Legacy styles (keeping for backward compatibility) */
.search-bar {
    margin-bottom: 24px;
}

.search-bar input {
    width: 100%;
    height: 44px;
    padding: 11px 16px;
    border-radius: 100px;
    border: none;
    background-color: #f2f2f7 !important;
    color: #000000 !important;
    font-size: 16px;
    box-sizing: border-box;
}

.search-bar input::placeholder {
    color: #787880;
    opacity: 1; /* Override default browser opacity */
}

/* New Search Component Styles */
.search-container {
    width: 100%;
    margin-bottom: 24px;
    padding: 0;
}

.search-container .search-bar {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 11px 16px;
    border-radius: 100px;
    border: none;
    background-color: #f2f2f7 !important;
    color: #000000 !important;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
    outline: none;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input::placeholder {
    color: #8e8e93;
    opacity: 1;
    font-weight: 400;
}

.search-input:focus {
    background-color: #e5e5ea !important;
}

.search-input:active {
    background-color: #e5e5ea !important;
}

/* Mobile optimizations for search */
@media (max-width: 480px) {
    .search-container {
        margin-bottom: 20px;
    }
    
    .search-input {
        height: 48px; /* Slightly larger for better touch targets */
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .search-input {
        height: 48px;
        padding: 12px 16px;
        min-height: 44px; /* Ensure minimum touch target size */
    }
}

/* Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}
.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.see-all-link {
    color: #007aff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

/* Categories Section */
#categories-section {
    min-height: auto;
    margin-bottom: 40px;
}

/* Category Grid Container - reserve space to prevent layout shift */
.category-grid-container {
    min-height: 410px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 72px);
    grid-auto-flow: dense;
    row-gap: 16px;
    column-gap: 16px;
    justify-content: center;
    width: 100%;
    min-height: auto;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.category-grid.loaded {
    opacity: 1;
}

.category-card {
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 20px;
    background-color: #f2f2f7 !important;
    overflow: visible;
    display: flex;
    position: relative;
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-card.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 190px;
    width: 100%;
    padding: 0;
    flex-direction: column;
    background-color: #FFFFFF;
}

.category-card.large:nth-of-type(1) {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.category-card.large:nth-of-type(2) {
    grid-column: 3 / span 2;
    grid-row: 1 / span 2;
}

.category-card.large .category-image-placeholder {
    height: 133px;
    background-image: linear-gradient(to bottom, #6FA4FF, #9DD8FF);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.category-icon {
    width: 107%;
    position: absolute;
    top: 6px;
    left: 53%;
    transform: translateX(-50%);
    object-fit: contain;
}

.category-card.large .category-icon.beauty {
    width: 132%;
    top: -40px;
    left: 45%;
    transform: translateX(-50%) rotate(0deg);
}

.category-card.large .category-icon.moda {
    width: 125%; 
    top: -33px;
    left: 45%;
    transform: translateX(-50%) rotate(0deg);
}

.category-card.large .category-name {
    font-size: 16px;
    font-weight: 600;
    color: #000000 !important;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.small-category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 72px;
}

.category-card.small {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
    width: 72px;
    height: 72px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background-color: transparent !important;
    border-radius: 0;
}

.small-category-name {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #000000 !important;
    text-align: center;
    width: 100%;
}

.category-card.small .category-image-placeholder {
    width: 72px;
    height: 72px;
    background-color: transparent; /* Was placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card.small .category-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.category-card.small .category-name {
    font-size: 12px;
    font-weight: 500;
    color: #000000 !important;
}

#hot-promotions-section {
    margin-top: 0;
    margin-bottom: 40px;
    width: 100%;
    min-height: 165px;
}

.hot-promotions-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.hot-promotions-container {
    width: 100%;
    height: 133px;
    background: linear-gradient(to bottom left, #FFA770 0%, #6FA4FF 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 20px;
    box-sizing: border-box;
}

.hot-promotions-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: white;
    z-index: 2;
}

.hot-promotions-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.hot-promotions-subtitle {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.hot-promotions-button {
    background: white;
    color: black;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    align-self: flex-start;
    transition: opacity 0.2s;
    width: 171px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-promotions-button:active {
    opacity: 0.8;
}

.hot-promotions-icon {
    position: absolute !important;
    top: var(--icon-top, -20px) !important;
    left: var(--icon-left, 60%) !important;
    transform: rotate(var(--icon-rotate, 0deg)) !important;
    z-index: 10;
    pointer-events: none;
}

.hot-promotions-icon img {
    width: var(--icon-width, 122px);
    height: var(--icon-height, 162px);
    object-fit: contain;
    transform: scale(var(--icon-scale, 1));
}

/* Promotion List Item */
.promotion-list-item {
  background: #f2f2f7 !important;
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.promotion-list-item .item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(0,0,0,0.05);
    margin-right: 12px;
}

.promotion-list-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.promotion-content .promotion-description {
    font-weight: 600;
    margin-bottom: 4px;
}
.promotion-content .promotion-store {
    font-size: 14px;
    color: #8e8e93 !important;
}
.promotion-code-section .promo-code {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    text-align: right;
}
.copy-btn {
  background: #007aff !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.copy-btn:active {
  opacity: 0.7;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
  background: #ffffff !important;
  border-radius: 16px 16px 0 0;
  padding: 24px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }
    to { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #8e8e93 !important;
    cursor: pointer;
}
.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
}
.promo-code-display {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin: 24px 0;
  letter-spacing: 2px;
  color: #000000 !important;
  background: #f2f2f7 !important;
  padding: 16px;
  border-radius: 12px;
  user-select: all;
}
.category-tags {
    margin-bottom: 16px;
}
.category-tags .tag {
    display: inline-block;
    background: #f2f2f7 !important;
    color: #8e8e93 !important;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.promotion-details {
    margin-bottom: 24px;
    color: #8e8e93 !important;
}

.feedback-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    gap: 10px;
}
.feedback-section span {
    margin-right: 10px;
}
.feedback-btn {
  background: #f2f2f7 !important;
  color: #000000 !important;
  border: 1px solid #8e8e93 !important;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.feedback-btn:active {
    background: var(--app-button-color);
    color: var(--app-button-text-color);
    border-color: var(--app-button-color);
}
.feedback-btn .icon {
    margin-right: 8px;
    font-size: 18px;
}

.copy-main-btn {
    width: 100%;
    background: #007aff !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.copy-main-btn:active {
    opacity: 0.8;
}

/* Promotion List Container */
#promotion-list {
    padding-bottom: 40px; /* Отступ для iOS home indicator */
    margin-bottom: 0;
}

/* New Promotion List Item Styles */
.promotion-list-item-new {
    background: #ffffff !important;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f2f2f7;
}

.promotion-list-item-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promotion-list-item-new:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.promotion-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-right: 12px;
}

.promotion-tag {
    background: #f2f2f7 !important;
    color: #8e8e93 !important;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000 !important;
    line-height: 1.3;
    margin-bottom: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.promotion-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #8e8e93 !important;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.promotion-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.promo-code-btn {
    background: #007aff !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    max-width: 150px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.promo-code-btn:hover {
    background: #0056cc !important;
    transform: scale(1.02);
}

.promo-code-btn:active {
    background: #004bb5 !important;
    transform: scale(0.98);
}

.copy-feedback {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #34c759 !important;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    margin-top: 4px;
    animation: fadeIn 0.2s ease-in;
    pointer-events: none;
}

/* Mobile optimizations for new promotion list items */
@media (max-width: 480px) {
    .promotion-list-item-new {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .promotion-main-content {
        margin-right: 10px;
    }
    
    .promotion-title {
        font-size: 15px;
    }
    
    .promotion-subtitle {
        font-size: 13px;
    }
    
    .promo-code-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 70px;
        letter-spacing: 0.3px;
    }
}

/* Touch-friendly enhancements for new promotion items */
@media (hover: none) and (pointer: coarse) {
    .promotion-list-item-new {
        min-height: 80px; /* Ensure minimum touch target size */
    }
    
    .promo-code-btn {
        min-height: 44px; /* Minimum touch target size */
        min-width: 80px;
        padding: 12px 16px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .promotion-list-item-new {
        border: 2px solid #000000;
    }
    
    .promotion-tag {
        border: 1px solid #8e8e93;
    }
    
    .promo-code-btn {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .promotion-list-item-new {
        transition: none;
    }
    
    .promotion-list-item-new:hover {
        transform: none;
    }
    
    .promo-code-btn {
        transition: none;
    }
    
    .promo-code-btn:hover {
        transform: none;
    }
}
/* New Modal Styles */
.modal-overlay-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content-new {
    background: #ffffff !important;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    box-sizing: border-box;
    animation: slide-up-new 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slide-up-new {
    from { 
        transform: translateY(100%);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
}

.modal-title-new {
    font-size: 20px;
    font-weight: 600;
    color: #000000 !important;
    margin: 0;
    line-height: 1.3;
    padding-right: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-close-new {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 28px;
    color: #8e8e93 !important;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.2s ease;
    line-height: 1;
    font-weight: 300;
}

.modal-close-new:hover {
    background: #f2f2f7 !important;
    color: #000000 !important;
}

.modal-close-new:active {
    background: #e5e5ea !important;
    transform: scale(0.95);
}

.promo-code-section {
    text-align: center;
    margin-bottom: 24px;
}

.promo-code-display-new {
    font-size: 32px;
    font-weight: 700;
    color: #000000 !important;
    background: #f2f2f7 !important;
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.2;
}

.promo-code-source {
    font-size: 14px;
    color: #8e8e93 !important;
    font-weight: 400;
    line-height: 1.3;
}

.category-tags-new {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.tag-new {
    display: inline-flex;
    align-items: center;
    background: #f2f2f7 !important;
    color: #8e8e93 !important;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-new.active {
    background: #007aff !important;
    color: #ffffff !important;
}

.tag-new:not(.active):hover {
    background: #e5e5ea !important;
    color: #000000 !important;
}

.promotion-details-new {
    margin-bottom: 32px;
    color: #000000 !important;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: stretch;
}

.copy-btn-secondary {
    flex: 1;
    background: #f2f2f7 !important;
    color: #8e8e93 !important;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease;
    opacity: 0.6;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn-secondary:disabled {
    background: #f2f2f7 !important;
    color: #8e8e93 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.copy-btn-primary {
    flex: 1;
    background: #007aff !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn-primary:hover {
    background: #0056cc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.copy-btn-primary:active {
    background: #004bb5 !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.copy-btn-primary:disabled {
    background: #f2f2f7 !important;
    color: #8e8e93 !important;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Button state transitions for copy functionality */
.copy-btn-primary.copied {
    background: #34c759 !important;
    color: #ffffff !important;
}

.copy-btn-primary.copied:hover {
    background: #30b955 !important;
}

.copy-btn-secondary.copied-active {
    background: #34c759 !important;
    color: #ffffff !important;
    opacity: 1;
    cursor: default;
}

/* Mobile optimizations for new modal */
@media (max-width: 480px) {
    .modal-content-new {
        padding: 20px;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .modal-title-new {
        font-size: 18px;
        padding-right: 36px;
    }
    
    .modal-close-new {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    .promo-code-display-new {
        font-size: 28px;
        padding: 16px 12px;
        letter-spacing: 1px;
    }
    
    .promo-code-source {
        font-size: 13px;
    }
    
    .tag-new {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .promotion-details-new {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .modal-actions {
        gap: 10px;
        flex-direction: column;
    }
    
    .copy-btn-secondary,
    .copy-btn-primary {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 48px;
        width: 100%;
    }
}

/* Touch-friendly enhancements for new modal */
@media (hover: none) and (pointer: coarse) {
    .modal-close-new {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .copy-btn-secondary,
    .copy-btn-primary {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    .tag-new {
        min-height: 32px;
        padding: 8px 12px;
    }
}

/* High contrast mode support for new modal */
@media (prefers-contrast: high) {
    .modal-content-new {
        border: 2px solid #000000;
    }
    
    .promo-code-display-new {
        border: 2px solid #8e8e93;
    }
    
    .tag-new {
        border: 1px solid #8e8e93;
    }
    
    .tag-new.active {
        border: 2px solid #ffffff;
    }
    
    .copy-btn-primary {
        border: 2px solid #ffffff;
    }
    
    .copy-btn-secondary {
        border: 1px solid #8e8e93;
    }
}

/* Reduced motion support for new modal */
@media (prefers-reduced-motion: reduce) {
    .modal-content-new {
        animation: none;
    }
    
    .modal-close-new,
    .copy-btn-primary,
    .copy-btn-secondary,
    .tag-new {
        transition: none;
    }
    
    .copy-btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
    
    .copy-btn-primary:active {
        transform: none;
    }
}

/* Dark mode support disabled - force light theme only */

/* Focus states for accessibility */
.modal-close-new:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

.copy-btn-primary:focus-visible,
.copy-btn-secondary:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

.tag-new:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* Loading state for copy buttons */
.copy-btn-primary.loading {
    position: relative;
    color: transparent !important;
}

.copy-btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}/*
 Search Results Styles */
.search-results {
    margin-top: 16px;
    border-radius: var(--border-radius);
    background-color: var(--app-bg-color);
}

.search-message {
    padding: 20px;
    text-align: center;
    color: var(--app-hint-color);
    font-size: 16px;
    background-color: var(--app-secondary-bg-color);
    border-radius: var(--border-radius);
    margin: 16px 0;
}

/* Hide sections when search is active */
.search-active #categories-section,
.search-active #hot-promotions-section {
    display: none;
}

/* Show search results when search is active */
.search-active .search-results {
    display: block;
}

/* Search loading indicator */
.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--app-hint-color);
    font-size: 14px;
}

/* Search input focus states */
.search-input:focus {
    outline: none;
    border: 2px solid var(--app-link-color);
    background-color: var(--app-bg-color) !important;
}

/* Search cancel button */
.search-cancel-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #007aff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: none;
    z-index: 10;
    transition: all 0.2s ease;
}

.search-cancel-btn:hover {
    background: #0056cc;
}

.search-cancel-btn:active {
    background: #004bb5;
    transform: translateY(-50%) scale(0.95);
}