/* Wishlist - Милый зелёный дизайн 🌿 */

/* ============== Базовые стили ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #4CAF50;
    --color-primary-dark: #388E3C;
    --color-secondary: #81C784;
    --color-accent: #FFB74D;
    --color-success: #4CAF50;
    --color-danger: #EF5350;
    --color-background: #F1F8E9;
    --color-surface: #FFFFFF;
    --color-text: #37474F;
    --color-text-muted: #78909C;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
    --shadow-hover: 0 8px 30px rgba(76, 175, 80, 0.25);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(129, 199, 132, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 183, 77, 0.05) 0%, transparent 40%);
}

/* ============== Layout ============== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.main {
    padding: 40px 0;
    min-height: calc(100vh - 140px);
}

/* ============== Header ============== */
.header {
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.12);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-link:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-primary);
}

.nav-link--logout {
    color: var(--color-danger);
}

.nav-link--logout:hover {
    background: rgba(239, 83, 80, 0.1);
}

/* ============== Footer ============== */
.footer {
    text-align: center;
    padding: 32px 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer span {
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

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

/* ============== Кнопки ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.btn--secondary {
    background: white;
    color: var(--color-text);
    border: 2px solid #e0e0e0;
}

.btn--secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--danger {
    background: var(--color-danger);
    color: white;
}

.btn--danger:hover {
    background: #e53935;
    transform: translateY(-2px);
}

.btn--small {
    padding: 10px 18px;
    font-size: 14px;
}

.btn--warning {
    background: linear-gradient(135deg, var(--color-accent), #FF9800);
    color: white;
}

/* ============== Формы ============== */
.form-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 2px solid rgba(76, 175, 80, 0.1);
}

.form-card__title {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group--checkbox {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.form-label--optional {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8F5E9;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-input--large {
    padding: 18px 22px;
    font-size: 18px;
}

.form-input--textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 28px;
}

.checkbox-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--color-primary);
}

.checkbox-hint {
    width: 100%;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-left: 34px;
}

.form-inline {
    display: inline;
}

/* ============== Flash сообщения ============== */
.flashes {
    margin-bottom: 24px;
}

.flash {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    font-weight: 600;
}

.flash--success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    border: 2px solid #a5d6a7;
}

.flash--error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #b71c1c;
    border: 2px solid #ef9a9a;
}

.flash--info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    border: 2px solid #90caf9;
}

/* ============== Заголовки страниц ============== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 36px;
    color: var(--color-text);
    font-weight: 800;
}

.page-header__meta {
    color: var(--color-text-muted);
    margin-top: 6px;
}

.page-header__meta a {
    color: var(--color-primary);
}

.page-header__subtitle {
    color: var(--color-text-muted);
    margin-top: 6px;
}

.page-header__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============== Сетка вишлистов ============== */
.wishlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.wishlist-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.wishlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.wishlist-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: rgba(76, 175, 80, 0.3);
}

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

.wishlist-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.wishlist-card__title {
    font-size: 20px;
    color: var(--color-text);
    font-weight: 700;
}

.wishlist-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.wishlist-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 2px dashed #E8F5E9;
}

