:root {
    --sea-1: #e8f5f9;
    --sea-2: #c8e8f1;
    --sea-3: #4f8ea8;
    --ink: #1c2f39;
    --accent: #f39c3d;
    --danger: #c63f3f;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--sea-1), #f7fbfc);
}

.menu-hero,
.admin-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 142, 168, 0.2), transparent 35%),
        radial-gradient(circle at 85% 5%, rgba(243, 156, 61, 0.2), transparent 40%),
        linear-gradient(130deg, rgba(232, 245, 249, 0.95), rgba(200, 232, 241, 0.8)),
        url('../media/bg.png');
    background-size: cover;
    border-bottom: 1px solid rgba(28, 47, 57, 0.15);
}

.menu-hero::after,
.admin-header::after {
    content: "";
    position: absolute;
    inset: auto -10% -55px;
    height: 120px;
    background: radial-gradient(circle at 25% 10%, rgba(79, 142, 168, 0.45), rgba(79, 142, 168, 0));
    filter: blur(10px);
}

.navbar {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    position: relative;
    z-index: 2;
}

.logo img {
    width: 140px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--sea-3);
}

.hamburger {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(28, 47, 57, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(200, 232, 241, 0.75));
    box-shadow: 0 12px 22px rgba(79, 142, 168, 0.22);
    backdrop-filter: blur(6px);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hamburger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(79, 142, 168, 0.3);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    margin: 0;
    background: var(--ink);
    border-radius: 3px;
    transition: transform .28s ease, opacity .28s ease;
}

.hamburger span:nth-child(2) {
    width: 18px;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-inner {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 2.5rem 0 3.7rem;
    position: relative;
    z-index: 1;
}

.hero-inner h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-inner p {
    margin-top: .5rem;
    max-width: 720px;
}

.menu-page {
    color: #e8f0f7;
    background:
        radial-gradient(circle at 12% -10%, rgba(38, 79, 106, 0.32), transparent 35%),
        radial-gradient(circle at 88% 0%, rgba(243, 156, 61, 0.14), transparent 32%),
        linear-gradient(170deg, #05090d, #020406 70%);
    min-height: 100vh;
}

.menu-page .menu-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(55, 126, 160, 0.16), transparent 35%),
        radial-gradient(circle at 85% 5%, rgba(243, 156, 61, 0.11), transparent 40%),
        linear-gradient(140deg, rgba(5, 16, 24, 0.88), rgba(3, 9, 15, 0.84)),
        url('../media/1212.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-bottom: 1px solid rgba(190, 221, 243, 0.16);
    position: relative;
}

.menu-page .menu-hero::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -90px;
    top: 20%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(243, 156, 61, 0.18), rgba(243, 156, 61, 0));
    filter: blur(16px);
    pointer-events: none;
    animation: seaPulse 10s ease-in-out infinite;
}

.menu-page .menu-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -120px;
    bottom: -120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(100, 173, 218, 0.16), rgba(100, 173, 218, 0));
    filter: blur(18px);
    pointer-events: none;
    animation: seaPulse 12s ease-in-out infinite reverse;
}

.menu-page .navbar {
    width: 100%;
    padding: 0.9rem 2rem;
    justify-content: flex-end;
    background: transparent;
    backdrop-filter: none;
}

.menu-page .logo {
    margin-right: auto;
}

.menu-page .nav-links a {
    color: #eaf4ff;
    position: relative;
}

.menu-page .nav-links a:hover {
    color: #f7c273;
}

