:root {
    --blue: #075bea;
    --blue-dark: #0147c7;
    --ink: #071637;
    --muted: #5f6f90;
    --line: #e6ecf5;
    --soft: #f8fbff;
    --card: #ffffff;
    --shadow: 0 14px 36px rgba(7, 22, 55, 0.08);
    --shadow-strong: 0 26px 70px rgba(7, 22, 55, 0.16);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(7, 22, 55, 0.04);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(100%, 1240px);
    min-height: 88px;
    margin: 0 auto;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 230px;
    height: auto;
}

.admin-trigger {
    min-width: 132px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid rgba(7, 91, 234, 0.2);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
        var(--blue);
    box-shadow: 0 14px 30px rgba(7, 91, 234, 0.22);
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-trigger:hover {
    transform: translateY(-1px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
        var(--blue-dark);
    box-shadow: 0 18px 38px rgba(7, 91, 234, 0.28);
}

.btn {
    min-height: 52px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(180deg, #1169ff, var(--blue));
    box-shadow: 0 14px 26px rgba(7, 91, 234, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #075bea, var(--blue-dark));
}

.btn-secondary {
    color: var(--ink);
    background: #ffffff;
    border-color: rgba(7, 91, 234, 0.55);
}

.full {
    width: 100%;
}

.hero {
    min-height: 490px;
    display: grid;
    place-items: center;
    padding: 54px 18px 64px;
    text-align: center;
    background: radial-gradient(circle at 50% 2%, #f4f8ff 0%, #ffffff 58%);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    width: min(920px, 100%);
    display: grid;
    justify-items: center;
    gap: 18px;
}

.hero-logo {
    width: min(360px, 82vw);
    height: auto;
    margin-bottom: 8px;
}

.hero h1,
.section-title h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 5.6vw, 64px);
    line-height: 1.05;
}

.hero p,
.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.section {
    padding: 34px 56px 54px;
}

.section-title {
    margin-bottom: 26px;
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(30px, 3.3vw, 36px);
    line-height: 1.12;
}

.section-title::after {
    content: "";
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--blue);
}

.barber-grid {
    width: min(100%, 1160px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.barber-card {
    padding: 15px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.barber-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.barber-photo {
    overflow: hidden;
    aspect-ratio: 1.04 / 1;
    border-radius: 8px;
    background: #f3f6fb;
}

.barber-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.barber-card-body {
    display: grid;
    gap: 6px;
}

.barber-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
}

.barber-card p {
    margin: 0;
    color: var(--blue);
    font-size: 14px;
}

.rating {
    color: #405072;
    font-size: 13px;
}

.rating::first-letter {
    color: var(--blue);
}

.appointments {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.public-board,
.contact-grid {
    width: min(100%, 1160px);
    margin: 0 auto;
}

.public-board {
    display: grid;
    gap: 22px;
}

.appointment-item,
.contact-grid > div,
.blocked-item {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(7, 22, 55, 0.05);
}

.schedule-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.schedule-title {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.schedule-title img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--blue);
    border-radius: 50%;
}

.schedule-title div {
    flex: 1;
}

.schedule-title h3 {
    margin: 0 0 3px;
    font-size: 24px;
    line-height: 1.1;
}

.schedule-title span {
    color: var(--muted);
    font-weight: 700;
}

.schedule-scroll {
    overflow-x: auto;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 82px repeat(7, minmax(112px, 1fr));
    min-width: 866px;
}

.schedule-cell {
    min-height: 44px;
    padding: 8px 10px;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
}

.schedule-corner,
.schedule-day,
.schedule-time {
    background: #f7fbff;
    color: var(--ink);
    font-weight: 800;
}

.schedule-day {
    gap: 2px;
}

.schedule-day span {
    color: var(--blue);
    font-weight: 800;
}

.schedule-slot {
    color: #1f7d4d;
    background: #f4fcf8;
    font-weight: 800;
}

.schedule-slot.booked {
    color: #9a4b19;
    background: #fff5ec;
}

.schedule-slot.blocked {
    color: #7b8494;
    background: #f1f3f7;
}

.appointment-item strong {
    display: block;
}

.appointment-item span,
.contact-grid span {
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-grid > div {
    align-items: flex-start;
    flex-direction: column;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(7, 13, 28, 0.5);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: min(100%, 920px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-strong);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: #ffffff;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.booking-card {
    display: grid;
    grid-template-columns: 310px 1fr;
}

.barber-profile {
    padding: 34px 28px;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 9px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.barber-profile img {
    width: 174px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid var(--blue);
    border-radius: 50%;
}

.barber-profile h3 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.05;
}

.barber-profile p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.barber-profile::after {
    content: "8+ vite përvojë\A Specialist në prerje moderne\A Kujdes maksimal për detaje\A Produkte premium";
    margin-top: 20px;
    width: 100%;
    white-space: pre-line;
    color: #3d4964;
    font-size: 13px;
    line-height: 2.1;
    text-align: left;
}

.booking-flow {
    padding: 28px 28px 24px;
}

.booking-flow h3,
.admin-card h3 {
    margin: 0 0 14px;
}

.date-row {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(7, minmax(64px, 1fr));
    gap: 10px;
}

.date-chip,
.slot-button {
    border: 1px solid #cfdaf0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--blue);
    cursor: pointer;
    font-weight: 700;
}

.date-chip {
    min-height: 58px;
    font-size: 13px;
}

.date-chip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.date-chip.active,
.slot-button.active {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 10px 20px rgba(7, 91, 234, 0.2);
}

.date-chip.active span {
    color: rgba(255, 255, 255, 0.78);
}

.slot-grid {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.slot-button {
    min-height: 46px;
}

.slot-button.busy {
    color: #788296;
    background: #f1f3f7;
    border-color: #d9e0ec;
    cursor: not-allowed;
}

.slot-button small {
    display: block;
    font-size: 11px;
    font-weight: 600;
}

.booking-form,
.admin-login,
.block-form {
    display: grid;
    gap: 12px;
}

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

.booking-form .full {
    grid-column: 1 / -1;
}

input,
select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #d7e0ef;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(7, 91, 234, 0.1);
}

.message {
    min-height: 22px;
    margin: 12px 0 0;
    color: var(--blue);
    font-weight: 700;
}

.message.error {
    color: #c92222;
}

.admin-card {
    width: min(100%, 1180px);
    padding: 0;
}

.admin-intro {
    padding: 30px 30px 22px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 0% 0%, #edf5ff, #ffffff 55%);
}

.admin-intro span {
    color: var(--blue);
    font-weight: 900;
    letter-spacing: 0;
}

.admin-intro h2 {
    margin: 4px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1.05;
}

.admin-intro p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.admin-login {
    grid-template-columns: 1fr auto;
    max-width: 420px;
    padding: 24px 30px 0;
}

.admin-card > .message {
    padding: 0 30px;
}

.admin-toolbar {
    margin: 18px 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.block-form {
    grid-template-columns: 180px 160px 130px auto;
}

.table-wrap {
    margin: 0 30px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

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

.small-btn {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.blocked-list {
    margin: 0 30px 30px;
    display: grid;
    gap: 10px;
}

.admin-card h3 {
    margin: 24px 30px 14px;
}

@media (max-width: 980px) {
    .header-inner {
        min-height: auto;
        padding: 14px 18px;
        align-items: center;
        flex-direction: row;
        gap: 12px;
    }

    .brand img {
        width: 210px;
    }

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

    .booking-card {
        grid-template-columns: 1fr;
    }

    .barber-profile {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .slot-grid,
    .date-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .admin-toolbar,
    .block-form {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .header-inner {
        padding: 12px 14px;
    }

    .brand img {
        width: 188px;
    }

    .admin-trigger {
        min-width: 108px;
        min-height: 42px;
        padding: 0 16px;
    }

    .hero {
        min-height: auto;
        padding: 42px 16px 56px;
    }

    .hero-logo {
        width: min(320px, 90vw);
    }

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

    .hero p {
        font-size: 16px;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 34px 14px 46px;
    }

    .barber-grid,
    .slot-grid,
    .date-row,
    .booking-form,
    .admin-login {
        grid-template-columns: 1fr;
    }

    .modal-backdrop {
        padding: 10px;
    }

    .modal-card {
        max-height: calc(100vh - 20px);
    }

    .booking-flow {
        padding: 26px 16px;
    }

    .admin-card {
        padding: 0;
    }

    .admin-intro,
    .admin-login,
    .admin-card > .message,
    .admin-toolbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .table-wrap,
    .blocked-list,
    .admin-card h3 {
        margin-left: 16px;
        margin-right: 16px;
    }
}
