/* ============================================
   КРУГ — zine / brutalist style (BURGER MENU FINAL)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Unbounded:wght@400;700;900&display=swap');

:root {
    --purple: #6b2d5b;
    --pink: #ff1a8c;
    --teal: #1a6b6b;
    --black: #1a1a1a;
    --white: #f5f0e8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Space Mono', monospace;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Гранж-фон и шум */
body::before {
    content: ''; position: fixed; inset: 0;
    background: url('assets/img/bg-purple.jpg') center/cover no-repeat;
    opacity: 0.35; z-index: -2; filter: contrast(1.2) saturate(1.3);
}
body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 20% 80%, rgba(255,26,140,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(26,107,107,0.2) 0%, transparent 50%);
}
.noise {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ ЛОГОТИП И АНИМАЦИИ ============ */
.logo {
    font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 28px;
    letter-spacing: -2px; color: var(--white); text-decoration: none;
    text-transform: lowercase; transition: transform 0.2s; z-index: 20;
}
.logo span { color: var(--pink); }
.logo:hover { animation: glitch 0.3s ease-in-out; }

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); }
}

/* ============ ШАПКА С БУРГЕРОМ (КОМПАКТНАЯ И ФИКСИРОВАННАЯ) ============ */
header.main-header {
    padding: 0 30px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid var(--white) !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 1000 !important;
    background: rgba(26,26,26,0.98) !important;
    backdrop-filter: blur(10px) !important;
    height: 70px !important;
    flex-direction: row !important; /* Запрещаем перенос в колонку */
}

header.main-header::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
    background: repeating-linear-gradient(90deg, var(--pink) 0px, var(--pink) 15px, transparent 15px, transparent 25px);
}

/* Правая часть строго в ряд */
.nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: 0 !important;
    flex-direction: row !important;
}

/* Скрываем старую навигацию */
.main-nav { display: none !important; }
.user-email { display: none !important; }

/* Кнопка Бургер */
.burger-btn {
    background: none; border: none; cursor: pointer; padding: 5px;
    display: flex; flex-direction: column; gap: 5px;
    z-index: 1002;
}
.burger-btn span {
    display: block; width: 25px; height: 2px; background: var(--white);
    transition: all 0.3s ease;
}
.burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.btn-logout {
    color: var(--white) !important; font-weight: 700; text-decoration: none;
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
}

.lang-switch {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white) !important; padding: 6px 12px; border-radius: 4px;
    font-size: 12px !important; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; text-decoration: none;
}

/* Выезжающее меню */
.mobile-menu {
    position: fixed; inset: 0; z-index: 1001;
    pointer-events: none; opacity: 0; transition: all 0.3s ease;
}
.mobile-menu.open { pointer-events: auto; opacity: 1; }
.menu-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.menu-content {
    position: absolute; top: 70px; right: 0; width: 280px; height: calc(100vh - 70px);
    background: var(--black); border-left: 2px solid var(--pink);
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; padding: 20px;
}
.mobile-menu.open .menu-content { transform: translateX(0); }

.menu-item {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    color: var(--white); text-decoration: none; font-size: 16px;
    font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-item:hover, .menu-item.active {
    background: rgba(255,26,140,0.1); color: var(--pink);
    border-left: 3px solid var(--pink); padding-left: 12px;
}

/* Отступ для контента */
body.logged-in { padding-top: 90px !important; }

/* ============ ШАПКА АВТОРИЗАЦИИ ============ */
.auth-header {
    width: 100%; background: rgba(26, 26, 26, 0.95);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1); padding: 15px 40px;
    position: relative; z-index: 10;
}
.auth-header-inner {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; gap: 30px; width: 100%;
}
.auth-steps-inline {
    display: flex; align-items: center; gap: 15px; flex: 1; justify-content: center;
}
.step-item { display: flex; align-items: center; gap: 8px; }
.step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s; font-family: 'Unbounded', sans-serif;
}
.step-label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5); font-weight: 600;
    transition: all 0.3s; white-space: nowrap;
}
.step-item.active .step-num {
    background: var(--pink); border-color: var(--pink); color: var(--black);
    box-shadow: 0 0 12px rgba(255, 26, 140, 0.4);
}
.step-item.active .step-label { color: var(--pink); font-weight: 700; }
.step-connector { width: 30px; height: 1px; background: rgba(255, 255, 255, 0.15); }

