/* Карточки */
.card { flex: 1; max-width: 550px; width: 100%; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: var(--card-shadow); border: 1px solid var(--border); box-sizing: border-box; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.card-header h2 { font-size: 24px; font-weight: 900; margin: 0; color: var(--sec); display: flex; align-items: center; gap: 10px;}

.top10-card { width: 340px; background: var(--white); padding: 30px 25px; border-radius: 12px; box-shadow: var(--card-shadow); border: 1px solid var(--border); box-sizing: border-box; flex-shrink: 0; position: sticky; top: 85px; }
.top10-card h3 { text-align: center; font-size: 20px; font-weight: 900; margin-top: 0; margin-bottom: 20px; color: var(--sec); display: flex; align-items: center; justify-content: center; gap: 8px;}
.top10-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); cursor: pointer; transition: 0.2s;}
.top10-item:last-child { border-bottom: none; padding-bottom: 0; }
.top10-item:hover { transform: translateX(5px); color: var(--prm-dark); }
.top10-num { font-size: 18px; font-weight: 900; color: var(--prm-light); min-width: 24px; text-align: left; }
.top10-name { font-size: 14px; font-weight: 700; color: var(--sec); line-height: 1.3; transition: 0.2s; }

/* Кнопки */
.btn-group-main { display: flex; gap: 10px; margin-top: 25px; }
.btn { 
    flex: 2; width: 100%; 
    background: var(--prm-light); 
    color: #fff; border: none; 
    padding: 16px; 
    border-radius: 8px; 
    font-size: 15px; 
    font-weight: 800; 
    cursor: pointer; transition: 0.3s; 
    box-shadow: 0 8px 20px -5px rgba(236, 72, 153, 0.4); 
    text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Inter', sans-serif;
}
.btn i { font-size: 20px; }
.btn:hover:not(:disabled) { transform: translateY(-2px); background: #db2777; box-shadow: 0 12px 25px -5px rgba(236, 72, 153, 0.5); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-lucky { 
    flex: 1; 
    background: rgba(126, 34, 206, 0.1); 
    border: 1px solid rgba(126, 34, 206, 0.3);
    padding: 16px 10px; 
    font-size: 13px; 
    border-radius: 8px; 
    white-space: nowrap; 
    color: var(--prm-dark); 
    transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.btn-lucky:hover:not(:disabled) { background: var(--prm-dark); color: #fff; box-shadow: 0 8px 20px -5px rgba(126, 34, 206, 0.4); }

.btn-outline { 
    width: 100%; 
    background: transparent; 
    color: var(--sec); 
    border: 2px solid var(--border); 
    padding: 16px; 
    border-radius: 8px; 
    font-size: 15px; 
    font-weight: 800; 
    cursor: pointer; 
    margin-top: 15px; 
    transition: 0.3s; 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    font-family: 'Inter', sans-serif;
}
.btn-outline:hover { border-color: var(--prm-dark); color: var(--prm-dark); background: rgba(var(--sec), 0.02); }

#b-greet { border-color: rgba(126, 34, 206, 0.2); color: var(--prm-dark); }
#b-greet:hover { border-color: var(--prm-dark); background: rgba(126, 34, 206, 0.05); }
#suggest-btn { border-color: rgba(249, 115, 22, 0.2); color: var(--accent); }
#suggest-btn:hover { border-color: var(--accent); background: rgba(249, 115, 22, 0.05); }

.reset-btn { background: rgba(100,116,139,0.1); border: none; border-radius: 6px; padding: 8px 12px; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; display: none; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; font-family: 'Inter', sans-serif;}
.reset-btn:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Формы и Инпуты */
.group { margin-bottom: 22px; position: relative; text-align: left; }
.group label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; margin-left: 8px; }
.input-wrapper { position: relative; display: flex; align-items: center; width: 100%; transition: 0.3s ease; }
.input-icon { position: absolute; left: 16px; font-size: 20px; color: var(--text-muted); transition: all 0.3s; pointer-events: none; z-index: 2;}
.input-box { width: 100%; padding: 16px 40px 16px 46px; border: 2px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; box-sizing: border-box; cursor: pointer; background-color: var(--bg); color: var(--sec); font-weight: 600; font-family: 'Inter', sans-serif; transition: 0.3s; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 18px center; background-size: 16px;}
.input-wrapper:focus-within .input-icon { color: var(--prm-light); transform: scale(1.1) rotate(-5deg); }
.input-wrapper:focus-within .input-box { border-color: var(--prm-light); background-color: var(--white); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1); }

.drop { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 8px; max-height: 240px; overflow-y: auto; display: none; z-index: 100; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); margin-top: 8px; }
.item { padding: 15px 22px; cursor: pointer; font-size: 15px; border-bottom: 1px solid var(--bg); color: var(--sec); font-weight: 600; transition: 0.2s; display: flex; align-items: center; gap: 10px;}
.item:hover { background: rgba(236, 72, 153, 0.1); color: var(--prm-dark); padding-left: 28px; }

/* Результаты */
#loader { display: none; margin-top: 30px; }
.skeleton-box { background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 8px; height: 80px; margin-bottom: 12px; }
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

#res { display: none; margin-top: 30px; animation: fadeIn 0.6s ease; scroll-margin-top: 100px; }
.res-title { font-size: 20px; font-weight: 900; color: var(--prm-dark); display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }

.gift-list { display: flex; flex-direction: column; gap: 12px; }
.gift-item { background: var(--white); border: 2px solid var(--border); border-radius: 8px; padding: 16px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; animation: fadeIn 0.5s ease; }
.gift-item:hover { border-color: var(--prm-light); box-shadow: 0 5px 15px rgba(236, 72, 153, 0.1); }