.wishlist-card__date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.wishlist-card__action {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============== Бейджи ============== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.badge--public {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.badge--private {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

/* ============== Пустые состояния ============== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state__icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.empty-state__text {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

/* ============== Карточки подарков ============== */
.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wish-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wish-card:hover {
    border-color: rgba(76, 175, 80, 0.2);
}

.wish-card--reserved {
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border-color: rgba(255, 183, 77, 0.3);
}

.wish-card__main {
    flex: 1;
}

.wish-card__title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.wish-card__description {
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.wish-card__link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.wish-card__link:hover {
    text-decoration: underline;
}

.wish-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.wish-status {
    font-size: 14px;
    font-weight: 600;
}

.wish-status--available {
    color: var(--color-success);
}

.wish-status--taken {
    color: var(--color-text-muted);
}

.wish-status--mine {
    color: var(--color-primary);
    font-weight: 700;
}

/* ============== Логин ============== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 48px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 440px;
    width: 100%;
    border: 3px solid rgba(76, 175, 80, 0.15);
}

.login-title {
    font-size: 42px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 36px;
    font-size: 16px;
}

.login-telegram {
    margin-bottom: 36px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--color-text-muted);
    justify-content: center;
}

.feature-icon {
    font-size: 24px;
}

/* ============== Поиск ============== */
.search-form {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
}

.search-form .form-input {
    flex: 1;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 18px 24px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(6px);
    border-color: rgba(76, 175, 80, 0.2);
}

.user-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #66BB6A);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.user-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-card__name {
    font-weight: 700;
    font-size: 17px;
}

.user-card__username {
    color: var(--color-text-muted);
    font-size: 14px;
}

.user-card__arrow {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 20px;
}

/* ============== Профиль ============== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
    padding: 32px;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.3);
}

.profile-info h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.profile-username {
    color: var(--color-text-muted);
}

.profile-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
}

/* ============== Редактирование ============== */
.edit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ============== Секции ============== */
.section {
    margin-top: 44px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--color-text);
    font-weight: 700;
}

/* ============== Поделиться ============== */
.share-link {
    background: linear-gradient(135deg, #F1F8E9, #fff);
    border: 3px dashed var(--color-primary);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
}

.share-link p {
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-primary);
    font-size: 16px;
}

.share-link input {
    width: 100%;
    max-width: 420px;
    padding: 14px 18px;
    border: 2px solid #E8F5E9;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    text-align: center;
    font-family: inherit;
}

/* ============== Публичная ссылка ============== */
.shared-header {
    text-align: center;
    margin-bottom: 44px;
    padding: 48px 32px;
    background: linear-gradient(135deg, #F1F8E9, #fff);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 3px solid rgba(76, 175, 80, 0.2);
}

.shared-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.shared-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.shared-owner {
    color: var(--color-text-muted);
    font-size: 16px;
}

.shared-owner a {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-prompt {
    text-align: center;
    padding: 36px;
    background: linear-gradient(135deg, #FFF8E1, #fff);
    border-radius: var(--border-radius);
    margin-top: 36px;
    border: 2px dashed var(--color-accent);
}

.auth-prompt p {
    margin-bottom: 18px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* ============== Мои бронирования ============== */
.reservations-summary {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-weight: 600;
    border: 2px solid #a5d6a7;
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reservation-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 2px solid rgba(255, 183, 77, 0.3);
    transition: all 0.3s ease;
}

.reservation-card:hover {
    border-color: var(--color-accent);
}

.reservation-card__icon {
    font-size: 40px;
    flex-shrink: 0;
}

.reservation-card__content {
    flex: 1;
}

.reservation-card__title {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 700;
}

.reservation-card__description {
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.reservation-card__wishlist {
    font-size: 14px;
    color: var(--color-text-muted);
}

.reservation-card__wishlist a {
    color: var(--color-primary);
    font-weight: 600;
}

.reservation-card__actions {
    flex-shrink: 0;
}

.empty-state__hint {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-top: -6px;
    margin-bottom: 18px;
}

/* ============== Мобильное меню ============== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 640px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: 16px 24px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border-bottom: 3px solid var(--color-primary);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        display: block;
        padding: 14px 16px;
        border-radius: 12px;
        text-align: center;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ============== Адаптив ============== */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    
    .main {
        padding: 24px 0;
    }
    
    .page-header {
        flex-direction: column;
        margin-bottom: 24px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header__actions {
        width: 100%;
    }
    
    .page-header__actions .btn {
        flex: 1;
    }
    
    .wishlists-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wishlist-card {
        padding: 20px;
    }
    
    .wishlist-card__title {
        font-size: 18px;
    }
    
    .wish-card {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    
    .wish-card__title {
        font-size: 18px;
    }
    
    .wish-card__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .wish-card__actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .form-card {
        padding: 24px 20px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .form-input--large {
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .btn--small {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .login-card {
        padding: 32px 20px;
        margin: 0 -8px;
    }
    
    .login-title {
        font-size: 32px;
    }
    
    .login-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .user-card {
        padding: 16px 20px;
    }
    
    .user-card__avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .edit-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .profile-info h1 {
        font-size: 24px;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .shared-header {
        padding: 32px 20px;
    }
    
    .shared-header h1 {
        font-size: 24px;
    }
    
    .share-link {
        padding: 20px 16px;
    }
    
    .share-link input {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .reservation-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .reservation-card__icon {
        font-size: 32px;
    }
    
    .reservation-card__title {
        font-size: 18px;
    }
    
    .reservation-card__actions {
        width: 100%;
    }
    
    .reservation-card__actions .btn {
        width: 100%;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-state__icon {
        font-size: 60px;
    }
    
    .empty-state__text {
        font-size: 18px;
    }
    
    .flash {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .footer {
        padding: 24px 0;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 22px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-card {
        padding: 28px 16px;
    }
    
    .btn {
        padding: 12px 16px;
    }
}

/* ============== Модальное окно ============== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

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

.modal-header h2 {
    font-size: 22px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-danger);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 24px 20px;
        margin: 0;
        border-radius: 16px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal {
        padding: 12px;
        align-items: flex-end;
    }
}