/* ============ КОНТЕЙНЕРЫ И КАРТОЧКИ ============ */
.auth-page { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main { display: flex; justify-content: center; align-items: flex-start; flex: 1; padding: 100px 20px 60px; }

.auth-box {
    position: relative; width: 100%; max-width: 420px; padding: 40px;
    border: 3px solid var(--white); background: rgba(26,26,26,0.9);
    backdrop-filter: blur(8px); transform: rotate(-1deg); margin: 0 auto;
}

.auth-welcome { text-align: center; color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 25px; line-height: 1.5; }

.tabs { display: flex; gap: 0; margin-bottom: 25px; border-bottom: 2px solid var(--white); }
.tabs a {
    flex: 1; text-align: center; padding: 12px; color: var(--white);
    text-decoration: none; font-size: 13px; text-transform: uppercase;
    letter-spacing: 3px; font-weight: 700; transition: background 0.2s;
}
.tabs a.active { background: var(--pink); color: var(--black); }
.tabs a:hover:not(.active) { background: rgba(255,255,255,0.1); }

.error {
    background: var(--pink); color: var(--black); padding: 12px 16px;
    font-weight: 700; font-size: 13px; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 20px; border-left: 4px solid var(--white);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 40px 30px; }

.card {
    position: relative; padding: 40px; margin-bottom: 40px;
    border: 3px solid var(--white); background: rgba(26,26,26,0.85);
    backdrop-filter: blur(4px); transform: rotate(-0.5deg);
    transition: transform 0.3s; animation: fadeIn 0.6s ease-out;
}
.card:nth-child(even) { transform: rotate(0.5deg); border-color: var(--pink); }
.card:hover { transform: rotate(0deg) scale(1.01); }

.card h2 {
    font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 32px;
    text-transform: uppercase; letter-spacing: -1px; margin-bottom: 25px; line-height: 1;
}
.card h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--pink); margin-top: 12px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ============ ФОРМЫ И КНОПКИ ДАТ ============ */
label {
    display: block; font-size: 13px; text-transform: uppercase;
    letter-spacing: 3px; margin: 20px 0 8px; color: var(--pink); font-weight: 700;
}
input, textarea, select {
    width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.05);
    border: 2px solid var(--white); border-radius: 0; color: var(--white);
    font-family: 'Space Mono', monospace; font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--pink); background: rgba(255,26,140,0.08); }
textarea { resize: vertical; min-height: 120px; }

button, .btn {
    display: inline-block; padding: 14px 28px; background: var(--white);
    color: var(--black); border: 3px solid var(--white); font-family: 'Unbounded', sans-serif;
    font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: all 0.2s; text-decoration: none; margin-top: 20px;
}
button:hover, .btn:hover {
    background: var(--pink); border-color: var(--pink); color: var(--white);
    transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--black);
}
button:active { transform: translate(0, 0); box-shadow: none; }

.quick-dates { 
    display: flex; 
    gap: 12px; 
    margin: 10px 0 20px; 
    flex-wrap: wrap;
    width: 100%;
}

.quick-dates button {
    margin: 0; 
    flex: 1; 
    min-width: 110px; 
    padding: 12px 10px;
    background: transparent; 
    color: var(--white); 
    border: 2px solid var(--white);
    font-size: 13px; 
    white-space: nowrap; 
    text-align: center;
    max-width: calc(33.333% - 8px); /* Чтобы не вылезали */
}

