:root {
    --bg: #0d0b14;
    --text: #ffffff;
    --text-light: #a39ca8;
    --accent: #e58bba;
    --primary: #d44d8d;
    --primary-dark: #a12b62;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow: rgba(229, 139, 186, 0.25);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    header,
    .mobile-nav {
        max-width: 100vw;
        overflow-x: hidden;
    }

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top right, #1e182d, var(--bg));
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

#canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

}

header {
    position: fixed;
    max-height: 100px;
    overflow: visible;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(26px);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.4s;
    box-sizing: border-box;
    width: 100%;
}

header.shrink {
    padding: 1rem 5%;
}

.logo {
    img {
        max-width: 250px;
        margin-top: 10px;
    }
}

nav a {
    color: var(--text);
    margin-left: 2.5rem;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--accent);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--accent);
    transition: 0.4s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 15px;
    /* fiksēti px, ne % */
    right: 15px;
    width: auto;
    max-width: calc(100vw - 30px);
    /* drošības tīkls */
    background: rgba(10, 8, 18, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    /* slepts sakums */
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    visibility: hidden;
}

.mobile-nav.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 2rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: rgba(255, 255, 255, 0.07);
    color: var(--primary);
}

@media (min-width: 769px) {

    .mobile-nav,
    .burger {
        display: none !important;
    }
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: end;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.65);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero video.loaded {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(10, 10, 30, 0.8));
    z-index: -1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), #ff00cc);
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.4s;
}

.hero h1.visible {
    opacity: 1;
    transform: translateY(0);
}

/* GALVENĀS KARTĪTES */
.cards {
    padding: 8rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.tilt-card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    height: 420px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(60px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tilt-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tilt-card::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: radial-gradient(circle at var(--mx) var(--my), var(--glow) 0%, transparent 60%);
    opacity: 0.3;
    transition: opacity 0.4s;
}

.tilt-card:hover::before {
    opacity: 0.75;
}

.tilt-card-inner {
    height: 100%;
    transition: transform 0.1s linear;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tilt-card-inner img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

/* SHOWCASE KARTĪTES ar jaunu animāciju */
#showcase {
    padding: 6rem 5%;
}

.showcase-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.showcase-card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    height: 380px;
    opacity: 0;
    transform: scale(0.85) translateY(100px);
    transition: all 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.showcase-card.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.container {
    display: flex;
    justify-self: center;
    flex-wrap: wrap;
    width: 90vw;
    height: 600px;
    gap: 15px;
    margin: 20px;
    padding: 10px;
}

.option {
    position: relative;
    flex: 0.5;
    /* Sākumā kartītes ir šauras */
    overflow: hidden;
    cursor: pointer;
    border-radius: 20px;
    background-size: cover;
    background-position: center;

    transition: flex 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95),
        filter 0.3s ease;

    filter: grayscale(80%);
}

.option.active {
    flex: 5;
    filter: grayscale(0%);
    background-size: cover;
}

.option .label {
    background-color: #2525257a;
    border-radius: 15px;
    position: absolute;
    bottom: 20px;
    padding: 5px;
    left: 20px;
    color: white;
    /* white-space: nowrap; */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option.active .label {
    opacity: 1;

}

.subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

.booking-container {
    padding: 6rem 5%;
    max-width: 600px;
    margin: 0 auto;
}

/* Card */
.booking-card {
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 600;
}

/* Month nav */
.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.month-nav button {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--glass);
    color: var(--text);
    font-size: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    cursor: pointer;
}

@media (hover: hover) {
    .month-nav button:hover {
        background: var(--primary);
        color: white;
        transform: scale(1.1);
    }
}

/* Kalendārs */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 4px;
}

.day-name {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 0;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

@media (hover: hover) {
    .day:hover:not(.past):not(.empty):not(.fully-booked) {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.08);
    }
}

.day.selected {
    background: var(--primary) !important;
    color: white;
    border-color: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary);
}

