:root { --primary: #000; --accent: #fdd835; --bg: #fff; --gray: #f5f5f7; --text: #1d1d1f; --red: #ff4d4d; --tg: #24A1DE; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); margin: 0; display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }

header { width: 100%; padding: 25px 40px; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; position: absolute; top: 0; z-index: 100; }
.logo { font-weight: 600; font-size: 22px; letter-spacing: -0.8px; text-decoration: none; color: #000; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.admin-tag { background: #000; color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 6px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.balance-pill { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--accent); padding: 6px 6px 6px 14px; border-radius: 20px; font-weight: 600; box-shadow: 0 4px 12px rgba(253,216,53,0.2); text-decoration: none; color: #000; }
.add-funds { background: #000; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }

.hero-section { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: 120px 20px 60px; box-sizing: border-box; position: relative; z-index: 10; }
.hero-container { width: 100%; max-width: 650px; text-align: center; position: relative; z-index: 10; }
h1 { font-size: 42px; font-weight: 600; letter-spacing: -1.5px; margin-bottom: 10px; line-height: 1.1; }
.slogan-sub { font-size: 18px; color: #888; margin-bottom: 30px; font-weight: 400; }

.ideas-btn { text-decoration: none; font-size: 12px; color: #aaa; font-weight: 600; transition: 0.2s; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 8px 16px; border-radius: 14px; background: var(--gray); }
.ideas-btn:hover { color: #000; background: #eee; }

/* Компактный input */
.new-input-wrap { position: relative; background: var(--gray); border-radius: 24px; padding: 14px 14px 10px; transition: 0.3s; text-align: left; }
.new-input-wrap:focus-within { background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transform: translateY(-4px); }
#promptInput { width: 100%; border: none; background: transparent; font-size: 16px; outline: none; font-family: inherit; resize: none; line-height: 1.5; color: var(--text); min-height: 28px; max-height: 120px; overflow-y: auto; box-sizing: border-box; padding: 0; }
.input-bottom { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.input-icon-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: #aaa; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.input-icon-btn:hover { background: #eee; color: #000; }
.input-settings-btn { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1.5px solid #eee; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: #333; transition: 0.2s; white-space: nowrap; }
.new-input-wrap:focus-within .input-settings-btn { background: var(--gray); border-color: var(--gray); }
.settings-sep { color: #ddd; }
.btn-send { width: 38px; height: 38px; border-radius: 50%; border: none; background: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.btn-send:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-send:hover:not(:disabled) { transform: scale(1.05); }

/* Превью фото (Мультизагрузка) */
#previewContainer { display: none; gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 10px; padding-bottom: 4px; }
#previewContainer::-webkit-scrollbar { height: 4px; }
#previewContainer::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.preview-wrapper { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.preview-image { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.del-file { position: absolute; top: -6px; right: -6px; background: #000; color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* Попап настроек */
.settings-popup { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.12); padding: 18px; z-index: 1000; text-align: left; border: 1px solid #f0f0f0; }
.settings-popup.open { display: block; }
.popup-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #bbb; letter-spacing: 0.5px; margin-bottom: 8px; }
.popup-row { display: flex; gap: 6px; flex-wrap: wrap; }
.popup-btn { padding: 6px 14px; border-radius: 12px; border: 1.5px solid #eee; font-size: 12px; font-weight: 600; cursor: pointer; background: #fff; color: #555; transition: 0.15s; }
.popup-btn:hover { border-color: #ccc; color: #000; }
.popup-btn.active { background: #000; color: #fff; border-color: #000; }
.popup-price { margin-top: 14px; font-size: 12px; color: #888; font-weight: 600; border-top: 1px solid #f5f5f5; padding-top: 12px; }

/* Прогресс-бар */
.progress-container { width: 100%; height: 4px; background: #f0f0f0; border-radius: 10px; margin-top: 20px; display: none; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: #000; border-radius: 10px; transition: width 0.4s cubic-bezier(0.1,0.5,0.5,1); }
#loaderText { margin-top: 12px; font-size: 12px; color: #aaa; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Поддержка */
.support-btn { position: fixed; bottom: 30px; right: 30px; width: 54px; height: 54px; background: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1000; transition: 0.3s; }
.support-btn:hover { transform: scale(1.1); background: var(--tg); }

/* Галерея */
.gallery-container { width: 100%; max-width: 1000px; padding: 0 20px 80px; margin: 0 auto; position: relative; z-index: 1; }
.gallery-header { font-size: 11px; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.gallery-header::after { content: ''; flex: 1; height: 1px; background: #eee; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.gallery-item { position: relative; aspect-ratio: 1/1; border-radius: 24px; overflow: hidden; background: var(--gray); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: filter 0.6s ease; }
.item-actions { position: absolute; top: 12px; right: 12px; opacity: 0; transition: 0.2s; z-index: 10; }
.gallery-item:hover .item-actions { opacity: 1; }
.btn-del { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-dl { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(255,255,255,0.95); padding: 10px; border-radius: 14px; text-align: center; color: #000; font-size: 11px; font-weight: 700; opacity: 0; transition: 0.2s; cursor: pointer; }
.gallery-item:hover .btn-dl { opacity: 1; }

/* Плейсхолдер генерации */
.gallery-item.pending { background: #eee; }
.gallery-item.pending img { filter: blur(16px); transform: scale(1.05); cursor: default; }
.pending-spinner {
    position: absolute; top: 10px; right: 10px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}
.pending-spinner svg { animation: spin 0.8s linear infinite; }
.pending-overlay {
    position: absolute; inset: 0;
    background: rgba(245,245,247,0.5);
    backdrop-filter: blur(2px);
    z-index: 5;
}

/* Стили для переключателя и чата */
.mode-switcher { display: inline-flex; background: var(--gray); border-radius: 20px; padding: 4px; margin-bottom: 20px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.mode-btn { background: transparent; border: none; padding: 10px 24px; border-radius: 16px; font-size: 13px; font-weight: 700; color: #888; cursor: pointer; transition: 0.3s; }
.mode-btn.active { background: #fff; color: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.chat-container { width: 100%; text-align: left; margin-bottom: 20px; position: relative; z-index: 1; }
.chat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.chat-actions { display: flex; gap: 8px; }

/* Кнопки шапки чата */
.btn-history { background: #f5f5f7; color: #000; border: 1px solid #eee; padding: 8px 14px; border-radius: 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-history:hover { background: #eee; border-color: #e0e0e0; }
.btn-history:active { transform: scale(0.95); }
.btn-history svg { opacity: 0.7; }

.btn-new-chat { background: #000; color: #fff; border: none; padding: 8px 16px; border-radius: 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-new-chat:active { transform: scale(0.95); }

.chat-messages { display: flex; flex-direction: column; gap: 15px; max-height: 50vh; overflow-y: auto; padding-right: 5px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Сообщения */
.chat-msg { max-width: 85%; padding: 16px 20px; border-radius: 24px; font-size: 14px; line-height: 1.5; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
.chat-msg.user { align-self: flex-end; background: #000; color: #fff; border-bottom-right-radius: 6px; }
.chat-msg.assistant { align-self: flex-start; background: #fff; border: 1px solid #eee; border-bottom-left-radius: 6px; color: #1d1d1f; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.chat-msg.loading { align-self: flex-start; background: transparent; color: #888; border: none; font-size: 13px; font-style: italic; padding: 10px; display: flex; align-items: center; gap: 8px; }

/* Markdown стили в чате */
.chat-msg.assistant > :first-child { margin-top: 0; }
.chat-msg.assistant > :last-child { margin-bottom: 0; }
.chat-msg.assistant p { margin: 0 0 10px 0; word-wrap: break-word; white-space: normal; }
.chat-msg.assistant pre { background: #f5f5f7; padding: 12px; border-radius: 12px; overflow-x: auto; font-size: 13px; margin: 10px 0; border: 1px solid #eee; -webkit-overflow-scrolling: touch; }
.chat-msg.assistant code { background: #f5f5f7; padding: 2px 6px; border-radius: 6px; font-family: monospace; font-size: 13px; color: #d32f2f; }
.chat-msg.assistant pre code { padding: 0; background: transparent; color: inherit; }
.chat-msg.assistant table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chat-msg.assistant th, .chat-msg.assistant td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.chat-msg.assistant th { background: #fafafa; font-weight: 700; }
.chat-msg.assistant ul, .chat-msg.assistant ol { margin: 0 0 10px 0; padding-left: 20px; }
.chat-msg.assistant blockquote { border-left: 3px solid #ddd; margin: 0; padding-left: 10px; color: #888; }
.chat-msg.assistant img { max-width: 100%; border-radius: 12px; height: auto; }

/* Модальное окно истории чатов */
.chat-history-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; backdrop-filter: blur(4px); transition: 0.3s; opacity: 0; }
.chat-history-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%); width: 90%; max-width: 400px; background: #fff; border-radius: 28px; z-index: 1001; padding: 25px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); max-height: 80vh; flex-direction: column; opacity: 0; transition: 0.3s; }

.chat-history-overlay.open { display: block; opacity: 1; }
.chat-history-modal.open { display: flex; transform: translate(-50%, -50%); opacity: 1; }

.chat-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chat-history-header h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.5px;}
.chat-history-header button { background: #f5f5f7; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: bold; cursor: pointer; color: #888; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.chat-history-header button:hover { background: #eee; color: #000; }

.chat-history-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 5px; }
.chat-history-list::-webkit-scrollbar { width: 4px; }
.chat-history-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Стили для элементов списка и кнопки удаления */
.chat-history-item { padding: 15px 18px; background: #f9f9f9; border-radius: 18px; cursor: pointer; border: 1px solid #eee; transition: 0.2s; text-align: left; display: flex; justify-content: space-between; align-items: center; }
.chat-history-item:hover { border-color: #ddd; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.chat-history-item.active { border-color: #000; background: #000; color: #fff; }
.chat-history-item-info { flex: 1; overflow: hidden; }
.chat-history-item .chat-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-history-item .chat-date { font-size: 11px; color: #888; font-weight: 600; }
.chat-history-item.active .chat-date { color: #aaa; }

/* Новые стили для кнопок действий в истории */
.chat-history-actions { display: flex; align-items: center; gap: 4px; }
.btn-chat-edit, .btn-chat-del { background: transparent; border: none; font-size: 14px; cursor: pointer; padding: 5px; border-radius: 6px; opacity: 0.3; transition: 0.2s; }
.btn-chat-edit { color: #888; }
.btn-chat-del { color: #ff4d4d; font-size: 16px; }
.chat-history-item:hover .btn-chat-edit, .chat-history-item:hover .btn-chat-del { opacity: 1; }
.btn-chat-edit:hover { background: #eee; color: #000; opacity: 1; }
.btn-chat-del:hover { background: #ffebee; opacity: 1; }

@media (max-width: 600px) {
    header { padding: 15px 20px; }
    h1 { font-size: 32px; }
    .hero-section { padding-top: 100px; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
    .item-actions, .btn-dl { opacity: 1; }
    
    .support-btn { bottom: 130px; right: 15px; width: 44px; height: 44px; }
    .support-btn svg { width: 20px; height: 20px; }
    .btn-chat-edit, .btn-chat-del { opacity: 1; }
}

#notification-container { position: fixed; top: 20px; right: 20px; z-index: 10001; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #fff; padding: 16px 24px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); font-size: 14px; font-weight: 600; transform: translateX(120%); transition: 0.4s; border-left: 4px solid var(--accent); }
.toast.show { transform: translateX(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ГЛОБАЛЬНЫЕ УВЕДОМЛЕНИЯ (НОВОСТИ) ===== */
.news-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: 0.3s;
}
.news-overlay.open { opacity: 1; visibility: visible; }
.news-modal {
    background: #fff; border-radius: 35px; padding: 40px; max-width: 450px; width: 90%;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transform: translateY(20px) scale(0.95); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.news-overlay.open .news-modal { transform: translateY(0) scale(1); }
.news-icon { font-size: 45px; margin-bottom: 15px; }
.news-modal h2 { margin: 0 0 15px 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: #000; }
.news-content { font-size: 15px; color: #424245; line-height: 1.6; margin-bottom: 30px; text-align: left; }
.btn-news-read {
    width: 100%; background: #000; color: #fff; border: none; padding: 18px;
    border-radius: 20px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.2s;
}
.btn-news-read:active { transform: scale(0.97); }
/* ===== ВИДЕО-КАРТОЧКИ В ГАЛЕРЕЕ ===== */
.gallery-item.video-item { aspect-ratio: 9/16; background: #1a1a1a; }
.gallery-item.video-item video {
    width:100%; height:100%; object-fit:cover;
    cursor:pointer; display:block;
    background: #1a1a1a;
}
.video-play-icon {
    position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%);
    background:rgba(255,255,255,0.85); color:#000;
    font-size:18px; width:48px; height:48px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    z-index:5; cursor:pointer; transition:opacity 0.2s;
    box-shadow:0 4px 15px rgba(0,0,0,0.15); padding-left:3px;
    /* всегда видна — не только при hover */
    opacity:1;
}
.gallery-item.video-item:hover .video-play-icon { opacity:0.75; }
/* скрывается только когда видео играет (JS добавляет класс playing) */
.gallery-item.video-item.playing .video-play-icon { opacity:0; }

/* MC видео-кнопка в инпуте */
#mcVideoUploadBtn { background:rgba(0,0,0,0.06); }
#mcVideoUploadBtn:hover { background:#eee; color:#000; }

/* Метка длины видео в превью */
.preview-wrapper { border-radius:12px; overflow:hidden; }

/* ===== MOTION CONTROL — ДВА ТЁМНЫХ ПРЯМОУГОЛЬНИКА ===== */
#mcUploadArea { margin-bottom: 10px; }

.mc-cards {
    display: flex;
    gap: 10px;
}

.mc-card {
    flex: 1;
    cursor: pointer;
    transition: opacity 0.2s;
}
.mc-card:hover { opacity: 0.85; }
.mc-card[style*="opacity: 0.5"] { cursor: default; }

.mc-card-label {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}
.mc-card-sub {
    font-size: 10px;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 6px;
}

.mc-card-inner {
    background: #1c1c1e;
    border-radius: 14px;
    border: 1.5px dashed #3a3a3c;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}
.mc-card:hover .mc-card-inner { border-color: #666; }
.mc-card.mc-step-done .mc-card-inner {
    border-style: solid;
    border-color: #3a3a3c;
}

.mc-card-plus {
    font-size: 22px;
    color: #888;
    line-height: 1;
    font-weight: 300;
}
.mc-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Когда файл загружен — скрываем + и текст */
.mc-card.mc-step-done .mc-card-plus,
.mc-card.mc-step-done .mc-card-title { display: none; }

/* Превью загруженного файла */
.mc-card-inner img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.mc-card-inner-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mc-card-inner-info span:first-child {
    font-size: 22px;
}
.mc-card-inner-info span:last-child {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* Кнопка удалить поверх карточки */
.mc-card-del {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.15s;
}
.mc-card-del:hover { background: #e53935; }


/* ===== iOS VIDEO DOWNLOAD HINT ===== */
.ios-hint-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10002;
    display: flex; align-items: flex-end;
    /* backdrop-filter убран — глючит на iOS 18 */
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ios-hint-overlay.open { opacity: 1; }

.ios-hint-modal {
    background: #fff;
    border-radius: 28px 28px 0 0;
    padding: 28px 20px 48px;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.ios-hint-overlay.open .ios-hint-modal { transform: translateY(0); }

.ios-hint-icon {
    font-size: 38px;
    text-align: center;
    margin-bottom: 8px;
}
.ios-hint-title {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.4px;
    margin-bottom: 24px;
    color: #000;
}

.ios-hint-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}
.ios-hint-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ios-hint-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.ios-hint-step-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.ios-hint-step-text b { color: #000; font-weight: 700; }

/* Кнопка «Открыть видео» — основная */
.ios-hint-btn-open {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
}
.ios-hint-btn-open:active { opacity: 0.75; }

/* Кнопка «Закрыть» — второстепенная */
.ios-hint-btn-cancel {
    display: block;
    width: 100%;
    background: transparent;
    color: #888;
    border: none;
    padding: 12px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ios-hint-btn-cancel:active { opacity: 0.6; }