* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 80px 20px 40px;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.title {
    font-size: 48px;
    background: linear-gradient(180deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.subtitle {
    color: #888;
    font-size: 18px;
    margin-bottom: 50px;
}

.idea {
   min-height: 120px;
   
   display: flex;
   align-items: center;
   justify-content: center;
   
   margin-bottom: 35px;
   
   font-size: 28px;
   line-height: 1.4;
}

.button {
    padding: 14px 28px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.button:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 0 24px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.button:active {
    transform: scale(0.97);
}

    .buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .saved-tittle {
         margin-bottom: 20px;  
    }
    .saved-ideas {
         display: flex;
         flex-direction: column;
         gap: 20px;

         padding: 10px;

         border: 1px solid #333;
         border-radius: 8px;
        }
.delete-button {
    flex-shrink: 0;

    padding: 8px 12px;

    border: 1px solid #555;
    border-radius: 6px;

    background: transparent;
    color: #fff;

    cursor: pointer;
}

.delete-button:hover {
     background: #fff;
     color: #000;
}


.tg-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #29b6f6;
    transition: 0.2s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tg-float:hover {
    background: rgba(41, 182, 246, 0.15);
    border-color: rgba(41, 182, 246, 0.5);
    color: #4fc3f7;
    transform: scale(1.05);
}

/* Экран выбора типа */
.type-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
    padding: 20px;
}

.type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 500px;
    width: 100%;
}

.type-btn {
    padding: 25px 20px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.type-btn:hover {
    background: #fff;
    color: #000;
}

/* Кнопка "Сменить тип" */
.change-type {
    margin: 0 auto 40px;
    display: block;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 6px;
    background: transparent;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.change-type:hover {
    color: #fff;
    border-color: #fff;
}

/* Исправление опечатки */
.saved-title {
    margin-bottom: 20px;
}

/* Блок идеи с полями */
.idea {
    display: block;
    text-align: left;
    padding: 20px;
    border: 1px solid #222;
    border-radius: 10px;
    background: #0a0a0a;
     background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
}

.idea-text {
    font-size: 24px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.idea-why,
.idea-how,
.idea-hook {
    font-size: 15px;
    color: #bbb;
    margin-bottom: 10px;
    line-height: 1.5;
}

.idea-why strong,
.idea-how strong,
.idea-hook strong {
    color: #fff;
}

.feedback {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.fb-btn {
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.fb-btn:hover {
    border-color: #fff;
}

.fb-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.saved-idea__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.saved-idea__text {
    flex: 1;
    text-align: left;
}

.saved-idea__text:hover {
    color: #aaa;
}

.saved-details {
    margin-top: 12px;
    padding: 12px;
    border-left: 2px solid #333;
    font-size: 14px;
    color: #bbb;
    line-height: 1.5;
    text-align: left;
}

.saved-details p {
    margin-bottom: 8px;
}

.saved-details strong {
    color: #fff;
}

.auth-block {
    margin: 30px auto 20px;
    text-align: center;
}
.auth-btn {
    padding: 12px 24px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.auth-btn:hover {
    background: #000;
    color: #fff;
}
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #bbb;
    font-size: 14px;
}
.logout-btn {
    padding: 6px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.logout-btn:hover { border-color: #fff; }

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}

.user-name {
    color: #bbb;
    font-size: 14px;
}

.logout-btn {
    padding: 6px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.logout-btn:hover {
    border-color: #fff;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}

.user-name {
    color: #bbb;
    font-size: 14px;
}

.logout-btn {
    padding: 6px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.logout-btn:hover {
    border-color: #fff;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.idea-block {
    animation: fadeIn 0.3s ease;
}

.genre-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
    padding: 20px;
}

.genre-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 500px;
    width: 100%;
}
.genre-btn {
    padding: 25px 20px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.genre-btn:hover {
    background: #fff;
    color: #000;
}

/* Иерархия кнопок */
.button--primary {
    background: #fff;
    color: #000;
    font-weight: 700;
    padding: 16px 32px;
    font-size: 16px;
}

.button--secondary {
    background: transparent;
    color: #aaa;
    border: 1px solid #333;
    font-size: 14px;
    padding: 12px 20px;
}

.button--secondary:hover {
    background: #111;
    color: #fff;
    border-color: #555;
}

/* Строка настроек */
.settings-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    color: #666;
    font-size: 13px;
}

.settings-btn {
    background: #111;
    border: 1px solid #333;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.settings-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Карточка идеи */
.idea-header {
    margin-bottom: 20px;
    text-align: left;
}

.idea-tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #333;
    border-radius: 20px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.idea-text {
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
    text-align: left;
}

.idea-body {
    text-align: left;
}

.idea-row {
    padding: 14px 0;
    border-top: 1px solid #1a1a1a;
}

.idea-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.idea-row p {
    font-size: 15px;
    color: #bbb;
    line-height: 1.5;
    margin: 0;
}

.idea-row--hook p {
    color: #fff;
    font-weight: 600;
    font-style: italic;
}

.state-block {
    text-align: center;
    padding: 40px 20px;
}

.state-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.state-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.state-subtitle {
    font-size: 14px;
    color: #888;
}

.state-cta {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.state-cta:hover {
    background: #ddd;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

.button--primary.pulse {
    animation: pulse 2s infinite;
}

.subscription-section {
    margin-top: 40px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%),
        linear-gradient(135deg, #0d0d0d 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.subscription-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

.subscription-title {
    font-size: 26px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subscription-text {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-text strong {
    color: #fff;
    font-weight: 700;
}

/* Подвал */

.site-footer {
    margin-top: 70px;
    padding: 36px 20px 48px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #333 50%, transparent 100%);
}

.site-footer__brand {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(180deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.site-footer__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.site-footer__line {
    color: #777;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.site-footer__line:last-child {
    margin-bottom: 0;
}

.site-footer__line a {
    color: #aaa;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: 0.2s;
}


.site-footer__link {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 18px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.site-footer__link:hover {
    color: #fff;
    border-color: #555;
    background: #0d0d0d;
}

.site-footer__link:hover {
    color: #fff;
    border-color: #444;
    background: #0d0d0d;
}

.telegram-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 16px 22px;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    color: #aaa;
    font-size: 15px;
    transition: 0.2s;
}

.telegram-strip:hover {
    color: #fff;
    border-color: #333;
    background: rgba(255,255,255,0.04);
}

.telegram-strip__arrow {
    color: #555;
    transition: 0.2s;
}

.telegram-strip:hover .telegram-strip__arrow {
    color: #fff;
    transform: translateX(3px);
}

.subscription-section--active {
    background: radial-gradient(circle at 50% 0%, rgba(76, 175, 80, 0.15) 0%, transparent 70%), 
                linear-gradient(135deg, #0d0d0d 0%, #0a0a0a 100%);
    border-color: rgba(76, 175, 80, 0.3); /* Зеленоватая рамка */
}

.subscription-section--active::before {
    background: linear-gradient(90deg, transparent 0%, rgba(76, 175, 80, 0.5) 50%, transparent 100%);
}

/* --- Переключатель (Tabs) --- */
.nav-switch {
    display: inline-flex;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.nav-switch__item {
    padding: 8px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    transition: 0.2s;
}

.nav-switch__item:hover {
    color: #fff;
}

/* Активная вкладка (в данном случае B2B) */
.nav-switch__item.active {
    background: #fff;
    color: #000;
}

/* Соцсети справа в подвале */
/* Иконки соцсетей в подвале */
.socials-right {
    position: absolute;
    right: -80px; /* Выносим иконки правее контейнера с текстом */
    top: 85%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Точное центрирование */
    display: flex;
    gap: 24px;
}
.socials-right a { color: #444; transition: 0.2s; display: inline-flex; }
.socials-right a:hover { color: #fff; }
.socials-right svg { width: 56px; height: 56px; }

/* Мобильная версия */
@media (max-width: 768px) {
    .socials-right {
        position: static;
        justify-content: center;
        margin-top: 50px;
        gap: 20px;
    }
}