.day.today {
    background: rgba(56, 189, 248, 0.15);
    border: 2px solid #38bdf8;
    font-weight: 700;
}

.day.past {
    color: #444;
    cursor: not-allowed;
    background: transparent;
}

.day.fully-booked {
    color: #6b3a3a;
    background: rgba(255, 60, 60, 0.06);
    cursor: not-allowed;
    position: relative;
}

.day.fully-booked::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: #6b3a3a;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.day.empty {
    visibility: hidden;
}

/* Laika sadaļa */
.time-section {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.selected-date-banner {
    background: rgba(229, 139, 186, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.slot {
    padding: 18px 14px;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

@media (hover: hover) {
    .slot:hover:not(.occupied) {
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(212, 77, 141, 0.25);
    }
}

.slot.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.slot.occupied {
    background: rgba(0, 0, 0, 0.3);
    color: #555;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: transparent;
}

/* Forma */
.booking-form {
    padding-top: 8px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

input,
select {
    width: 100%;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: all 0.3s;
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a39ca8' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

select option {
    background: #1a1625;
    color: var(--text);
    padding: 12px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(212, 77, 141, 0.3);
}

.confirm-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-family: var(--font-heading);
    border: none;
    border-radius: 18px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(212, 77, 141, 0.3);
    text-decoration: none;
    text-align: center;
    display: block;
}

.confirm-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(212, 77, 141, 0.5);
}

.confirm-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #555;
    box-shadow: none;
    cursor: not-allowed;
}

/* Admin poga */
.admin-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.admin-btn:hover {
    border-color: var(--primary);
    color: var(--accent);
    background: rgba(212, 77, 141, 0.08);
}

/* Admin modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(165deg, #15112a, #110e1a);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 92%;
    max-width: 520px;
    border-radius: 28px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(229, 139, 186, 0.06);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    color: transparent;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s, transform 0.2s;
}

.close-btn:hover {
    color: var(--accent);
    transform: scale(1.15);
}

/* Admin login form */
.admin-login-form {
    padding: 30px 28px 36px;
}

.admin-login-inner {
    text-align: center;
}

.admin-lock-icon {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.8;
}

.admin-login-inner p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.admin-login-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 14px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
}


/* Admin panel & list */
#adminPanel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.admin-list {
    padding: 16px 20px 12px;
    max-height: 50vh;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.admin-list::-webkit-scrollbar {
    width: 6px;
}

.admin-list::-webkit-scrollbar-track {
    background: transparent;
}

.admin-list::-webkit-scrollbar-thumb {
    background: rgba(229, 139, 186, 0.2);
    border-radius: 3px;
}

.admin-booking {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.admin-booking:hover {
    border-color: rgba(229, 139, 186, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.admin-booking.editing {
    display: block;
    border-color: var(--primary);
    background: rgba(212, 77, 141, 0.04);
}

.admin-booking-info {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.admin-booking-info strong {
    color: var(--accent);
    font-size: 0.95rem;
}

.admin-service-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    background: rgba(229, 139, 186, 0.1);
    border: 1px solid rgba(229, 139, 186, 0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--accent);
}

.admin-service-badge i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.admin-booking-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.edit-btn {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.edit-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.08);
}

.cancel-btn {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.25);
    color: #ff4757;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}

.cancel-btn:hover {
    background: rgba(255, 71, 87, 0.25);
    transform: scale(1.04);
}

/* Admin inline edit */
.admin-edit-form {
    width: 100%;
}

.admin-edit-row {
    margin-bottom: 12px;
}

.admin-edit-row label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.admin-edit-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a39ca8' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    transition: all 0.25s;
}

.admin-edit-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(212, 77, 141, 0.2);
}

.admin-edit-select option {
    background: #1a1625;
    color: var(--text);
}

.admin-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.save-edit-btn {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s;
}

.save-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.cancel-edit-btn {
    flex: 1;
    padding: 10px;
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #9ca3af;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s;
}

.cancel-edit-btn:hover {
    background: rgba(107, 114, 128, 0.3);
    color: var(--text);
}

.logout-btn {
    width: calc(100% - 40px);
    margin: 8px 20px 20px;
    padding: 14px;
    background: rgba(107, 114, 128, 0.15);
    border: 1px solid rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border-radius: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s;
}

.logout-btn:hover {
    background: rgba(107, 114, 128, 0.25);
    color: var(--text);
}

/* Modal formāta paziņojumiem (Toast) */
#toast {
    position: fixed;
    top: 50%;
    left: 50%;
    /* Centering and scaling logic */
    transform: translate(-50%, -50%) scale(0.9);
    padding: 24px 48px;
    border-radius: 20px;
    color: white;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    /* The large box-shadow creates the modal backdrop effect */
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6), 0 30px 80px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4000;
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.hidden {
    display: none !important;
}


/* FOOTER – pilnīgi cits dizains */
footer {
    padding: 6rem 5% 4rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer .wave {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.15;
    animation: waveflow 12s linear infinite;
}


.footeri_teksts {
    padding: 20px;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
}

footer img {
    height: 150px;
}

footer p {
    font-size: 1rem;
}

footer iframe {
    border-radius: 15px;
    max-width: 450px;
    max-height: 350px;
}

@keyframes waveflow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ==================================
   NEW EXTRACTED STYLES AND ANIMATIONS
   ================================== */

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    text-align: right;
    padding: 0 5%;
    max-width: 800px;
    margin-left: auto;
    margin-right: 5%;

    /* Reveal animation via keyframes on load */
    animation: fadeUpIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-btn {
    width: auto;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
}

#es-zinu {
    padding: 6rem 5%;
    background: rgba(0, 0, 0, 0.2);
}

.es-zinu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
}

