* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    background:
        linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.9)),
        url("../img/netflix-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a {
    color: inherit;
}

.muted {
    color: #bdbdbd;
}

.navbar {
    min-height: 70px;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 2px;
    color: #e50914;
    text-shadow: 0 0 18px rgba(229,9,20,.65);
}

.hamburger-wrapper {
    position: relative;
    display: inline-block;
}

.hamburger-button {
    background: none;
    border: none;
    color: white;
    font-size: 34px;
    cursor: pointer;
    padding: 8px 10px;
    line-height: 1;
    transition: transform .2s ease;
}

.hamburger-button:hover {
    transform: scale(1.08);
}

.hamburger-dropdown[hidden] {
    display: none !important;
}

.hamburger-dropdown {
    position: absolute;
    top: 52px;
    left: 0;
    width: 240px;
    background: rgba(20,20,20,.96);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 38px rgba(0,0,0,.55);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: dropIn .2s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hamburger-dropdown a {
    display: block;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,.06);
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: bold;
    white-space: nowrap;
    transition: .2s ease;
}

.hamburger-dropdown a:hover {
    background: #e50914;
    transform: translateX(4px);
}

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

.nav-buttons a {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: bold;
    transition: .2s ease;
}

.btn-login {
    background: rgba(255,255,255,.12);
}

.btn-register,
.btn-primary {
    background: #e50914;
    color: white;
}

.nav-buttons a:hover,
.btn-small:hover,
.btn-primary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.user-greeting {
    color: #ddd;
}

.hero {
    padding: 80px 40px 40px;
}

.hero-cinema {
    min-height: 440px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(229,9,20,.32), transparent 28%),
        linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.35));
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffb3b3;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .98;
}

.hero p {
    margin: 0;
    color: #ddd;
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-primary,
.btn-ghost,
.button-like {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: .2s ease;
}

.btn-ghost {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.15);
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2,
.film-section h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

.section-heading p {
    color: #cfcfcf;
    margin: 0;
}

.film-section {
    padding: 30px 40px 65px;
}

.film-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.film-card {
    position: relative;
    background: rgba(31,31,31,.86);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.46);
    backdrop-filter: blur(5px);
    transition: .28s ease;
}

.film-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 45px rgba(229,9,20,.22);
    border-color: rgba(229,9,20,.55);
}

.film-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    background: #333;
}

.film-info {
    padding: 16px;
}

.film-info h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.film-info p {
    margin: 7px 0;
    color: #ddd;
}

.film-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.film-status-badge.inline {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
}

.status-sedang {
    background: #e50914;
}

.status-akan {
    background: #f9a825;
    color: #111;
}

.btn-small {
    display: inline-block;
    background: #e50914;
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 999px;
    margin-top: 10px;
    font-weight: bold;
    transition: .2s ease;
}

.auth-page,
.struk-page {
    min-height: calc(100vh - 70px);
    display: grid;
    place-items: center;
    padding: 40px 18px;
}

.form-box,
.auth-card,
.profile-card,
.admin-panel,
.comment-section,
.schedule-card,
.struk-card {
    background: rgba(31,31,31,.88);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 34px rgba(0,0,0,.42);
}

.form-box {
    width: 420px;
    max-width: 95%;
    margin: 60px auto;
    padding: 25px;
    border-radius: 16px;
}

.form-box input,
.form-box textarea,
.form-box select,
.rating-box select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.mini-form input,
.mini-form select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    color: white;
}

.form-box button,
.rating-box button,
.booking-box button,
.comment-form button,
.admin-form button,
.mini-form button {
    padding: 12px;
    border: none;
    border-radius: 999px;
    background: #e50914;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: .2s ease;
}

.form-box button {
    width: 100%;
}

.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.alert-error {
    background: #6b1717;
}

.alert-success {
    background: #176b2c;
}

.detail-container {
    padding: 42px;
    display: grid;
    grid-template-columns: minmax(240px, 330px) 1fr;
    gap: 34px;
}

.detail-poster img,
.detail-container > div:first-child img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.52);
}

.detail-content {
    background: rgba(0,0,0,.28);
    border-radius: 18px;
    padding: 22px;
}

.detail-content h1 {
    font-size: clamp(32px, 4vw, 58px);
    margin: 0 0 15px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.schedule-card {
    padding: 16px;
    border-radius: 14px;
    transition: .2s ease;
}

.schedule-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229,9,20,.5);
}

.coming-soon-info {
    background: rgba(249,168,37,.15);
    border: 1px solid #f9a825;
    color: #ffd166;
    padding: 14px;
    border-radius: 12px;
}

.rating-box {
    max-width: 500px;
}

.comment-section {
    margin-top: 25px;
    padding: 22px;
    border-radius: 16px;
}

.comment-form {
    margin-bottom: 22px;
}

.comment-form textarea {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    resize: vertical;
    background: rgba(255,255,255,.08);
    color: white;
    font-family: Arial, sans-serif;
}

.comment-form button {
    margin-top: 10px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

.comment-card {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,.07);
    padding: 14px;
    border-radius: 12px;
    transition: .2s ease;
}