.menu-page .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(247, 194, 115, 0), rgba(247, 194, 115, 0.95), rgba(247, 194, 115, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.menu-page .nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-page .hamburger {
    border: 1px solid rgba(210, 231, 247, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(113, 151, 173, 0.1));
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.menu-page .hamburger span {
    background: #eaf4ff;
}

.menu-page .search-wrap input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(210, 231, 247, 0.28);
    color: #eef7ff;
}

.menu-page .search-wrap input::placeholder {
    color: rgba(232, 240, 247, 0.72);
}

.menu-page .menu-main {
    margin-top: 2rem;
    padding-bottom: 8rem;
    animation: fadeUpSoft .6s ease both;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    overflow-x: visible;
    padding: .6rem;
    padding-bottom: .8rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(173, 210, 234, 0.16);
    background: rgba(6, 18, 28, 0.68);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 18px 28px rgba(0, 0, 0, 0.25);
    animation: fadeUpSoft .55s ease both;
}

.category-tabs::-webkit-scrollbar {
    height: 8px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: rgba(223, 238, 249, 0.25);
    border-radius: 999px;
}

.tab-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border: 1px solid rgba(176, 211, 234, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: #dceefd;
    padding: .62rem .95rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    transform: translateY(-1px) scale(1.01);
    border-color: rgba(243, 156, 61, 0.55);
    color: #fff3df;
}

.tab-btn.active {
    background: linear-gradient(145deg, rgba(243, 156, 61, 0.95), rgba(211, 124, 33, 0.95));
    border-color: transparent;
    color: #1f1202;
    box-shadow: 0 10px 20px rgba(195, 112, 29, 0.32);
    animation: activeBreathe 2.2s ease-in-out infinite;
}

.tab-btn::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 34%;
    height: 320%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    transform: rotate(20deg);
    transition: left .55s ease;
}

.tab-btn:hover::before {
    left: 130%;
}

.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
    animation: panelReveal .35s ease;
}

.search-wrap {
    margin-top: 1.3rem;
}

.search-wrap input {
    width: min(420px, 100%);
    border: 1px solid rgba(28, 47, 57, 0.22);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
}

.search-wrap input:focus {
    border-color: var(--sea-3);
    box-shadow: 0 0 0 3px rgba(79, 142, 168, 0.2);
}

.menu-main,
.admin-main {
    width: min(1100px, 92%);
    margin: 1.8rem auto 3rem;
}

.category {
    margin-bottom: 2.5rem;
}

.category h2 {
    margin: 0 0 1rem;
}

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

.menu-card {
    background: linear-gradient(165deg, rgba(9, 30, 44, 0.95), rgba(6, 18, 28, 0.95));
    border-radius: 14px;
    border: 1px solid rgba(194, 224, 244, 0.14);
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
    animation: cardIn .45s ease both;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(79, 142, 168, 0.18);
}

.image-btn {
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.image-btn img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.menu-card:hover .image-btn img {
    transform: scale(1.05);
}

.card-body {
    padding: 0.9rem;
}

.card-body h3 {
    margin: 0;
    color: #e7f2fb;
}

.card-body strong {
    color: #f7c273;
    font-size: 1.05rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 90;
    padding: 1rem;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    background: linear-gradient(165deg, rgba(8, 24, 36, 0.98), rgba(4, 12, 20, 0.98));
    color: #eaf4ff;
    width: min(760px, 95vw);
    border-radius: 14px;
    padding: 1rem;
    position: relative;
    animation: pop .25s ease;
    border: 1px solid rgba(194, 224, 244, 0.18);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.4);
}

.lightbox-content img {
    width: 100%;
    max-height: 64vh;
    object-fit: cover;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 1px solid rgba(223, 238, 249, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #f2f8ff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
}

#lightboxTitle {
    margin: .8rem 0 .35rem;
    color: #f4c67b;
}

#lightboxDescription {
    margin: 0;
    color: #d8e8f5;
}

.admin-card {
    background: #fff;
    border: 1px solid rgba(28, 47, 57, 0.14);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    animation: fadeUpSoft .4s ease both;
}

.admin-form {
    display: grid;
    gap: .5rem;
}

.add-form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.edit-form {
    grid-template-columns: 1.4fr 2fr .8fr 1fr 1.1fr auto;
    flex: 1;
}

.admin-form input,
.admin-form select,
.admin-form button {
    border: 1px solid rgba(28, 47, 57, 0.22);
    border-radius: 9px;
    padding: .6rem .65rem;
    font: inherit;
}

.admin-form button {
    cursor: pointer;
    font-weight: 700;
    border: 0;
}

.add-form button,
.save-btn {
    background: var(--sea-3);
    color: #fff;
}

.delete-btn {
    background: var(--danger);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: .6rem .9rem;
    cursor: pointer;
}

.admin-item {
    display: flex;
    gap: .5rem;
    border-top: 1px dashed rgba(28, 47, 57, 0.15);
    padding-top: .8rem;
    margin-top: .8rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
}

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

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes seaPulse {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
    50% { transform: translate3d(0, -14px, 0) scale(1.07); opacity: 1; }
}