.es-zinu-text-box {
    flex: 1;
    min-width: 320px;
    padding: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);

    opacity: 0;
    transform: translateX(-50px);
    animation: revealFromSide 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

.es-zinu-logo {
    max-width: 200px;
    margin-bottom: 1rem;
    display: block;
}

.es-zinu-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.es-zinu-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.es-zinu-img-box {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;

    opacity: 0;
    transform: translateX(50px);
    animation: revealFromSide 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

.es-zinu-img {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    border: 1px solid var(--glass-border);
    aspect-ratio: 4/3;
    transition: transform 0.5s ease;
}

.es-zinu-img:hover {
    transform: scale(1.03) rotate(1deg);
}

/* Pakalpojumi section */
.pakalpojumi-section {
    padding: 10rem 5% 4rem;
    text-align: center;
    min-height: 70vh;
}

.pakalpojumi-title {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUpIn 1s ease forwards;
}

.pakalpojumi-subtitle {
    color: var(--text-light);
    margin-bottom: 4rem;
    font-size: 1.15rem;
    opacity: 0;
    animation: fadeUpIn 1.2s ease forwards;
}

.pakalpojumi-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.pakalpojums-card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;

    /* Scroll animation using viewport timeline */
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.8s ease forwards;
    animation-timeline: view();
    animation-range: entry 10% cover 25%;
}

.pakalpojums-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 77, 141, 0.2);
    border-color: var(--primary);
}