/* Поле выбора даты */
input[type="datetime-local"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--white);
    border-radius: 0;
    color: var(--white);
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box; /* Чтобы padding не вылезал */
    margin-bottom: 20px;
}
.quick-dates button {
    margin: 0; flex: 1; min-width: 110px; padding: 12px 10px;
    background: transparent; color: var(--white); border: 2px solid var(--white);
    font-size: 13px; white-space: nowrap; text-align: center;
}
.quick-dates button:hover { background: var(--teal); border-color: var(--teal); }

/* ============ ТАБЛИЦА И БЕЙДЖИ (АДАПТИВНАЯ) ============ */
.table-responsive { 
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; 
    border: 1px solid rgba(255,255,255,0.1);
}
table { 
    width: 100%; border-collapse: collapse; margin-top: 10px; min-width: 550px;
}

th {
    font-family: 'Unbounded', sans-serif; font-size: 12px; text-transform: uppercase;
    letter-spacing: 2px; text-align: left; padding: 12px 10px;
    border-bottom: 3px solid var(--pink); color: var(--pink);
}
td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
tr:hover td { background: rgba(255,26,140,0.05); }
td a { color: var(--white); text-decoration: none; border-bottom: 1px dashed var(--pink); transition: color 0.2s; }
td a:hover { color: var(--pink); }

