/* ==============================
   ROOT & DESIGN TOKENS
   ============================== */
:root {
    --bg-dark: #050507;
    --bg-card: #101015;
    --bg-card2: #181820;
    --text-main: #ffffff;
    --text-muted: #b9bdc7;
    --green: #00e676;
    --purple: #7d22c9;
    --silver: #c8ccd4;
    --gradient: linear-gradient(135deg, #6f25bc 0%, #8b38dc 42%, #00e676 100%);
    --gradient-hover: linear-gradient(135deg, #00e676 0%, #8b38dc 52%, #c8ccd4 100%);
    --nav-height: 108px;
    --bottom-nav-height: 70px;
    --fab-bottom: calc(var(--bottom-nav-height) + 20px);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Heebo', sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(125, 34, 201, 0.28), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(0, 230, 118, 0.14), transparent 24rem),
        var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Reserve space for top bar and bottom nav */
    padding-top: var(--nav-height);
    padding-bottom: var(--bottom-nav-height);
}

/* Background watermark logo */
.site-watermark {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    background: url('../assets/bg-logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.14;
    z-index: -1;
    pointer-events: none;
    filter: brightness(1.35) saturate(1.15);
}

/* ==============================
   TOP BAR
   ============================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 204, 212, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    z-index: 1000;
}

.top-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 5.5rem);
}

.top-logo img {
    width: 108px;
    height: 108px;
    object-fit: contain;
    border-radius: 6px;
}

.top-logo span {
    display: block;
    font-weight: 900;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--silver) 0%, #ffffff 28%, var(--green) 58%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(0, 230, 118, 0.2);
}

.admin-trigger {
    margin-inline-start: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.admin-trigger:hover {
    background: rgba(255,255,255,0.08);
    color: var(--green);
}

/* ==============================
   BOTTOM NAV
   ============================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(7, 7, 10, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(200, 204, 212, 0.14);
    display: flex;
    z-index: 1000;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Heebo', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.nav-btn i {
    font-size: 1.3rem;
    transition: all 0.3s;
}

.nav-btn.active {
    color: var(--green);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 0 0 4px 4px;
}

.nav-btn.active i {
    transform: translateY(-2px);
}

/* ==============================
   PAGES
   ============================== */
.main-content {
    min-height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
}

.page {
    display: none;
    animation: pageIn 0.4s ease;
    min-height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
    padding-bottom: 6rem;
}

.page.active {
    display: block;
}

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

/* ==============================
   PAGE HEADER
   ============================== */
.page-header {
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==============================
   HOME PAGE
   ============================== */
.hero {
    position: relative;
    min-height: clamp(360px, 62svh, 680px);
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 28%, rgba(0, 230, 118, 0.12), transparent 18rem),
        radial-gradient(circle at center, #1b0f27 0%, var(--bg-dark) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 7, 0.12) 0%, rgba(5, 5, 7, 0.28) 46%, rgba(5, 5, 7, 1) 100%),
        url('../assets/hero-osher.jpeg') center 28% / cover no-repeat;
    opacity: 1;
    filter: saturate(1.14) contrast(1.06);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0.65rem 1.5rem 1.1rem;
    max-width: 600px;
    margin: -4rem auto 0;
    text-align: center;
    transform: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(125, 34, 201, 0.22);
    border: 1px solid var(--purple);
    color: var(--green);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--silver), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Stats Bar */
.home-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    background: transparent;
    border-top: 1px solid rgba(125, 34, 201, 0.28);
    border-bottom: 1px solid rgba(0, 230, 118, 0.18);
    backdrop-filter: blur(4px);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1.2rem 0.5rem;
    background: rgba(5, 5, 7, 0.34);
    border-left: 1px solid rgba(255,255,255,0.07);
}

.stat-item:last-child { border-left: none; }

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
}

.stat-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

/* Home Locations */
.home-locations {
    padding: 2.5rem 1.2rem;
}

.home-about {
    padding: 0 1.2rem 2.5rem;
}

.home-locations h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.locations-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
}

.location-card {
    background: linear-gradient(180deg, rgba(24, 24, 32, 0.96), rgba(10, 10, 14, 0.96));
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(200, 204, 212, 0.11);
    transition: all 0.3s;
}

.location-card:hover {
    border-color: rgba(0,230,118,0.42);
    box-shadow: 0 14px 38px rgba(125, 34, 201, 0.18);
    transform: translateY(-3px);
}

.location-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.location-logo img {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
}

.location-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.location-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-card i { color: var(--green); }

.waze-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(51, 204, 255, 0.08);
    color: #33ccff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(51, 204, 255, 0.2);
    transition: all 0.3s;
}