.pakalpojums-icon-wrapper {
    background: rgba(212, 77, 141, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.pakalpojums-card:hover .pakalpojums-icon-wrapper {
    transform: rotate(15deg) scale(1.1);
}

.pakalpojums-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.pakalpojums-name {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.pakalpojums-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pakalpojums-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.pakalpojumi-btn-wrapper {
    margin-top: 5rem;
}

.pakalpojumi-btn-wrapper a {
    display: inline-block;
    padding: 18px 48px;
    text-decoration: none;
    width: auto;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.pakalpojumi-btn-wrapper a:hover i {
    transform: translateX(5px);
}

.carousel-dots {
    display: none;
}

/* Animations */
@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealFromSide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.footer-logo {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent), #ff00cc);
    -webkit-background-clip: text;
    color: transparent;
}

.footer-social a {
    font-size: 2.2rem;
    margin: 0 1.2rem;
    color: var(--accent);
    transition: all 0.4s;
}

.footer-social a:hover {
    transform: scale(1.5) rotate(15deg);
    text-shadow: 0 0 30px var(--accent);
}

.back-top {
    background: var(--accent);
    color: #000;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s;
}

.back-top:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.5);
}


/* Page Headers without video */
.page-header {
    padding: 11rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title-container {
    position: relative;
    padding-left: 1.8rem;
    animation: fadeUpIn 1s ease forwards;
}

.page-title-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    bottom: 5px;
    width: 6px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(212, 77, 141, 0.4);
}

.page-title {
    font-size: 3.5rem;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
}

.cookie-container {
    position: fixed;
    bottom: -100%;
    /* Sākumā paslēpts */
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-container.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: 'Inter', sans-serif;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-content a {
    color: #ff4d4d;
    /* Tava akcenta krāsa */
    text-decoration: underline;
}

.cookie-btn {
    background: linear-gradient(45deg, #847f7f00, #aa13a3);
    color: black;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    transition: transform 0.2s;
}

.cookie-btn:hover {
    transform: scale(1.05);
}

@media (max-width:768px) {
    .page-header {
        padding: 10px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Izmēru optimizācija mobilajiem ekrāniem */
    header {
        padding: 1rem 5%;
    }

    .page-header {
        padding: calc(var(--header-height) + 1rem) 5% 3rem;
    }

    .logo img {
        max-width: 180px;
    }

    .hero h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero {
        justify-content: center;
    }

    /* Atstarpes un padding samazināšana */
    .cards,
    #showcase,
    .booking-container {
        padding: 4rem 5% 2rem;
    }

    .tilt-card {
        height: auto;
        min-height: 320px;
        padding: 2rem 1.5rem;
    }

    /* Galerija var pāriet horizontālos slāņos */
    .container {
        flex-direction: column;
        height: 75vh;
        width: 100%;
        margin: 15px 0;
        padding: 5px;
    }

    /* Kājenes centrēšana un iframe kartes mērogošanās */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-map iframe {
        width: 100%;
        height: 260px;
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo img {
        max-width: fit-content;
    }

    /* Modālā loga pielāgojumi mobilajās ierīcēs */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .admin-login-form {
        padding: 20px 16px;
    }

    .admin-list {
        padding: 12px 14px;
        max-height: 60vh;
    }

    .admin-booking {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-booking-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-edit-row {
        margin-bottom: 15px;
    }

    /* Pakalpojumu kartīšu horizontālais ritulis mobilajiem (JS Swipe) */
    .pakalpojumi-card-wrapper {
        overflow: hidden;
        padding-bottom: 0.5rem;
        margin: 0;
        touch-action: pan-y;
        /* Atļauj ritināt lapu uz augšu/leju, bet klausās swipe */
    }

    .pakalpojumi-card-wrapper::-webkit-scrollbar {
        display: none;
    }

    .pakalpojumi-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        /* No gap so math is exactly 100% */
        width: 100%;
        /* Matches carousel width */
        will-change: transform;
    }

    .pakalpojums-card {
        flex: 0 0 90%;
        /* 90% of wrapper width */
        min-width: 90%;
        max-width: none;
        box-sizing: border-box;
        margin: 0 5%;
        /* 5% on each side creates the perfect gap, totaling 100% width per card */
        animation: none;
        opacity: 1;
        transform: none !important;
        /* No zoom effect */
        transition: none !important;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--accent);
        transform: scale(1.3);
    }

    .cookie-content {
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
    }

    .cookie-container {
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
    }
}