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

:root {
    --blue: #2563eb;
    --blue2: #1d4ed8;
    --green: #16a34a;
    --red: #dc2626;
    --gold: #f59e0b;
    --dark: #0f172a;
    --gray: #6b7280;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.35), transparent 35%),
        radial-gradient(circle at top right, rgba(245,158,11,0.25), transparent 30%),
        linear-gradient(135deg, #020617, #111827);
    color: #111827;
    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;
    min-height: 260px;
    padding: 45px 20px;
    border-radius: 30px;
    color: white;
    margin-bottom: 24px;
    background:
        linear-gradient(135deg, rgba(2,6,23,0.88), rgba(37,99,235,0.66)),
        radial-gradient(circle at top right, rgba(245,158,11,0.45), transparent 32%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.18);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

.hero-badge {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 14px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.08);
}

.hero h1 {
    font-size: 68px;
    color: white;
    text-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.hero p {
    color: #dbeafe;
    font-size: 17px;
    margin-top: 8px;
}

/* NEW NAV */
.new-nav {
    position: sticky;
    top: 12px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    margin-bottom: 22px;
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.brand-mini span {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.35);
}

.brand-mini b {
    display: block;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.brand-mini small {
    display: block;
    color: #cbd5e1;
    margin-top: 3px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-nav button {
    margin: 0;
    width: auto;
    min-width: 115px;
    padding: 13px 18px;
    border-radius: 18px;
}

.new-nav .theme-btn {
    min-width: 55px;
    width: 55px;
    padding: 13px;
}

.cool-panel {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1fr;
}

.promo-card {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.96), rgba(37,99,235,0.78)),
        radial-gradient(circle at top right, rgba(245,158,11,0.45), transparent 35%);
    color: white;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.18);
    overflow: hidden;
    position: relative;
}

.promo-card::before {
    content: "💈";
    position: absolute;
    right: 130px;
    top: -20px;
    font-size: 100px;
    opacity: 0.12;
}

.promo-card span {
    display: inline-block;
    background: rgba(245,158,11,0.22);
    color: #fef3c7;
    border: 1px solid rgba(245,158,11,0.35);
    padding: 7px 13px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.promo-card h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 6px;
}

.promo-card p {
    color: #dbeafe;
}

.promo-price {
    min-width: 115px;
    height: 115px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(245,158,11,0.32);
}

.promo-price b {
    font-size: 34px;
}

.progress-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 12px;
    border-radius: 22px;
    backdrop-filter: blur(14px);
}

.progress-step {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    color: white;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.progress-step.active {
    background: linear-gradient(135deg, #16a34a, #047857);
}

.progress-step.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    animation: shineMove 2s infinite;
}

@keyframes shineMove {
    to {
        transform: translateX(100%);
    }
}

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

.dashboard-card {
    border-radius: 30px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,246,255,0.92));
}

.dashboard-card > h2 {
    font-size: 32px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #020617, #1d4ed8);
    color: white;
    margin-bottom: 18px;
}

@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;
}

.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 {
    background: linear-gradient(135deg, #020617, #374151);
}

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

.theme-btn {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.main-btn {
    background: linear-gradient(135deg, #16a34a, #047857);
}

.back-btn {
    background: linear-gradient(135deg, #6b7280, #374151);
}

.cancel-btn {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

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

.chat-open-btn {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.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: 26px;
    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-card button {
    border-radius: 18px;
}

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

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

.usto-badge {
    display: inline-block;
    margin: 8px 0;
    padding: 6px 11px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: bold;
}

.low-badge {
    background: #fee2e2;
    color: #b91c1c;
}

.best-badge {
    background: #fef3c7;
    color: #92400e;
}

.rating {
    color: #f59e0b;
    font-size: 20px;
    margin: 8px 0;
    font-weight: bold;
}

.rating-low {
    color: #dc2626;
}

.rating-big {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 14px;
    box-shadow: 0 12px 25px rgba(245,158,11,0.20);
}

.low-rating-section {
    margin-top: 26px;
    padding: 20px;
    border-top: 2px dashed #f87171;
    background: rgba(254,226,226,0.65);
    border: 1px solid #fecaca;
    border-radius: 24px;
}

.low-rating-section h3 {
    color: #b91c1c;
}

.warning-text {
    background: #fff7ed;
    border-left: 5px solid #f59e0b;
    padding: 12px;
    border-radius: 12px;
}

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

.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: 0 20px 55px rgba(0,0,0,0.18);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 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;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    width: 85px;
    height: 85px;
    right: -25px;
    top: -25px;
    background: rgba(37,99,235,0.10);
    border-radius: 50%;
}

.stat h3 {
    color: var(--blue2);
    font-size: 34px;
    position: relative;
    z-index: 1;
}

.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;
}

.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: 1120px;
    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;
    background: #f8fafc;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 25px rgba(15,23,42,0.08);
}

.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);
    position: relative;
    overflow: hidden;
}

.master-item::before {
    content: "💈";
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 42px;
    opacity: 0.12;
}

.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-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: 24px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #e5e7eb;
}

.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;
}

.check-big {
    width: 210px;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
}

.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: 24px;
    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: 24px;
    overflow: hidden;
}

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

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.13), transparent 35%),
        radial-gradient(circle at bottom right, rgba(22,163,74,0.12), transparent 35%),
        #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;
}

.toast {
    position: fixed;
    top: 18px;
    right: 18px;
    background: #111827;
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark-mode {
    background:
        radial-gradient(circle at top left, rgba(124,58,237,0.30), transparent 35%),
        radial-gradient(circle at bottom right, rgba(37,99,235,0.25), transparent 35%),
        linear-gradient(135deg, #020617, #0f172a) !important;
}

.dark-mode .new-nav {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255,255,255,0.12);
}

.dark-mode .card,
.dark-mode .service-card,
.dark-mode .master-item,
.dark-mode .order-card,
.dark-mode .payment-info,
.dark-mode .chat-box,
.dark-mode .chat-users,
.dark-mode .admin-form,
.dark-mode .dashboard-card {
    background: rgba(15,23,42,0.90) !important;
    color: white;
    border-color: rgba(255,255,255,0.12);
}

.dark-mode .card h2,
.dark-mode .card h3,
.dark-mode .service-card h3,
.dark-mode .master-item h4 {
    color: white;
}

.dark-mode .card p,
.dark-mode .service-card p,
.dark-mode .master-item p,
.dark-mode label {
    color: #cbd5e1;
}

.dark-mode input {
    background: rgba(2,6,23,0.75);
    color: white;
    border-color: rgba(255,255,255,0.14);
}

.dark-mode table,
.dark-mode td {
    background: #0f172a;
    color: white;
}

.dark-mode tr:hover td {
    background: #111827;
}

.dark-mode .low-rating-section {
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.35);
}

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

    .new-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-right {
        display: grid;
        grid-template-columns: 1fr 1fr 70px;
        gap: 10px;
    }

    .new-nav button {
        width: 100%;
        min-width: 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-form,
    .master-list,
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .progress-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .hero h1 {
        font-size: 38px;
    }

    .nav-right {
        grid-template-columns: 1fr;
    }

    .new-nav .theme-btn {
        width: 100%;
    }

    .brand-mini {
        justify-content: center;
        text-align: left;
    }

    .top-buttons,
    .payment-methods,
    .promo-card {
        flex-direction: column;
    }

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

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

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

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

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

    .progress-box {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 1120px;
    }

    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%;
    }
}