* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #b8ddff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 24px 12px;
}

.app-card {
    width: 360px;
    max-width: 100%;
    background: #e5f3ff;
    border-radius: 24px;
    padding: 20px 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 83, 143, 0.3);
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #89c4ff, #4f8fe8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.greeting {
    margin-left: 14px;
}

.hello {
    font-size: 18px;
    font-weight: 600;
    color: #0b2a46;
}

.logo {
    font-size: 14px;
    color: #296190;
    margin-top: 2px;
}

.btn {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: #005b8f;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 53, 99, 0.4);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-text {
    white-space: nowrap;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.tile {
    border: none;
    border-radius: 16px;
    background: #005b8f;
    color: #ffffff;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tile-icon-img {
    width: 28px;
    height: 28px;
    display: block;
}

.tile-title {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.invite-link {
    text-align: center;
    font-size: 14px;
    color: #225879;
    cursor: pointer;
}

/* Create wishlist page styles */

.wishlist-card {
    margin-top: 16px;
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.back-button {
    border: none;
    background: transparent;
    font-size: 20px;
    color: #0b2a46;
    cursor: pointer;
    padding: 4px 8px 4px 0;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #0b2a46;
}

.form-title-icon {
    font-size: 20px;
}

.wishlist-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #214667;
}

.form-control {
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    background: #ffffff;
    color: #0b2a46;
    outline: none;
}

.form-control::placeholder {
    color: #9bb3c9;
}

.form-control-textarea {
    min-height: 70px;
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0b2a46;
}

.radio-option input[type="radio"] {
    accent-color: #005b8f;
}

.section-label {
    font-size: 14px;
    font-weight: 500;
    color: #214667;
}

.form-submit-btn {
    margin-top: 8px;
}

/* Wishlist view page styles */

.settings-button {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #0b2a46;
    cursor: pointer;
    padding: 4px;
}

.wishlist-header {
    margin-bottom: 14px;
}

.wishlist-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b2a46;
    margin-bottom: 2px;
}

.wishlist-visibility {
    font-size: 14px;
    color: #214667;
    opacity: 0.8;
}

.wishlist-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.wishlist-action-btn {
    flex: 1;
    background: #005b8f;
    color: #fff;
    border-radius: 12px;
    padding: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-icon {
    font-size: 18px;
}

.wishlist-empty {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.empty-gift-img {
    width: 80px;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #0b2a46;
    margin-bottom: 6px;
}

.empty-subtitle {
    color: #355777;
    font-size: 14px;
    margin-bottom: 12px;
}

.empty-edit {
    color: #005b8f;
    font-size: 14px;
    cursor: pointer;
}

/* Верхний синий бар */

.wishlist-top {
    margin: -20px -20px 16px;
    padding: 12px 16px;
    background: #005b8f;
    border-radius: 24px 24px 0 0;
}

.wishlist-top .form-header {
    margin-bottom: 0;
}

.wishlist-top .form-title-text,
.wishlist-top .form-title-icon,
.wishlist-top .back-button {
    color: #ffffff;
}

.wishlist-top .back-button {
    font-size: 20px;
    padding-left: 0;
}

/* Кнопка настроек и меню */

.settings-button {
    margin-left: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
}

.settings-icon {
    width: 20px;
    height: 20px;
}

.form-header {
    position: relative;
}

.settings-menu {
    position: absolute;
    top: 40px;
    right: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    padding: 6px 0;
    display: none;
    min-width: 150px;
    z-index: 10;
}

.settings-menu--open {
    display: block;
}

.settings-item {
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: #0b2a46;
    cursor: pointer;
}

.settings-item:hover {
    background: #f0f4fa;
}

.settings-item-danger {
    color: #c0392b;
}

/* Заголовок вишлиста и видимость */

.wishlist-header {
    margin-bottom: 14px;
}

.wishlist-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b2a46;
    margin-bottom: 2px;
}

.wishlist-visibility {
    font-size: 14px;
    color: #214667;
    opacity: 0.8;
}

/* Кнопки действий */

.wishlist-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.wishlist-action-btn {
    flex: 1;
    background: #005b8f;
    color: #fff;
    border-radius: 12px;
    padding: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-icon-img {
    width: 18px;
    height: 18px;
}

/* Пустой вишлист */

.wishlist-empty {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.empty-gift-img {
    width: 80px;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #0b2a46;
    margin-bottom: 6px;
}

.empty-subtitle {
    color: #355777;
    font-size: 14px;
    margin-bottom: 12px;
}

.empty-edit {
    color: #005b8f;
    font-size: 14px;
    cursor: pointer;
}

/* Поле с селектом валюты */
.input-with-addon {
    display: flex;
    gap: 8px;
}

.input-main {
    flex: 1;
}

.input-addon {
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    background: #ffffff;
    color: #0b2a46;
    outline: none;
}

/* Изображение */

.image-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #2f7ed8;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.image-preview {
    flex: 1;
    min-height: 80px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.image-preview-placeholder {
    font-size: 12px;
    color: #9bb3c9;
}

/* Сердечки */

.hearts-row {
    display: flex;
    gap: 6px;
    font-size: 22px;
}

.heart {
    cursor: pointer;
    color: #b9c7d8;
    user-select: none;
}

.heart--active {
    color: #ff5b7f;
}