.gift-main-wrap { display: flex; align-items: center; gap: 15px; flex-grow: 1; }
.gift-info { display: flex; flex-direction: column; gap: 4px; padding-right: 15px;}
.gift-name { font-weight: 800; color: var(--sec); font-size: 16px; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.gift-price { font-size: 14px; color: var(--text-muted); font-weight: 700; }

.action-group { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.fav-icon { font-size: 26px; cursor: pointer; color: var(--border); display: flex; align-items: center; transition: 0.2s; user-select: none; }
.fav-icon:hover { color: var(--accent); opacity: 0.7; }
.fav-icon.active { color: #ef4444 !important; }
.fav-icon:active { transform: scale(0.9); }

.gift-link { background: rgba(236, 72, 153, 0.1); color: var(--prm-light); text-decoration: none; padding: 10px 18px; border-radius: 6px; font-weight: 800; font-size: 13px; border: 1px solid rgba(236, 72, 153, 0.2); transition: 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.gift-link:hover { background: var(--prm-light); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 15px -3px rgba(236, 72, 153, 0.3); }

/* Сетка кнопок действий под списком */
.action-btns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.action-btns-grid .btn-outline { margin-top: 0; padding: 12px; font-size: 14px; }

/* Модальные окна */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { background: var(--bg); padding: 35px; border-radius: 12px; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.show .modal-content { transform: translateY(0); }
.close-btn { position: absolute; top: 25px; right: 25px; font-size: 28px; cursor: pointer; background: none; border: none; color: var(--text-muted); transition: 0.2s; }
.close-btn:hover { color: var(--accent); transform: scale(1.1) rotate(90deg); }

.modal-title { font-size: 24px; font-weight: 900; color: var(--sec); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.suggest-input { width: 100%; padding: 15px; border: 2px solid var(--border); border-radius: 6px; font-size: 15px; margin-bottom: 15px; background: var(--white); color: var(--sec); box-sizing: border-box; outline: none; font-family: 'Inter', sans-serif;}
.suggest-input:focus { border-color: var(--prm-light); }
.clear-all-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 12px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px dashed #ef4444; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.clear-all-btn:hover { background: #ef4444; color: #fff; }

.share-wishlist-btn { padding: 12px; font-size: 14px; background: var(--prm-dark); color: #fff; border-radius: 8px; margin-top: 15px; border: none; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; cursor: pointer; width: 100%; font-weight: 700; }
.share-wishlist-btn:hover { background: #6b21a8; transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(126, 34, 206, 0.4); }

/* SEO Секция */
.seo-section { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.section-title { font-size: 22px; color: var(--sec); margin-bottom: 25px; text-align: center; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px;}
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.seo-link { background: var(--white); padding: 20px; border-radius: 8px; border: 1px solid var(--border); font-size: 15px; font-weight: 700; color: var(--text-muted); text-decoration: none; transition: 0.3s; text-align: left; display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 60px; line-height: 1.4; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.seo-link i { font-size: 20px; color: var(--prm-light); flex-shrink: 0;}
.seo-link:hover { border-color: var(--prm-light); color: var(--prm-dark); background: var(--bg); transform: translateY(-5px); box-shadow: 0 10px 20px -3px rgba(0,0,0,0.1); }

/* FAQ Секция */
.faq-section { max-width: 800px; margin: 40px auto 60px; padding: 0 20px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; transition: 0.3s; }
.faq-q { padding: 20px; font-weight: 800; color: var(--sec); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q:hover { background: var(--bg); color: var(--prm-dark); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--text-muted); line-height: 1.6; }
.faq-item.active { border-color: var(--prm-light); }
.faq-item.active .faq-a { padding: 0 20px 20px; max-height: 500px; }
.faq-icon { font-size: 20px; transition: 0.3s; color: var(--text-muted);}
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--prm-light); }

/* Соцсети */
.share-box { margin-top: 25px; padding-top: 20px; border-top: 1px dashed var(--border); text-align: center; }
.share-box p { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;}
.share-btns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.s-btn { padding: 10px 15px; border-radius: 6px; font-weight: bold; font-size: 13px; color: #fff; text-decoration: none; transition: 0.2s; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; font-family: inherit;}
.s-tg { background: #0088cc; } .s-wa { background: #25d366; } .s-copy { background: var(--accent); }
.s-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Анимации */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%, 90% { transform: translate3d(-2px, 0, 0); } 20%, 80% { transform: translate3d(3px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-5px, 0, 0); } 40%, 60% { transform: translate3d(5px, 0, 0); } }

/* Плавающая кнопка */
.floating-fav { position: fixed; bottom: 30px; right: 30px; background: var(--white); border: 2px solid #ef4444; padding: 14px 22px; border-radius: 12px; box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4); cursor: pointer; font-weight: 800; color: #ef4444; display: flex; align-items: center; gap: 8px; z-index: 1000; transition: 0.3s; }
.floating-fav:hover { transform: translateY(-5px); }
#fav-count { background: #ef4444; color: #fff; padding: 2px 10px; border-radius: 6px; font-size: 13px; }

@media (max-width: 600px) {
    .btn-group-main { flex-direction: column; }
    .gift-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 15px; }
    .gift-main-wrap { width: 100%; }
    .action-group { width: 100%; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 15px; margin-top: 10px;}
    .gift-link { flex-grow: 1; text-align: center; margin-left: 10px; padding: 14px; font-size: 15px; }
    .seo-grid { grid-template-columns: 1fr; }
    .action-btns-grid { grid-template-columns: 1fr; }
    .action-btns-grid .btn-outline { padding: 16px; font-size: 15px; }
}
