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

:root {
    --dark: #09090b;
    --dark2: #111827;
    --blue: #2563eb;
    --blue2: #1d4ed8;
    --green: #16a34a;
    --red: #dc2626;
    --gold: #f59e0b;
    --gray: #6b7280;
    --light: #f8fafc;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

body {
    min-height: 100vh;
    color: #111827;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), transparent 32%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 28%),
        radial-gradient(circle at bottom left, rgba(22, 163, 74, 0.20), transparent 30%),
        linear-gradient(135deg, #070b18, #111827 45%, #0f172a);
    padding-bottom: 30px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: 28px auto;
    position: relative;
    z-index: 2;
}

.hero {
    text-align: center;
    padding: 42px 20px;
    border-radius: 30px;
    color: white;
    margin-bottom: 24px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(37, 99, 235, 0.75)),
        url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1400&q=80");
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.16);
}

.hero::before {
    content: "✂";
    position: absolute;
    left: 25px;
    top: 15px;
    font-size: 90px;
    opacity: 0.12;
    transform: rotate(-20deg);
}

.hero::after {
    content: "💈";
    position: absolute;
    right: 30px;
    bottom: 10px;
    font-size: 85px;
    opacity: 0.16;
}

.hero-badge {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    margin-bottom: 14px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 58px;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 8px 30px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.subtitle {
    margin-top: 10px;
    color: #e0ecff;
    font-size: 17px;
    position: relative;
    z-index: 1;
}

.top-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.55);
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card h2 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 28px;
}

.card h3 {
    margin: 14px 0 10px;
    color: #111827;
}

.card p {
    line-height: 1.6;
    margin: 8px 0;
    color: #4b5563;
}

input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #d1d5db;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,0.95);
    transition: 0.2s;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 9px;
    transition: 0.22s;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

button:active {
    transform: scale(0.98);
}

.admin-btn {
    width: 230px;
    background: linear-gradient(135deg, #020617, #374151);
}

.usto-btn {
    width: 230px;
    background: linear-gradient(135deg, #16a34a, #047857);
}

.main-btn {
    background: linear-gradient(135deg, #16a34a, #047857);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.24);
}

.back-btn {
    background: linear-gradient(135deg, #6b7280, #374151);
    box-shadow: 0 10px 22px rgba(107, 114, 128, 0.20);
}

.cancel-btn {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
}

.link-btn {
    background: rgba(255,255,255,0.8);
    color: var(--blue);
    border: 1px solid #93c5fd;
    box-shadow: none;
}

.link-btn:hover {
    background: #eff6ff;
}

.chat-open-btn {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.24);
}

.hidden {
    display: none;
}

.sms-demo {
    margin: 14px 0;
    padding: 15px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-radius: 15px;
    font-size: 16px;
    border-left: 6px solid var(--gold);
}

.phone-box {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
    background: white;
}

.phone-box span {
    padding: 15px;
    background: linear-gradient(135deg, #e5e7eb, #f8fafc);
    font-weight: bold;
    white-space: nowrap;
}

.phone-box input {
    border: none;
    margin: 0;
    box-shadow: none;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.service-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.95));
    border: 1px solid rgba(209, 213, 219, 0.9);
    border-radius: 22px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.10);
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--blue);
    box-shadow: 0 22px 35px rgba(37, 99, 235, 0.18);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.service-card h3 {
    font-size: 24px;
    color: var(--blue2);
    margin-bottom: 10px;
}

.service-card p {
    color: #4b5563;
}

.selected-box {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border-left: 6px solid var(--blue);
    padding: 17px;
    border-radius: 16px;
    margin: 15px 0;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}

.times {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
}

.times button {
    width: 145px;
    background: white;
    color: var(--blue2);
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.10);
}

.times button.active {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: white;
}

.times button.busy {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    border: none;
    box-shadow: none;
}