.waze-btn:hover {
    background: rgba(51, 204, 255, 0.2);
    transform: translateY(-2px);
}

/* Social Bar */
.social-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.2rem;
}

.hero-social {
    padding: 1.2rem 0 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.4rem;
    color: #fff;
    transition: all 0.3s;
}

.social-btn.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tiktok { background: #010101; border: 1px solid rgba(255,255,255,0.1); }
.social-btn.whatsapp { background: #25d366; }

.social-btn:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }

/* ==============================
   GALLERY PAGE
   ============================== */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0 1.2rem 1.5rem;
    justify-content: center;
}

.gtab {
    flex: 1 1 130px;
    max-width: 180px;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-family: 'Heebo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.gtab.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: pageIn 0.3s ease; }

.content-grid,
.text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 1rem 2rem;
}

.text-card {
    position: relative;
    min-height: 150px;
    padding: 1.2rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(24, 24, 32, 0.96), rgba(10, 10, 14, 0.96));
    border: 1px solid rgba(200, 204, 212, 0.12);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.text-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Videos */
.video-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Smaller gap for seamless feel */
    padding: 0; /* Edge to edge */
    width: 100%;
}

.video-wrapper-flexible {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
}

.video-wrapper-flexible video,
.video-wrapper-flexible iframe {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the whole rectangle */
    border: none;
    display: block;
}

.video-wrapper-flexible video {
    cursor: pointer;
}



.video-wrapper-flexible.video-horizontal iframe {
    aspect-ratio: 16 / 9;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for better mobile visibility */
    gap: 12px;
    padding: 0 1rem 2rem;
}

@media (min-width: 600px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .content-grid,
    .text-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .photo-grid { grid-template-columns: repeat(4, 1fr); }
    .content-grid,
    .text-grid {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
        max-width: 1180px;
        margin-inline: auto;
    }
}

.photo-grid img, 
.gallery-item,
.media-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.photo-grid img:hover, 
.gallery-item:hover,
.media-thumb:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--green);
    box-shadow: 0 15px 35px rgba(0,230,118,0.2);
}

/* ==============================
   REVIEWS PAGE
   ============================== */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1.2rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}

.review-card:hover {
    border-color: rgba(0,230,118,0.2);
    transform: translateY(-3px);
}