@keyframes activeBreathe {
    0%, 100% { box-shadow: 0 10px 20px rgba(195, 112, 29, 0.24); }
    50% { box-shadow: 0 14px 26px rgba(195, 112, 29, 0.4); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes panelReveal {
    from { opacity: 0; transform: translateY(8px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: .8rem 1rem;
        z-index: 40;
        background: linear-gradient(180deg, rgba(232, 245, 249, 0.94), rgba(232, 245, 249, 0.42));
        backdrop-filter: blur(8px);
    }

    .menu-page .navbar {
        position: absolute;
        top: .25rem;
        left: 0;
        right: 0;
        width: 100%;
        background: transparent;
        justify-content: flex-end;
        grid-template-columns: 1fr auto;
        display: grid;
        align-items: center;
        gap: .75rem;
        padding: .55rem .75rem;
        z-index: 12;
        backdrop-filter: none;
    }

    .menu-page .logo img {
        width: 112px;
    }

    .menu-page .hamburger {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

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

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

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

    .admin-item {
        flex-direction: column;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        right: 1rem;
        top: 4.3rem;
        flex-direction: column;
        background:
            radial-gradient(circle at 10% 0%, rgba(243, 156, 61, 0.26), transparent 40%),
            linear-gradient(130deg, rgba(255, 255, 255, 0.97), rgba(232, 245, 249, 0.94));
        border: 1px solid rgba(28, 47, 57, 0.2);
        border-radius: 16px;
        width: min(260px, 88vw);
        padding: .85rem;
        display: none;
        z-index: 9;
        box-shadow: 0 18px 30px rgba(79, 142, 168, 0.25);
        backdrop-filter: blur(8px);
    }

    .menu-page .nav-links {
        background:
            radial-gradient(circle at 10% 0%, rgba(243, 156, 61, 0.2), transparent 40%),
            linear-gradient(130deg, rgba(9, 30, 44, 0.96), rgba(6, 18, 28, 0.94));
        border: 1px solid rgba(194, 224, 244, 0.18);
        top: 4.6rem;
        right: .75rem;
        width: min(240px, calc(100vw - 1.5rem));
        z-index: 15;
    }

    .hero-inner {
        padding-top: 6.4rem;
    }

    .menu-page .hero-inner {
        padding-top: 7.2rem;
        padding-bottom: 2rem;
    }

    body.menu-page.nav-open .hero-inner {
        padding-top: 14.2rem;
    }

    .menu-page .hero-inner h1 {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        line-height: 1.2;
    }

    .menu-page .hero-inner p {
        font-size: 1.05rem;
        max-width: 100%;
    }

    .menu-page .search-wrap input {
        width: 100%;
    }

    .menu-page .category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        gap: .5rem;
        padding: .5rem;
        margin-bottom: .9rem;
    }

    .menu-page .tab-btn {
        width: 100%;
        padding: .56rem .45rem;
        font-size: .94rem;
        white-space: normal;
        line-height: 1.2;
    }

    .nav-links a {
        padding: .55rem .65rem;
        border-radius: 10px;
    }

    .nav-links a:hover {
        background: rgba(79, 142, 168, 0.12);
    }

    .nav-links.open {
        display: flex;
    }
}

@media (max-width: 650px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .menu-page .tab-btn {
        font-size: .88rem;
        padding: .52rem .4rem;
    }

    .image-btn img {
        height: 185px;
    }
}
.status-message {
    border-radius: 12px;
    padding: .75rem .9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    animation: fadeUpSoft .35s ease both;
}

.status-message.success {
    background: rgba(35, 144, 83, 0.14);
    border: 1px solid rgba(35, 144, 83, 0.35);
    color: #1c6b3f;
}

.status-message.error {
    background: rgba(198, 63, 63, 0.12);
    border: 1px solid rgba(198, 63, 63, 0.35);
    color: #8b2020;
}

.login-wrap {
    display: flex;
    justify-content: center;
}

.login-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid rgba(28, 47, 57, 0.16);
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: .75rem;
}

.login-card label {
    display: grid;
    gap: .35rem;
    font-weight: 600;
}

.login-card input,
.login-card button {
    border: 1px solid rgba(28, 47, 57, 0.22);
    border-radius: 9px;
    padding: .65rem .7rem;
    font: inherit;
}

.login-card button {
    border: 0;
    background: var(--sea-3);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.admin-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