.badge { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 2px solid; white-space: nowrap; }
.badge-pending { color: #ffd166; border-color: #ffd166; background: rgba(255,209,102,0.1); }
.badge-sent { color: #06d6a0; border-color: #06d6a0; background: rgba(6,214,160,0.1); }
.badge-opened { color: var(--pink); border-color: var(--pink); background: rgba(255,26,140,0.1); }

/* ============ СТРАНИЦА КАПСУЛЫ ============ */
.breadcrumbs { padding: 20px 0 10px; font-size: 14px; color: rgba(255,255,255,0.6); }
.breadcrumbs a { color: var(--pink); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumb-separator { margin: 0 8px; color: rgba(255,255,255,0.3); }

.capsule-card { text-align: center; padding: 60px 40px; min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.create-another { margin-top: 40px; text-align: center; }
.btn-create-another {
    display: inline-block; padding: 14px 28px; background: transparent; color: var(--white);
    border: 2px solid var(--pink); font-family: 'Unbounded', sans-serif; font-weight: 700;
    font-size: 14px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: all 0.2s;
}
.btn-create-another:hover {
    background: var(--pink); color: var(--black); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--black);
}

.box-wrap { position: relative; width: 200px; height: 200px; margin: 30px auto; }
.box-body { position: absolute; bottom: 0; width: 200px; height: 130px; background: var(--black); border: 3px solid var(--white); border-radius: 4px; }
.box-body::before {
    content: 'КРУГ'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 22px; color: var(--pink); letter-spacing: 4px;
}
.box-lid {
    position: absolute; top: 50px; left: -8px; width: 216px; height: 30px;
    background: var(--pink); border: 3px solid var(--white); border-radius: 4px;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55); transform-origin: bottom left;
}
.box-wrap.closing .box-lid { animation: lidClose 1.2s forwards; }
.box-wrap.closed .box-lid { transform: rotate(-20deg); }
@keyframes lidClose { 0% { transform: rotate(0deg); } 60% { transform: rotate(-25deg); } 100% { transform: rotate(-20deg); } }

.timer-wrap { text-align: center; margin: 30px 0; position: relative; }
.timer { width: 260px; height: 260px; transform: rotate(-90deg); filter: drop-shadow(0 0 20px rgba(255,26,140,0.3)); }
.timer-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 8; }
.timer-fg { fill: none; stroke: var(--pink); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer-text { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 32px; margin-top: -150px; position: relative; color: var(--white); letter-spacing: 2px; }

.btn-open { background: var(--pink); color: var(--white); border-color: var(--pink); font-size: 16px; padding: 18px 40px; width: auto; margin-top: 30px; }
.btn-open:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.opened-message { text-align: left; width: 100%; max-width: 600px; }
.opened-message h2 { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 28px; margin-bottom: 20px; color: var(--pink); }
.message-text { background: rgba(255,255,255,0.05); border-left: 4px solid var(--pink); padding: 25px; font-size: 16px; line-height: 1.7; white-space: pre-wrap; margin: 20px 0; }

.muted { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 10px; }
.small { font-size: 11px; }

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(6px); }
.modal-box { background: var(--black); border: 3px solid var(--pink); padding: 40px; max-width: 420px; width: 90%; transform: rotate(-1deg); }
.modal-box h3 { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 22px; text-transform: uppercase; margin-bottom: 15px; color: var(--pink); }
.modal-box p { font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions button { flex: 1; margin: 0; font-size: 12px; }
.btn-cancel { background: transparent !important; color: var(--white) !important; }
.btn-confirm.danger { background: var(--pink) !important; color: var(--white) !important; border-color: var(--pink) !important; }

/* ============ СТРАНИЦА О ПРОЕКТЕ ============ */
.about-card { max-width: 800px; margin: 0 auto; padding: 60px 40px; }
.about-content { margin: 30px 0; }
.about-content p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; color: rgba(255,255,255,0.85); }
.about-final { font-size: 20px !important; font-weight: 700; color: var(--pink) !important; text-align: center; margin-top: 40px !important; padding-top: 30px; border-top: 2px solid rgba(255,255,255,0.1); }
.about-cta { text-align: center; margin-top: 50px; }

/* ============ АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) ============ */
@media (max-width: 900px) {
    .auth-header-inner { flex-wrap: wrap; gap: 15px; }
    .auth-steps-inline { order: 3; width: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
    .step-label { display: none; }
    .step-connector { width: 20px; }
}

@media (max-width: 700px) {
    /* Карточки и формы */
    .card { padding: 25px; }
    .card h2 { font-size: 24px; }
    .auth-box { padding: 30px 25px; }
    
    /* Таймер */
    .timer { width: 200px; height: 200px; }
    .timer-text { font-size: 24px; margin-top: -120px; }
    
    /* Страница о проекте */
    .about-card { padding: 40px 25px; }
    .about-content p { font-size: 14px; }
    .about-final { font-size: 16px !important; }
    
    /* Таблица на мобильном */
    .table-responsive { margin: 0 -20px; padding: 0 20px; border: none; }
    table { font-size: 11px; min-width: 450px; }
    th, td { padding: 10px 6px; }
    .badge { font-size: 9px; padding: 3px 6px; }
    
    /* Кнопки дат */
    .quick-dates { flex-direction: column; gap: 10px; }
    .quick-dates button { width: 100%; white-space: normal; padding: 15px 10px; font-size: 12px; line-height: 1.3; min-width: auto; }
}

@media (max-width: 400px) {
    .main-nav { flex-direction: column; gap: 10px; }
    .main-nav a { font-size: 12px; }
}

/* ============ ФИКС ТАБЛИЦЫ НА МОБИЛЬНЫХ ============ */
.card {
    overflow: visible !important; /* Разрешаем контенту выходить за рамки для прокрутки */
}

.table-responsive {
    overflow-x: auto !important; /* Включаем прокрутку только здесь */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 0 -20px; /* Растягиваем на всю ширину экрана, компенсируя отступы карточки */
    padding: 0 20px;
    border: none !important; /* Убираем рамку, чтобы не мешала */
}

table {
    min-width: 500px !important; /* Жестко задаем минимальную ширину, чтобы не сжималась */
    width: 100%;
}

/* ============ МОБИЛЬНЫЙ СПИСОК КАПСУЛ (ВМЕСТО ТАБЛИЦЫ) ============ */
.capsules-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.capsule-row {
    display: block;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.capsule-row:hover {
    border-color: var(--pink);
    background: rgba(255,26,140,0.05);
    transform: translateX(5px);
}

/* Верхняя строка: Тема + Статус */
.row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.row-subject {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

/* Нижняя строка: Дата + Стрелка */
.row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-family: 'Space Mono', monospace;
}

.row-arrow {
    font-size: 20px;
    color: var(--pink);
    font-weight: 900;
    transition: transform 0.2s;
}

.capsule-row:hover .row-arrow {
    transform: translateX(5px);
}

/* Скрываем старую таблицу на мобильных, если она вдруг осталась */
@media (max-width: 700px) {
    table, .table-responsive { display: none !important; }
    .capsules-list { display: flex !important; }
}

/* На ПК оставляем таблицу, скрываем новый список (или можно оставить оба) */
@media (min-width: 701px) {
    .capsules-list { display: none; }
    table, .table-responsive { display: block !important; }
}

/* ============ СТИЛИ ДЛЯ ФОРМЫ И ТЕГОВ ============ */
.tags-container {
    display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.tag-btn {
    background: transparent; border: 2px solid rgba(255,255,255,0.2);
    color: var(--white); padding: 8px 16px; font-size: 12px;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: all 0.2s; margin-top: 0;
}
.tag-btn:hover, .tag-btn.active {
    background: var(--pink); border-color: var(--pink); color: var(--black);
}

/* ============ АДАПТИВНЫЙ СПИСОК КАПСУЛ ============ */
.desktop-table { display: block; }
.mobile-list { display: none; }

@media (max-width: 700px) {
    .desktop-table { display: none !important; }
    .mobile-list { display: flex !important; flex-direction: column; gap: 15px; margin-top: 20px; }
}

.capsule-row {
    display: block; background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.1); padding: 15px 20px;
    text-decoration: none; color: var(--white); transition: all 0.2s;
}
.capsule-row:hover {
    border-color: var(--pink); background: rgba(255,26,140,0.05);
    transform: translateX(5px);
}
.row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.row-subject {
    font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px;
    letter-spacing: -0.5px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 70%;
}
.row-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.6); font-family: 'Space Mono', monospace;
}
.row-arrow { font-size: 20px; color: var(--pink); font-weight: 900; transition: transform 0.2s; }
.capsule-row:hover .row-arrow { transform: translateX(5px); }

/* Теги и удаление */
.tags-container { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tag-btn { background: transparent; border: 2px solid rgba(255,255,255,0.2); color: var(--white); padding: 8px 16px; font-size: 12px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; margin-top: 0; }
.tag-btn:hover, .tag-btn.active { background: var(--pink); border-color: var(--pink); color: var(--black); }

.row-tag { font-size: 12px; color: var(--teal); font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }

.capsule-row-wrapper { margin-bottom: 15px; }
.btn-delete { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); padding: 5px 10px; font-size: 11px; cursor: pointer; width: 100%; text-align: left; margin-top: 5px; transition: all 0.2s; }
.btn-delete:hover { color: #ff4444; border-color: #ff4444; background: rgba(255,68,68,0.05); }

.btn-delete-small { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 16px; transition: color 0.2s; }
.btn-delete-small:hover { color: #ff4444; }
/* ============ СТРАНИЦА "О НАС" ============ */
.about-page {
    max-width: 900px;
    padding: 120px 30px 60px;
}

.about-hero {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255,26,140,0.1) 0%, rgba(26,26,26,0.9) 100%);
}

.about-main-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.about-main-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--pink);
    margin: 20px auto 0;
}