.review-stars {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.review-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.review-author {
    font-weight: 700;
    color: var(--green);
    font-size: 0.9rem;
}

.section-label {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 2rem 0 1rem;
    padding: 0 1.2rem;
}

/* ==============================
   ABOUT PAGE
   ============================== */
.about-hero {
    position: relative;
    text-align: center;
    padding-top: 2rem;
}

.about-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    background: var(--gradient) border-box;
    outline: 4px solid var(--purple);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.about-badge {
    display: inline-block;
    margin-top: 1rem;
    background: var(--gradient);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.about-body {
    padding: 2rem 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-body h2 {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-story p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-block {
    flex: 1;
    text-align: center;
    padding: 1.2rem 0.5rem;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.stat-block:last-child { border-left: none; }

.big-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-block span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mission-box {
    background: rgba(123, 31, 162, 0.12);
    border: 1px solid rgba(123, 31, 162, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mission-box i {
    color: var(--green);
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.mission-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* ==============================
   BUTTONS
   ============================== */
.btn-primary {
    background: var(--gradient);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: none;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 18px rgba(125, 34, 201, 0.34), 0 0 22px rgba(0, 230, 118, 0.08);
}

.btn-primary.large {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,230,118,0.3);
    background: var(--gradient-hover);
}

.btn-danger {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: 'Heebo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.btn-danger:hover { background: rgba(255, 82, 82, 0.3); }

/* ==============================
   FAB WHATSAPP BUTTON
   ============================== */
.fab-whatsapp {
    position: fixed;
    bottom: var(--fab-bottom);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 25px rgba(125, 34, 201, 0.42), 0 0 22px rgba(0, 230, 118, 0.18);
    z-index: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.fab-whatsapp:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,230,118,0.4);
}

body[data-page="page-gallery"] .fab-whatsapp,
body.gallery-open .fab-whatsapp {
    display: none;
}

/* ==============================
   MODALS
   ============================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border-radius: 24px 24px 0 0;
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    animation: slideUp 0.4s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@media (min-width: 600px) {
    .modal-overlay { align-items: center; }
    .modal-box { border-radius: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover { background: var(--green); color: #000; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
#admin-auth input,
#admin-tools input,
#admin-tools select {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
#admin-auth input:focus,
#admin-tools input:focus,
#admin-tools select:focus {
    border-color: var(--green);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 12px rgba(0,230,118,0.1);
}

.contact-form select,
#admin-tools select { appearance: none; cursor: pointer; }
.contact-form select option,
#admin-tools select option { background: #1a1a1a; color: #fff; }

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: right;
}

.privacy-consent input {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--green);
}

.privacy-consent a,
.privacy-content a {
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

.privacy-consent a:hover,
.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-box {
    max-height: min(86vh, 720px);
    overflow: hidden;
}

.privacy-content {
    max-height: calc(min(86vh, 720px) - 88px);
    overflow-y: auto;
    padding-inline-end: 0.25rem;
    color: var(--text-muted);
    text-align: right;
}

.privacy-content h4 {
    color: var(--text-main);
    margin: 1.15rem 0 0.35rem;
    font-size: 1rem;
}

.privacy-content p {
    margin-bottom: 0.65rem;
}

/* Admin Box */
.admin-box { border-radius: 24px !important; }

#admin-auth, #admin-tools {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-section h4 {
    font-size: 1rem;
    color: var(--text-muted);
}

.admin-section.danger { border-color: rgba(255,82,82,0.2); }

.leads-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
}

.lead-card {
    position: relative;
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 3rem 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.lead-card strong {
    color: var(--text-main);
    font-size: 1rem;
}

.lead-card a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    text-align: right;
}

.lead-card span,
.lead-card small,
.empty-state {
    color: var(--text-muted);
}

.lead-card small {
    font-size: 0.75rem;
}

/* ==============================
   LIGHTBOX
   ============================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
    animation: pageIn 0.3s ease;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    cursor: default;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.close-lightbox:hover { background: rgba(255,255,255,0.25); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (min-width: 768px) {
    .hero {
        min-height: clamp(420px, 58svh, 720px);
    }

    .hero-content {
        margin-top: -3.5rem;
        padding: 0.65rem 1.5rem 1.2rem;
        transform: none !important;
    }

    .hero-content h1 {
        text-shadow: 0 8px 24px rgba(0, 0, 0, 0.78);
    }

    .home-stats {
        margin-top: 1.5rem;
    }

    .locations-grid {
        flex-direction: row;
        gap: 2rem;
        max-width: 700px;
    }

    .video-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
        justify-content: center;
        align-items: start;
        gap: 1.5rem;
        max-width: 1180px;
        margin-inline: auto;
        padding: 0 1.5rem 2rem;
    }

    .reviews-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    :root {
        --nav-height: 96px;
    }

    .hero {
        min-height: clamp(360px, 56svh, 520px);
    }

    .hero-content {
        margin-top: -2.5rem;
        padding: 0 1.2rem 1rem;
        transform: none !important;
    }

    .hero-content h1 {
        text-shadow: 0 8px 22px rgba(0, 0, 0, 0.82);
    }

    .hero-social {
        padding: 1rem 0 0.8rem;
    }

    .home-stats {
        margin-top: 0;
    }

    .top-logo {
        gap: 0.5rem;
    }

    .top-logo img {
        width: 82px;
        height: 82px;
    }

    .top-logo span {
        font-size: 1.15rem;
    }

    .page {
        padding-bottom: 1rem;
    }

    .video-grid {
        width: min(100%, 320px);
        margin-inline: auto;
        gap: 1.25rem;
    }

    @supports (width: calc(1px * 1)) {
        .video-grid {
            width: min(100%, calc((100svh - var(--nav-height) - var(--bottom-nav-height) - 145px) * 0.5625), 420px);
        }
    }

    .video-wrapper-flexible {
        aspect-ratio: 9 / 16;
        max-height: calc(100svh - var(--nav-height) - var(--bottom-nav-height) - 145px);
    }

    .video-wrapper-flexible.video-mobile-crop iframe {
        width: 316%;
        height: 100%;
        max-width: none;
        margin-inline-start: 50%;
        transform: translateX(-50%);
    }
}

/* ==============================
   UPLOAD UI
   ============================== */
.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 2px dashed rgba(0,230,118,0.3);
    border-radius: 14px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.upload-label:hover {
    border-color: var(--green);
    background: rgba(0,230,118,0.04);
    color: var(--green);
}

.upload-label i {
    font-size: 2rem;
    color: var(--green);
}

.doc-file-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px dashed rgba(0, 230, 118, 0.36);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.doc-file-row:hover {
    color: var(--green);
    background: rgba(0, 230, 118, 0.06);
    border-color: var(--green);
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.28);
    color: var(--green);
    text-decoration: none;
    font-weight: 800;
}

.upload-progress {
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    overflow: hidden;
    height: 10px;
    position: relative;
    margin-top: 0.3rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 30px;
    transition: width 0.3s ease;
}

.upload-progress span {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.75rem;
    color: var(--green);
}

/* ==============================
   MEDIA THUMBS (uploaded)
   ============================== */
.media-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.media-thumb:hover {
    transform: scale(1.04);
    border-color: var(--green);
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 2rem;
    pointer-events: none;
}/* ==============================
   DELETE / EDIT BUTTONS
   ============================== */

/* Gallery item delete button — always visible so admin can manage */
.item-delete-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(255, 60, 60, 0.85);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

/* Show delete buttons only in admin mode */
body.admin-mode .item-delete-btn {
    display: flex;
}

.item-delete-btn:hover {
    background: #ff1a1a;
    transform: scale(1.1);
}

/* Review card action buttons */
.review-actions {
    margin-top: 1rem;
    display: none;      /* hidden by default */
    gap: 0.6rem;
}

/* Show review actions in admin mode */
body.admin-mode .review-actions {
    display: flex;
}

.review-edit-btn,
.review-del-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    font-family: 'Heebo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.review-edit-btn {
    background: rgba(0, 230, 118, 0.15);
    color: var(--green);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.review-edit-btn:hover { background: rgba(0, 230, 118, 0.3); }

.review-del-btn {
    background: rgba(255, 60, 60, 0.12);
    color: #ff5252;
    border: 1px solid rgba(255, 60, 60, 0.25);
}

.review-del-btn:hover { background: rgba(255, 60, 60, 0.25); }

/* Admin section textarea styling */
#admin-tools textarea,
#new-review-text,
#edit-review-text {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s;
    outline: none;
}

#admin-tools textarea:focus,
#new-review-text:focus,
#edit-review-text:focus {
    border-color: var(--green);
    background: rgba(255,255,255,0.07);
}

#edit-review-stars,
.contact-form select {
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    width: 100%;
    appearance: none;
    cursor: pointer;
    outline: none;
}