.comment-card:hover {
    background: rgba(255,255,255,.11);
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e50914;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-header small {
    color: #999;
}

.empty-comment {
    color: #aaa;
}

.seat-container {
    padding: 42px;
}

.seat-header {
    max-width: 850px;
}

.screen {
    width: 100%;
    max-width: 760px;
    background: linear-gradient(90deg, #ddd, #fff, #ddd);
    color: #111;
    padding: 12px;
    text-align: center;
    border-radius: 50% 50% 8px 8px;
    margin: 24px 0;
    font-weight: bold;
    box-shadow: 0 0 25px rgba(255,255,255,.35);
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(48px, 70px));
    gap: 12px;
    margin-bottom: 25px;
    max-width: 760px;
}

.seat {
    display: block;
    text-align: center;
    padding: 14px 8px;
    border-radius: 10px 10px 16px 16px;
    background: #2e7d32;
    cursor: pointer;
    font-weight: bold;
    transition: .18s ease;
}

.seat:hover {
    transform: translateY(-3px);
}

.seat input {
    display: none;
}

.seat:has(input:checked) {
    background: #f9a825;
    color: #111;
    box-shadow: 0 0 18px rgba(249,168,37,.7);
}

.seat.occupied {
    background: #666;
    cursor: not-allowed;
    color: #bbb;
}

.booking-box {
    max-width: 780px;
}

.booking-summary {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    background: rgba(255,255,255,.08);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.seat-legend {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.seat-legend span {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: inline-block;
}

.legend-kosong { background: #2e7d32; }
.legend-dipilih { background: #f9a825; }
.legend-terisi { background: #666; }

.profile-page {
    padding: 42px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #e50914;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 34px;
    box-shadow: 0 0 25px rgba(229,9,20,.55);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr);
    gap: 24px;
}

.profile-card {
    border-radius: 18px;
    padding: 24px;
}

.ticket-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    border-left: 5px solid #e50914;
}

.ticket-main h3 {
    margin-top: 0;
}

.ticket-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-dibayar { background: rgba(46,125,50,.25); color: #7CFF96; }
.status-pending { background: rgba(249,168,37,.25); color: #ffd166; }
.status-dibatalkan { background: rgba(229,9,20,.25); color: #ff8a8a; }

.activity-item,
.comment-mini {
    background: rgba(255,255,255,.07);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.comment-mini a,
.activity-item a {
    font-weight: bold;
    color: white;
}

.struk-card {
    width: 460px;
    max-width: 95%;
    border-radius: 20px;
    padding: 28px;
    text-align: left;
}

.ticket-code {
    text-align: center;
    background: white;
    color: #111;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 16px;
    border-radius: 12px;
    margin: 18px 0;
}

.struk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.admin-page {
    min-height: calc(100vh - 70px);
    padding: 45px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-page-title {
    margin: 0 0 8px;
    font-size: 34px;
    text-align: center;
}

.admin-page-subtitle {
    margin: 0 0 35px;
    color: #ccc;
    text-align: center;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 520px;
}

.admin-profile-card {
    position: relative;
    width: 100%;
    background: rgba(31,31,31,.9);
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    transition: .3s ease;
}

.admin-profile-card:hover {
    border-color: #00f7ff;
    box-shadow: 0 0 10px #00f7ff, 0 0 25px #00f7ff, 0 0 50px rgba(0,247,255,.8);
    transform: translateY(-4px);
}

.admin-profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00f7ff;
    margin-bottom: 15px;
    box-shadow: 0 0 10px #00f7ff, 0 0 25px rgba(0,247,255,.8);
}

.admin-detail {
    text-align: center;
    background: rgba(255,255,255,.07);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
}

.btn-whatsapp {
    display: block;
    text-align: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 999px;
    font-weight: bold;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    background: rgba(0,0,0,.65);
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar a {
    color: white;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    transition: .2s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #e50914;
    transform: translateX(3px);
}

.admin-main {
    padding: 28px;
}

.admin-main.solo {
    max-width: 860px;
    margin: 0 auto;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    background: rgba(31,31,31,.9);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
}

.stat-card.wide {
    grid-column: span 2;
}

.stat-card span {
    color: #bbb;
}

.stat-card strong {
    display: block;
    font-size: 28px;
    margin-top: 8px;
}

.admin-panel {
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 22px;
}

.admin-form {
    display: grid;
    gap: 10px;
}

.inline-form {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #ffb3b3;
}

.admin-link {
    color: #7ab7ff;
    font-weight: bold;
    text-decoration: none;
    margin-right: 10px;
}

.admin-link.danger {
    color: #ff7a7a;
}

.poster-thumb {
    width: 55px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
}

.mini-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-form input,
.mini-form select {
    width: auto;
    min-width: 80px;
    margin: 0;
    padding: 8px;
}

.mini-form button {
    padding: 8px 12px;
}

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

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

@media (max-width: 900px) {
    .detail-container,
    .profile-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

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

    .seat-grid {
        grid-template-columns: repeat(5, minmax(48px, 1fr));
    }
}

@media (max-width: 650px) {
    .navbar {
        padding: 12px 15px;
        gap: 10px;
    }

    .brand {
        display: none;
    }

    .hero,
    .film-section,
    .detail-container,
    .seat-container,
    .profile-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .film-card img {
        height: 300px;
    }

    .ticket-card {
        flex-direction: column;
    }

    .ticket-side {
        align-items: flex-start;
    }

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

@media print {
    body {
        background: white;
        color: black;
    }
    .struk-card {
        box-shadow: none;
        border: 1px solid #111;
    }
    .struk-actions {
        display: none;
    }
}