.about-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    margin-top: 20px;
}

.about-text-card {
    padding: 40px;
}

.about-paragraph {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.85);
}

.about-paragraph:last-child {
    margin-bottom: 0;
}

.about-quote-card {
    padding: 60px 40px;
    text-align: center;
    position: relative;
    border-color: var(--pink);
}

.quote-mark {
    font-family: 'Unbounded', sans-serif;
    font-size: 120px;
    color: var(--pink);
    opacity: 0.3;
    line-height: 0.5;
    position: absolute;
    top: 40px;
    left: 30px;
}

.quote-mark.closing {
    left: auto;
    right: 30px;
    top: auto;
    bottom: 40px;
}

.about-quote {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.about-final-card {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(255,26,140,0.1) 100%);
}

.about-final-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--pink);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.btn-join {
    display: inline-block;
    padding: 18px 40px;
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--white);
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-join:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--white);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--black);
}

/* Адаптивность для мобильных */
@media (max-width: 700px) {
    .about-page {
        padding: 100px 20px 40px;
    }
    
    .about-main-title {
        font-size: 32px;
    }
    
    .about-subtitle {
        font-size: 16px;
    }
    
    .about-quote {
        font-size: 18px;
    }
    
    .quote-mark {
        font-size: 80px;
    }
    
    .about-final-text {
        font-size: 20px;
    }
    
    .about-hero, .about-text-card, .about-quote-card, .about-final-card {
        padding: 30px 25px;
    }
}
/* ============ FLIP-КАРТОЧКИ ДЛЯ СТРАНИЦЫ "О НАС" ============ */
.flip-card {
    perspective: 1000px;
    margin-bottom: 40px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.flip-hint {
    display: block;
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.about-message {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--pink);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* Фоны для обратных сторон */
.about-hero-back {
    background: linear-gradient(135deg, rgba(255,26,140,0.2) 0%, rgba(26,26,26,0.95) 100%);
    border: 3px solid var(--pink);
}

.about-text-back {
    background: linear-gradient(135deg, rgba(26,107,107,0.2) 0%, rgba(26,26,26,0.95) 100%);
    border: 3px solid var(--teal);
}

.about-quote-back {
    background: linear-gradient(135deg, rgba(255,26,140,0.3) 0%, rgba(26,26,26,0.95) 100%);
    border: 3px solid var(--pink);
}

.about-final-back {
    background: linear-gradient(135deg, rgba(255,26,140,0.2) 0%, rgba(26,26,26,0.95) 100%);
    border: 3px solid var(--pink);
}

/* Адаптивность для мобильных */
@media (max-width: 700px) {
    .about-message {
        font-size: 20px;
    }
    
    .flip-card-back {
        padding: 40px 25px;
    }
}
/* ============ УЛУЧШЕННЫЙ ТАЙМЕР НА СТРАНИЦЕ КАПСУЛЫ ============ */
.timer-wrap {
    position: relative;
    margin: 40px 0 60px; /* Увеличили отступы */
}

.timer {
    width: 260px;
    height: 260px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 20px rgba(26,107,107,0.3)); /* Голубое свечение */
}

.timer-bg {
    fill: none;
    stroke: rgba(26,107,107,0.2); /* Голубой фон круга */
    stroke-width: 8;
}

.timer-fg {
    fill: none;
    stroke: var(--teal); /* Голубой цвет прогресса */
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

/* Размытие и прозрачность для круга */
.timer-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: rgba(26,107,107,0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.timer-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 32px;
    margin-top: -150px;
    position: relative;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Кнопка "Вскрыть сейчас" */
.btn-open {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
    font-size: 16px;
    padding: 18px 40px;
    width: auto;
    margin: 40px 0 20px; /* Отодвинули от круга */
    display: inline-block;
}

.btn-open:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Кнопка "На главную" */
.btn-back-home {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-back-home:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: rgba(255,26,140,0.05);
}
/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
.breadcrumbs {
    padding: 20px 0 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs a {
    color: var(--pink);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.3);
}

.breadcrumb-current {
    color: var(--white);
    font-weight: 400;
}
/* ============ ФИКС КНОПОК ДАТ И ПОЛЯ ВВОДА (МОБИЛЬНАЯ ВЕРСИЯ) ============ */

@media (max-width: 700px) {
    /* Кнопки +3, +6, +9 месяцев — на всю ширину */
    .quick-dates {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 10px 0 20px !important;
    }
    
    .quick-dates button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        flex: none !important;
        padding: 15px 10px !important;
        font-size: 14px !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }
    
    /* Поле выбора даты — не вылезает за контейнер */
    input[type="datetime-local"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 16px !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        margin-bottom: 20px !important;
        background: rgba(255,255,255,0.05) !important;
        border: 2px solid var(--white) !important;
        color: var(--white) !important;
        font-family: 'Space Mono', monospace !important;
    }
}