* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    border-bottom: 1px solid #222;
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: #0f0f0f;
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #4ade80;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #4ade80;
}

.nav-user {
    color: #4ade80;
    font-size: 14px;
}

/* Герой */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.accent {
    color: #4ade80;
}

.subtitle {
    font-size: 18px;
    color: #888;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #4ade80;
    color: #0f0f0f;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #6ee7a0;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #4ade80;
    color: #4ade80;
}

.btn-outline:hover {
    background: rgba(74, 222, 128, 0.1);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Секции */
section {
    padding: 60px 0;
}

h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #fff;
}

/* Карточки услуг */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: #1a1a1a;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #222;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: #333;
}

.card h3 {
    font-size: 18px;
    color: #4ade80;
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
}

/* О компании */
.about {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.about p {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 16px;
}

/* CTA секция */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

.cta-section p {
    color: #888;
    margin-bottom: 28px;
    font-size: 16px;
}

/* Футер */
footer {
    border-top: 1px solid #222;
    padding: 40px 0;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: #666;
}

.slogan {
    color: #4ade80;
    font-size: 12px;
    margin-top: 8px;
}

/* Формы */
.form-page {
    padding: 60px 0;
}

.form-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
    max-width: 480px;
    margin: 0 auto;
}

.form-card h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4ade80;
}

.form-group select option {
    background: #1a1a1a;
}

/* Поле пароля с глазиком (показ/скрытие) */
.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 48px;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.pw-toggle:hover {
    color: #0f766e;
}

.pw-toggle[aria-pressed="true"] {
    color: #0f766e;
}

.pw-toggle svg {
    width: 20px;
    height: 20px;
}

.form-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.form-footer a {
    color: #4ade80;
    text-decoration: none;
}

.error-message {
    background: rgba(255, 70, 70, 0.1);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff6666;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

/* Дашборд */
.dashboard {
    padding: 40px 0;
}

.dashboard h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome {
    color: #888;
    margin-bottom: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 700px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dash-card {
    background: #1a1a1a;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #222;
}

.dash-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Форма слота */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.slot-form {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #222;
}

/* Слоты */
.slots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 18px;
    background: #0f0f0f;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #222;
}

.slot-item.booked {
    opacity: 0.6;
}

.status {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.empty {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Список моих событий */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ev-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    margin-right: 6px;
    font-weight: 600;
}
.top-events {
    margin-bottom: 20px;
    border-left: 3px solid var(--accent,#4ade80);
}
.event-row { align-items: flex-start; }
.event-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.event-actions .btn { font-size: 12px; }
.ev-desc {
    font-size: 13px;
    color: #aaa;
    margin-top: 4px;
}
.event-edit { flex-direction: column; align-items: stretch; gap: 10px; }
.ev-edit-fields { display: flex; flex-direction: column; flex: 1; }
.ev-edit-fields .row2 { display: flex; gap: 8px; margin-bottom: 6px; }
.ev-edit-fields .row2 input { flex: 1; }
.inp {
    width: 100%;
    padding: 8px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
}
.inp:focus { border-color: #4ade80; outline: none; }

/* Цена и расчёт 67/33 */
.price-split {
    font-size: 13px;
    color: #9fe8b3;
    margin-top: 8px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
}
.price-split b { color: #4ade80; }
.slot-price {
    font-size: 14px;
    color: #4ade80;
    font-weight: 600;
    white-space: nowrap;
}
.slot-price small {
    color: #aaa;
    font-weight: 400;
    font-size: 12px;
}

/* Таблица бронирований */
.bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bookings-table th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #333;
    color: #888;
    font-weight: 500;
}

.bookings-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #222;
}

.bookings-table tr:nth-child(even) td {
    background: #151515;
}

/* Адаптивность */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 26px;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
    }
    .nav-links {
        gap: 12px;
    }
    .form-card {
        padding: 24px;
    }
}

/* ─── Мини-карта события + пин ─── */
.mini-map {
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #333;
    background: #e8e1d2;
    z-index: 1;
}
.place-search {
    margin-top: 6px;
}
.hint {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    line-height: 1.5;
}
.ref-count { font-weight: 700; font-size: 15px; color: #2e7d6b; margin: 8px 0; }
.ref-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ref-row input {
    flex: 1; min-width: 180px; padding: 9px 12px; font-size: 13px;
    border: 1px solid #ddd; border-radius: 8px; background: #f7f9f8; color: #333;
}
.badge-line { margin-top: 10px; font-weight: 600; color: #b8860b; }
[data-theme="dark"] .ref-count { color: #2DD4BF; }
[data-theme="dark"] .ref-row input { background: #1d1813; border-color: #333; color: #e8e8e8; }