@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    --bg: #0a0f1e;
    --bg-card: #111827;
    --bg-hover: #1a2234;
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-glow: rgba(245,158,11,0.12);
    --green: #10b981;
    --red: #ef4444;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255,255,255,0.07);
    --radius: 12px;
    --shadow: 0 4px 32px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* NAV */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,15,30,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    font-weight: 700; font-size: 1.05rem;
    color: var(--primary); text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 16px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.88rem; text-decoration: none;
    background: rgba(255,255,255,0.07); color: var(--text);
    border: 1px solid var(--border); cursor: pointer;
    font-family: inherit; transition: all 0.2s; white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,0.12); }
.btn-danger { background: #ef4444 !important; color: #fff !important; border-color: #ef4444 !important; }
.btn-danger:hover { background: #dc2626 !important; }

/* HERO */
.hero {
    text-align: center;
    padding: 110px 24px 90px;
    background: radial-gradient(ellipse at top, #162032 0%, var(--bg) 65%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.hero-tag {
    display: inline-block;
    background: var(--primary-glow);
    border: 1px solid rgba(245,158,11,0.35);
    color: var(--primary);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 99px; margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #f59e0b 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
    max-width: 580px; margin: 0 auto 36px;
    color: var(--text-muted); font-size: 1.08rem;
}
.hero-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* AVAILABILITY BIG BLOCK */
.avail-section { padding: 0 24px 48px; }
.avail-big-block {
    max-width: 860px; margin: 0 auto;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 16px; padding: 32px 40px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.avail-big-dot {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    background: #10b981;
    box-shadow: 0 0 0 6px rgba(16,185,129,0.2);
    animation: pulse 2s ease-in-out infinite;
}
.avail-big-title {
    font-size: 1.3rem; font-weight: 800; color: #6ee7b7; letter-spacing: -0.01em;
}
.avail-big-sub {
    font-size: 1rem; color: var(--text-muted); margin-top: 4px;
}
.avail-cta { margin-left: auto; white-space: nowrap; }
.avail-phone {
    margin-left: auto; white-space: nowrap;
    font-size: 1.6rem; font-weight: 800; color: #6ee7b7;
    text-decoration: none; letter-spacing: -0.01em;
}
.avail-phone:hover { color: #fff; }

@media (max-width: 640px) {
    .avail-big-block { padding: 24px 22px; }
    .avail-cta { margin-left: 0; width: 100%; justify-content: center; }
}

/* HERO STATES */
.hero-online { background: radial-gradient(ellipse at top, #0d2b1f 0%, var(--bg) 65%); }
.hero-offline { background: radial-gradient(ellipse at top, #1a1a2e 0%, var(--bg) 65%); }

.avail-pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4);
    color: #6ee7b7; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.1em; padding: 8px 20px; border-radius: 99px;
    margin-bottom: 28px;
}
.offline-pill {
    display: inline-block;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.08em; padding: 7px 18px; border-radius: 99px;
    margin-bottom: 28px;
}
.btn-big {
    padding: 16px 40px !important; font-size: 1.1rem !important;
    letter-spacing: 0.02em;
}

/* HERO AVAILABILITY */
.hero-avail-big {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.35);
    color: #6ee7b7; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.08em; padding: 8px 18px; border-radius: 99px;
    margin-bottom: 28px;
}
.hero-avail-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #10b981; flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
    animation: pulse 2s ease-in-out infinite;
}
.hero-phone {
    font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800;
    color: var(--primary); letter-spacing: -0.02em; margin-bottom: 20px;
}
.unique-block {
    text-align: center; padding: 28px 40px;
}
.unique-line {
    font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.unique-sub {
    font-size: 0.9rem; color: var(--text-dim);
}

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    transition: all 0.2s; cursor: pointer; border: none; font-family: inherit;
    background: var(--primary); color: #000;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.3);
}
.btn.secondary {
    background: rgba(255,255,255,0.07);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn.secondary:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    box-shadow: none;
}

/* SECTIONS */
section { padding: 64px 24px; }

.block {
    max-width: 860px; margin: 0 auto;
    background: var(--bg-card); padding: 40px 48px;
    border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.block h2 {
    font-size: 1.65rem; font-weight: 700;
    margin-bottom: 18px; letter-spacing: -0.02em;
}
.block p { color: var(--text-muted); margin-bottom: 13px; font-size: 1rem; }

/* SERVICE LIST */
.service-list {
    list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 12px;
}
.service-list li {
    font-size: 1.05rem; color: var(--text); padding: 12px 16px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* STEPS */
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.step { display: flex; align-items: flex-start; gap: 16px; }
.step-num {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-glow); border: 1px solid rgba(245,158,11,0.35);
    color: var(--primary); font-weight: 700; font-size: 0.88rem;
    display: flex; align-items: center; justify-content: center;
}
.step-text { color: var(--text-muted); padding-top: 6px; font-size: 1rem; }

/* FORM */
textarea, input[type="text"], input[type="email"] {
    width: 100%; padding: 13px 16px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: var(--text); font-size: 1rem; font-family: inherit;
    resize: vertical; transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0; display: block;
}
textarea:focus, input:focus {
    outline: none;
    border-color: rgba(245,158,11,0.55);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
textarea::placeholder { color: var(--text-dim); }
textarea { margin-top: 16px; margin-bottom: 14px; }

button[type="submit"] {
    padding: 13px 28px; border: none; border-radius: var(--radius);
    background: var(--primary); color: #000; font-weight: 700;
    font-size: 1rem; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.3);
}

/* MESSAGES */
#messages-container {
    margin-bottom: 24px;
    display: flex; flex-direction: column; gap: 10px;
}
.message {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 14px 16px; border-radius: var(--radius);
}
.timestamp { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 5px; }
.message-text { color: var(--text-muted); font-size: 0.95rem; }
.message.message-admin {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.25);
}
.message.message-admin .message-text { color: #fde68a; }

/* BADGE */
.badge {
    background: var(--red); color: white; border-radius: 99px;
    padding: 2px 10px; font-size: 0.75rem; font-weight: 600;
    margin-left: 6px; display: none;
}

/* CALENDAR */
.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px; margin-top: 12px;
}
.day {
    padding: 18px 12px; border-radius: var(--radius);
    text-align: center; font-size: 0.9rem; font-weight: 600;
    border: 1px solid transparent; line-height: 1.4;
}
.day.free {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.3); color: #6ee7b7;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}
.day.free:hover {
    background: rgba(16,185,129,0.18);
    border-color: rgba(16,185,129,0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.15);
}
.day.booked {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.2); color: #fca5a5; opacity: 0.7;
}
.day-date { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.day-time { font-size: 0.82rem; opacity: 0.8; margin-bottom: 6px; }
.day-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }

.booking-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.35);
    color: #6ee7b7;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* CHAT LIST */
.user-list {
    list-style: none; display: flex; flex-direction: column;
    gap: 8px; max-width: 860px; margin: 0 auto; padding: 0 24px;
}
.user-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px; transition: all 0.2s;
}
.user-item:hover {
    border-color: rgba(245,158,11,0.35);
    background: var(--bg-hover); transform: translateX(3px);
}
.user-item.unread {
    border-color: rgba(245,158,11,0.45);
    background: rgba(245,158,11,0.05);
}
.user-item a {
    color: var(--text); text-decoration: none; font-weight: 600;
    font-family: 'Courier New', monospace; font-size: 1rem; flex: 1;
}
.user-item.unread a { color: var(--primary); }
.last-message { font-size: 0.82rem; color: var(--text-dim); }

/* CHAT BOX */
.chat-box {
    background: rgba(0,0,0,0.2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px;
    max-height: 500px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px;
}
.chat-message {
    max-width: 78%; padding: 12px 16px;
    border-radius: 14px; font-size: 0.95rem; line-height: 1.55;
}
.chat-message.user {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    align-self: flex-start; border-bottom-left-radius: 4px;
}
.chat-message.admin {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-date { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 5px; }
.chat-text { color: var(--text); }
.chat-message.admin .chat-text { color: #fde68a; }

hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

section > h2 {
    max-width: 860px; margin: 0 auto 20px; padding: 0 24px;
    font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
}

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; margin-top: 20px; transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

footer {
    text-align: center; padding: 32px 24px;
    color: var(--text-dim); font-size: 0.88rem;
    border-top: 1px solid var(--border);
}

/* AVAILABILITY */
.avail-on {
    background: rgba(16,185,129,0.15) !important;
    border: 1px solid rgba(16,185,129,0.4) !important;
    color: #6ee7b7 !important;
}
.avail-on:hover { background: rgba(16,185,129,0.25) !important; box-shadow: none !important; transform: none !important; }
.avail-off {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
}
.avail-off:hover { background: rgba(255,255,255,0.12) !important; box-shadow: none !important; transform: none !important; }

.avail-dot-big {
    width: 14px; height: 14px; border-radius: 50%;
    background: #10b981; flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.2); }
    50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0.05); }
}

@media (max-width: 640px) {
    .block { padding: 28px 22px; }
    .hero { padding: 80px 20px 64px; }
    nav { padding: 14px 20px; }
    .user-list { padding: 0 0; }
}
