/* ===== Global Reset & Variables ===== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #c9a96e;
  --accent-rgb: 201, 169, 110;
  --accent-hover: #dbb87d;
  --accent-glow: rgba(201, 169, 110, 0.3);
  --border: #2a2a2a;
  --border-focus: #c9a96e;
  --success: #4ade80;
  --error: #f87171;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}/* ===== Ticket Page ===== */
.ticket-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-bottom: 80px;
}

/* ===== Image Gallery ===== */
.image-gallery {
    max-width: 600px;
    margin: 0 auto;
}

.poster-section {
    position: relative;
}

.gallery-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.poster-image {
    /* The poster gets a subtle entrance animation */
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Bottom CTA ===== */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 70%, rgba(10, 10, 10, 0));
    padding: 20px 16px;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-cta.visible {
    transform: translateY(0);
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.cta-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.cta-button {
    background: var(--accent);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg-overlay);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ===== Concert Summary ===== */
.concert-summary {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.concert-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.summary-value.highlight {
    color: var(--accent);
    font-weight: 700;
}

/* ===== Form ===== */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.required {
    color: var(--accent);
}

.form-group input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.error-text {
    font-size: 12px;
    color: var(--error);
    font-weight: 500;
}

/* Ticket Counter */
.ticket-counter {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.counter-btn {
    background: transparent;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
}

.counter-btn:hover:not(:disabled) {
    background: var(--bg-card-hover);
    color: var(--accent);
}

.counter-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.counter-value {
    width: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 10px 0;
}

.total-price {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.total-price strong {
    color: var(--accent);
    font-size: 16px;
}

/* ===== Payment Section ===== */
.payment-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.account-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-icon {
    font-size: 20px;
}

.account-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.copy-btn {
    background: var(--accent);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

.copy-btn.copied {
    background: var(--success);
}

.payment-notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* ===== Checkboxes ===== */
.checkbox-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
}

.checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease;
    position: absolute;
    top: 3px;
}

.checkbox-label input:checked+.checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input:checked+.checkbox-custom::after {
    transform: rotate(-45deg) scale(1);
}

.privacy-notice {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 30px;
}

/* ===== Submit Button ===== */
.submit-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Complete Modal ===== */
.complete-modal {
    border-radius: var(--radius-xl);
    max-width: 420px;
    margin: auto 16px;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.complete-content {
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.complete-icon {
    margin-bottom: 8px;
}

.complete-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.complete-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.complete-message strong {
    color: var(--accent);
}

.complete-details {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0;
}

.complete-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.complete-detail-row span:first-child {
    color: var(--text-muted);
}

.complete-detail-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.complete-detail-row .highlight {
    color: var(--accent);
}

.complete-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-top: 8px;
}

.complete-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .modal-container {
        border-radius: var(--radius-xl);
        max-height: 85vh;
        margin: auto;
    }

    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .bottom-cta {
        padding: 20px;
    }
}

@media (max-width: 380px) {
    .account-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .copy-btn {
        width: 100%;
        text-align: center;
    }

    .cta-button {
        padding: 14px 28px;
    }
}

/* ===== Check / Status Styles ===== */
.cta-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.cta-buttons .cta-button {
    flex: 1;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.cta-button.secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

.check-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.result-date {
    font-size: 13px;
    color: var(--text-muted);
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-badge.status-confirmed {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    /* Fallback */
    color: rgb(var(--accent-rgb));
}

.status-badge.status-sent {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-badge.status-used {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-primary);
}

.result-row strong {
    color: var(--accent);
}

.result-row span:first-child {
    color: var(--text-secondary);
}

.status-message-box {
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    border: 1px solid transparent;
}

.status-message-box.status-pending {
    background: rgba(255, 193, 7, 0.05);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.status-message-box.status-confirmed {
    background: rgba(var(--accent-rgb), 0.05);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.status-message-box.status-sent {
    background: rgba(76, 175, 80, 0.05);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.2);
}

.status-message-box.status-used {
    background: rgba(158, 158, 158, 0.05);
    color: #9e9e9e;
    border-color: rgba(158, 158, 158, 0.2);
}

.no-result {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.no-result p {
    color: var(--text-muted);
    font-size: 15px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-btn:hover {
    color: var(--accent-hover);
}

@media (max-width: 380px) {
    .cta-buttons {
        gap: 6px;
    }

    .cta-button {
        padding: 14px 4px;
        font-size: 13px;

    }
}

/* ===== Guestbook Modal Styles ===== */
.guestbook-section-modal {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
    text-align: left;
}

.guestbook-section-modal h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.guestbook-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guestbook-input,
.guestbook-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.guestbook-input:focus,
.guestbook-textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.guestbook-textarea {
    min-height: 80px;
    resize: vertical;
}

.guestbook-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #222121;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.guestbook-submit-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.guestbook-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guestbook-success {
    text-align: center;
    padding: 20px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: var(--radius-md);
    border: 1px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.guestbook-success .success-icon {
    font-size: 32px;
}

.guestbook-success p {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Inline Guestbook Styles (Form Modal) ===== */
.guestbook-inline-group {
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

.guestbook-label .optional {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.guestbook-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.guestbook-input-inline,
.guestbook-textarea-inline {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #222121;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.guestbook-input-inline:focus,
.guestbook-textarea-inline:focus {
    border-color: var(--accent);
    outline: none;
}

.guestbook-textarea-inline {
    min-height: 60px;
    resize: vertical;
}

/* ===== Two Pillar CTA Layout (Updates) ===== */
.bottom-cta .cta-inner {
    max-width: 100%;
    padding: 12px 16px;
    display: block;
    /* Override previous flex if any */
}

.cta-buttons {
    width: 100%;
    display: flex;
    gap: 8px;
}

.cta-button {
    flex: 1;
    height: 56px;
    /* Taller height */
    padding: 0;
    /* Reset padding for center alignment with height */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.cta-button.secondary {
    border-width: 1.5px;
    /* Thicker border for better visibility */
}

/* ===== Guestbook List View ===== */
.guestbook-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guestbook-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guestbook-header {
    display: flex;
    justify-content: space-between;
    /* aligns name left, date right */
    align-items: center;
}

.guestbook-name {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 13px;
}

.guestbook-date {
    font-size: 12px;
    color: var(--text-muted);
}

.guestbook-message {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    /* darker due to light background */
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.empty-guestbook {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}/* ===== Admin Login ===== */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.login-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
    text-align: center;
}

.login-form input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-error {
    font-size: 13px;
    color: var(--error);
    font-weight: 500;
}

.login-form button {
    background: var(--accent);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.login-form button:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* ===== Admin Page ===== */
.admin-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 0 24px 40px;
}

/* Header */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 20px;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.logout-btn:hover {
    border-color: var(--error);
    color: var(--error);
}

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card.accent .stat-number {
    color: var(--accent);
}

.stat-card.warning .stat-number {
    color: #fbbf24;
}

.stat-card.info .stat-number {
    color: #60a5fa;
}

.stat-card.success .stat-number {
    color: var(--success);
}

/* ===== Toolbar ===== */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.filter-tab {
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-secondary);
}

.filter-tab.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

.toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--border-focus);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 10px 0;
    width: 200px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.export-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.export-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Table ===== */
.table-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.reservation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.reservation-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.reservation-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    white-space: nowrap;
}

.reservation-table tbody tr:last-child td {
    border-bottom: none;
}

.reservation-table tbody tr:hover {
    background: var(--bg-card);
}

.row-num {
    color: var(--text-muted);
    font-weight: 500;
}

.cell-name {
    font-weight: 600;
    color: var(--text-primary) !important;
}

.cell-price {
    font-weight: 600;
    color: var(--accent) !important;
}

.cell-date {
    font-size: 12px;
    color: var(--text-muted) !important;
}

.empty-row {
    text-align: center !important;
    color: var(--text-muted) !important;
}

.cell-message {
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 300px;
    min-width: 200px;
    line-height: 1.5;
}

.empty-row {
    text-align: center !important;
    padding: 48px 16px !important;
    color: var(--text-muted) !important;
}

/* Toggle Buttons */
.toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
}

.toggle-btn:hover {
    border-color: var(--text-muted);
}

.toggle-btn.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--success);
    color: var(--success);
}

.toggle-btn.sent.active {
    background: rgba(96, 165, 250, 0.15);
    border-color: #60a5fa;
    color: #60a5fa;
}

.delete-btn {
    background: transparent;
    font-size: 15px;
    /* Adjusted for better fit */
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-muted);
    opacity: 0.7;
    /* Increased from 0.4 */
    border: 1px solid transparent;
}

.delete-btn:hover {
    opacity: 1;
    color: var(--error);
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
}

/* Status Row Indicator */
tr.status-pending {
    border-left: 3px solid #fbbf24;
}

tr.status-confirmed {
    border-left: 3px solid var(--success);
}

tr.status-sent {
    border-left: 3px solid #60a5fa;
}

/* ===== Mobile Cards ===== */
.mobile-cards {
    display: none;
}

.mobile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.mobile-card.status-pending {
    border-left: 3px solid #fbbf24;
}

.mobile-card.status-confirmed {
    border-left: 3px solid var(--success);
}

.mobile-card.status-sent {
    border-left: 3px solid #60a5fa;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-num {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.card-date {
    font-size: 11px;
    color: var(--text-muted);
}

.card-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.card-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.card-status.confirmed {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.card-status.sent {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.card-label {
    color: var(--text-muted);
}

.card-value {
    color: var(--text-primary);
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.card-actions .toggle-btn {
    flex: 1;
    text-align: center;
}

.card-actions .delete-btn {
    opacity: 0.6;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Delete Modal ===== */
.delete-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    margin: auto;
    animation: scaleIn 0.2s ease-out;
}

.delete-modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.delete-modal p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.delete-modal-actions {
    display: flex;
    gap: 10px;
}

.cancel-btn {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.cancel-btn:hover {
    border-color: var(--text-muted);
}

.confirm-delete-btn {
    flex: 1;
    background: var(--error);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.confirm-delete-btn:hover {
    background: #ef4444;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-page {
        padding: 0 16px 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 14px 12px;
    }

    .stat-number {
        font-size: 18px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
    }

    .toolbar-right {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .table-wrapper {
        display: none;
    }

    .mobile-cards {
        display: block;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .header-left h1 {
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 36px 24px;
    }
}