.result {
    background: linear-gradient(135deg, #dcfce7, #ffffff);
    border-left: 7px solid var(--green);
    padding: 22px;
    border-radius: 18px;
    margin-top: 16px;
    box-shadow: var(--shadow);
    animation: fadeUp 0.35s ease;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 16px 0;
}

.stat {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #dbeafe;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.08);
}

.stat h3 {
    color: var(--blue2);
    font-size: 34px;
}

.edit-service {
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: #111827;
}

.table-box {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    background: white;
}

th {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: white;
    padding: 14px;
    white-space: nowrap;
    text-align: left;
}

td {
    padding: 13px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

tr:hover td {
    background: #f8fafc;
}

.order-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-left: 6px solid var(--blue);
    padding: 16px;
    border-radius: 16px;
    margin: 12px 0;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.order-card.cancelled {
    background: linear-gradient(135deg, #fee2e2, #ffffff);
    border-left-color: var(--red);
}

.status-active {
    color: #15803d;
    font-weight: bold;
}

.status-cancel {
    color: #b91c1c;
    font-weight: bold;
}

.status-paid {
    color: #16a34a;
    font-weight: bold;
}

.status-wait {
    color: #f59e0b;
    font-weight: bold;
}

hr {
    margin: 28px 0;
    border: none;
    border-top: 1px solid rgba(209, 213, 219, 0.9);
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.admin-form button {
    margin-top: 0;
}

.master-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.master-item {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.master-item h4 {
    color: var(--blue2);
    margin-bottom: 8px;
    font-size: 20px;
}

.master-actions {
    display: flex;
    gap: 8px;
}

.master-actions button {
    width: 50%;
}

.notice-box {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    border-radius: 18px;
    padding: 16px;
}

.notice-item {
    background: white;
    border-left: 6px solid var(--gold);
    padding: 13px;
    border-radius: 14px;
    margin: 10px 0;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.08);
}

.payment-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,246,255,0.90));
}

.payment-methods {
    display: flex;
    gap: 12px;
}

.payment-methods button {
    width: 50%;
    background: white;
    color: var(--blue2);
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.payment-methods button.active-pay {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: white;
}

.payment-info {
    margin: 16px 0;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

.payment-number {
    font-size: 24px;
    color: #111827;
    font-weight: bold;
    background: white;
    padding: 14px;
    border-radius: 14px;
    margin-top: 8px;
    border: 2px dashed var(--blue);
    text-align: center;
    letter-spacing: 1px;
}

.check-img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.check-big {
    width: 210px;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.empty-text {
    color: #6b7280;
    font-style: italic;
}

.chat-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 15px;
}

.chat-users {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 12px;
    min-height: 300px;
}

.chat-user {
    background: white;
    padding: 13px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: 0.2s;
}

.chat-user:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.chat-user.active-chat {
    background: #eff6ff;
    border-color: var(--blue);
}

.chat-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.chat-header {
    background: linear-gradient(135deg, #020617, #1d4ed8);
    color: white;
    padding: 15px;
    font-weight: bold;
    border-radius: 18px 18px 0 0;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.10), transparent 30%),
        #f8fafc;
}

.message {
    max-width: 75%;
    padding: 11px 13px;
    border-radius: 16px;
    margin-bottom: 10px;
    font-size: 15px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.message small {
    display: block;
    opacity: 0.7;
    margin-top: 5px;
    font-size: 12px;
}

.message.client {
    background: #dbeafe;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message.usto {
    background: #dcfce7;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-send {
    display: flex;
    gap: 8px;
    padding: 13px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-send input {
    margin: 0;
}

.chat-send button {
    width: 150px;
    margin: 0;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    border-radius: 999px;
}

@media (max-width: 900px) {
    .container {
        width: 94%;
        margin: 22px auto;
    }

    h1 {
        font-size: 44px;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .master-list {
        grid-template-columns: 1fr;
    }

    .chat-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        width: 95%;
        margin: 14px auto;
    }

    .hero {
        padding: 32px 15px;
        border-radius: 24px;
    }

    h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 14px;
    }

    .top-buttons {
        flex-direction: column;
        gap: 0;
    }

    .admin-btn,
    .usto-btn {
        width: 100%;
    }

    .card {
        padding: 17px;
        border-radius: 20px;
    }

    .card h2 {
        font-size: 23px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 15px;
    }

    input,
    button {
        font-size: 15px;
        padding: 13px;
    }

    .payment-methods {
        flex-direction: column;
    }

    .payment-methods button {
        width: 100%;
    }

    .times button {
        width: 100%;
    }

    table {
        min-width: 1000px;
    }

    th,
    td {
        padding: 10px;
        font-size: 14px;
    }

    .chat-send {
        flex-direction: column;
    }

    .chat-send button {
        width: 100%;
    }

    .chat-messages {
        height: 330px;
    }

    .message {
        max-width: 88%;
    }
}