* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(145deg, #f9f0ff, #f3e5ff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.container {
    max-width: 850px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 48px;
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(120, 50, 180, 0.15);
    border: 1px solid rgba(200, 160, 255, 0.2);
}

h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.subtitle {
    text-align: center;
    color: #6d5a7a;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(200, 160, 255, 0.2);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a2d5c;
    margin-bottom: 0.8rem;
}

.service-item {
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    border: 1px solid #eee;
    font-size: 0.95rem;
}

.service-price {
    color: #7c3aed;
    font-weight: 700;
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.contacts span {
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 60px;
    border: 1px solid #e8dff0;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #4a2d5c;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 60px;
    border: 1.5px solid #e8dff0;
    font-size: 1rem;
    outline: none;
    background: white;
    transition: 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.form-group input[type="date"] {
    min-height: 50px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 50, 180, 0.3);
}

.admin-link {
    text-align: center;
    margin-top: 0.5rem;
}

.admin-link a {
    color: #a855f7;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
}

.admin-link a:hover {
    opacity: 1;
}

.admin-panel {
    display: none;
    background: rgba(245, 235, 255, 0.5);
    border-radius: 28px;
    padding: 1.2rem;
    margin-top: 1rem;
    border: 1px dashed #c084fc;
}

.admin-panel.active {
    display: block;
}

.admin-login {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-login input {
    flex: 1;
    min-width: 150px;
    padding: 0.6rem 1rem;
    border-radius: 60px;
    border: 1.5px solid #e8dff0;
    outline: none;
    font-size: 1rem;
}

.admin-login button {
    background: #a855f7;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
}

.admin-login button:hover {
    background: #7c3aed;
}

.booking-item {
    background: white;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #a855f7;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.booking-item .info {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.booking-item .info strong {
    color: #4a2d5c;
}

.booking-item .btn-free {
    background: none;
    border: 1px solid #ddd;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    cursor: pointer;
    color: #7c3aed;
    font-weight: 500;
}

.booking-item .btn-free:hover {
    background: #f3e8ff;
    border-color: #a855f7;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1b2b;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 60px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 999;
    font-weight: 500;
    text-align: center;
    font-size: 0.95rem;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
}

.empty {
    color: #6d5a7a;
    text-align: center;
    padding: 1.5rem 0;
}

.btn-small {
    background: none;
    border: 1px solid #a855f7;
    color: #a855f7;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-small:hover {
    background: #f3e8ff;
}

.btn-small.active {
    background: #a855f7;
    color: white;
}

.tab-buttons {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.status-badge {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 0.1rem 0.8rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-form {
    background: white;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid #e8dff0;
}

.service-edit-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.service-edit-row input {
    padding: 0.6rem 1rem;
    border: 1px solid #e8dff0;
    border-radius: 12px;
    font-size: 0.9rem;
}

.service-edit-row button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
}

.service-edit-row button:hover {
    background: #ff5252;
}

textarea {
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
        border-radius: 32px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .admin-login {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-item {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 1rem;
    }
}