:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #1A1A1A;
  --bg-card-alt: #222222;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #999999;
  --accent-red: #C41E3A;
  --accent-bright-red: #FF0000;
  --accent-dark-red: #8B0000;
  --accent-crimson: #DC143C;
  --border-color: #330000;
  --border-subtle: #2A2A2A;
  --success-green: #4CAF50;
  --warning-orange: #FF8C00;
  --error-red: #FF3333;
  --disabled-gray: #444444;
  --disabled-dark: #333333;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
  --shadow-glow-red: 0 0 20px rgba(196,30,58,0.5);

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  --nav-height: 56px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-bright-red);
}

button {
    cursor: pointer;
    font-family: inherit;
}

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

.main-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #1a0000 0%, #000000 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 2px solid var(--accent-dark-red);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.3);
}

.main-header h1 {
    font-size: clamp(1.8rem, 5vw, 3em);
    color: var(--error-red);
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.5), 0 0 40px rgba(139, 0, 0, 0.5);
    margin-bottom: 15px;
    letter-spacing: 3px;
    animation: flicker 4s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    52% { opacity: 0.85; }
    54% { opacity: 1; }
}

.subtitle {
    font-size: 1.2em;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.page-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #1a0000 0%, #000000 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border: 2px solid var(--accent-dark-red);
}

.page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5em);
    color: var(--error-red);
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
    margin-bottom: 10px;
}

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

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(26, 0, 0, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23000" width="1200" height="400"/><text x="600" y="200" font-size="80" fill="%238b0000" text-anchor="middle" opacity="0.1">ESCAPE ROOM</text></svg>');
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 50px;
    border: 2px solid var(--accent-dark-red);
}

.hero-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.5em);
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 35px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-dark-red);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--error-red);
    font-size: 1.4em;
    margin-bottom: 12px;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
}

.notice {
    background: linear-gradient(135deg, #1a0000, #000);
    padding: 30px;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--accent-dark-red);
    margin-bottom: 40px;
}

.notice h3 {
    color: var(--error-red);
    margin-bottom: 18px;
    font-size: 1.4em;
}

.notice ul {
    list-style: none;
    padding: 0;
}

.notice li {
    padding: 10px 0;
    color: #ccc;
    position: relative;
    padding-left: 25px;
}

.notice li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

.booking-form,
.cancel-form {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    color: var(--error-red);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1em;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #000;
    border: 2px solid var(--disabled-gray);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1em;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-bright-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.35);
    background: #0a0a0a;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-red);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(196, 30, 58, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.8), 0 0 35px rgba(196, 30, 58, 0.4);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.error-message {
    color: var(--error-red);
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

.captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-wrapper input {
    flex: 1;
}

.captcha-image {
    width: 130px;
    height: 45px;
    cursor: pointer;
    border: 2px solid var(--disabled-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-normal);
}

.captcha-image:hover {
    border-color: var(--accent-dark-red);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-dark-red), #cc0000);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #aa0000, var(--accent-bright-red));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.btn-secondary {
    background: var(--bg-card-alt);
    color: #ccc;
    border: 2px solid var(--disabled-gray);
}

.btn-secondary:hover:not(:disabled) {
    background: #333;
    border-color: #666;
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #800000, #b30000);
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #a00000, #e00000);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #8b4500, #cc6600);
    color: #fff;
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #aa5500, #ee7700);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2em;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.success-header {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #001a00, #000);
    border-radius: var(--radius-lg);
    margin-bottom: 35px;
    border: 2px solid #006400;
}

.success-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8em);
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    margin-bottom: 10px;
}

.booking-info-card {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--disabled-gray);
    margin-bottom: 30px;
}

.info-item.highlight {
    background: linear-gradient(135deg, #1a0000, #000);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-dark-red);
    text-align: center;
}

.info-item.highlight label {
    display: block;
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 8px;
}

.info-item.highlight value {
    display: block;
    color: var(--error-red);
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background: #111;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.info-item label {
    display: block;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 8px;
}

info-item value {
    color: #fff;
    font-size: 1.2em;
    font-weight: 500;
}

.status-pending {
    color: #ffa500 !important;
}

.status-used {
    color: #00ff00 !important;
}

.status-cancelled {
    color: #888 !important;
}

.status-expired {
    color: #ff0000 !important;
}

.notice-box {
    padding: 25px 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border-left: 5px solid;
}

.notice-box.warning {
    background: linear-gradient(135deg, #2a1a00, #1a0f00);
    border-color: var(--warning-orange);
}

.notice-box.error {
    background: linear-gradient(135deg, #2a0000, #1a0000);
    border-color: var(--error-red);
}

.notice-box h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.notice-box.warning h3 {
    color: var(--warning-orange);
}

.notice-box.error h3 {
    color: var(--error-red);
}

.notice-box ul {
    list-style: none;
    padding: 0;
}

.notice-box li {
    padding: 8px 0;
    color: #ddd;
    position: relative;
    padding-left: 22px;
}

.notice-box li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--warning-orange);
    font-size: 1.3em;
}

.search-form {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-subtle);
    text-align: center;
}

.search-form .form-group {
    max-width: 400px;
    margin: 0 auto 25px;
}

.main-footer {
    text-align: center;
    padding: 24px 20px 30px;
    color: #666;
    margin-top: 18px;
    border-top: 1px solid #222;
}

.footer-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px auto 0;
}

.footer-action-link {
    flex: 1;
    max-width: 160px;
    padding: 13px 22px;
    background: transparent;
    border: 1px solid var(--accent-dark-red);
    border-radius: 24px;
    color: #ddd;
    text-align: center;
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 1px;
}

.footer-action-link:active,
.footer-action-link:hover {
    background: rgba(139, 0, 0, 0.15);
    color: #fff;
}

.footer-actions-fixed {
    margin: 0 auto 12px;
    max-width: 400px;
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top: 4px solid var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: bold;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 350px;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    background: linear-gradient(135deg, #006400, #228B22);
    border-left: 5px solid #00ff00;
}

.toast.error {
    background: linear-gradient(135deg, var(--accent-dark-red), #cc0000);
    border-left: 5px solid var(--error-red);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.event-header {
    text-align: center;
    padding: 35px 20px 30px;
    background: linear-gradient(135deg, #1a0000 0%, #000000 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid var(--accent-dark-red);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.3);
}

.event-title {
    font-size: 1.1em;
    color: var(--error-red);
    margin-bottom: 10px;
    font-weight: normal;
    letter-spacing: 1px;
}

.event-name {
    font-size: clamp(1.2rem, 3.5vw, 1.6em);
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 2px;
    line-height: 1.4;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.checkin-notice {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-md);
    color: var(--error-red);
    font-size: 0.95em;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.address-info {
    color: var(--text-muted);
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.address-icon {
    font-size: 1.2em;
}

.calendar-section {
    margin-bottom: 30px;
}

.calendar-container {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border-radius: 12px;
    border: 2px solid var(--accent-red);
    padding: 20px;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.2);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-title {
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 2px;
    min-width: 140px;
    text-align: center;
}

.calendar-nav-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border: 2px solid var(--accent-red);
    background: transparent;
    color: var(--accent-red);
    font-size: 1.5em;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
    transform: scale(1.05);
}

.calendar-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--disabled-gray);
    color: var(--disabled-gray);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    padding: 12px 5px;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.05em;
    background: rgba(196, 30, 58, 0.08);
    border-radius: var(--radius-md);
    letter-spacing: 1px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.1em;
    font-weight: 500;
    cursor: default;
    transition: all var(--transition-normal);
    background: #111;
    border: 1px solid transparent;
    color: #555;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.calendar-day.available {
    color: #fff;
    cursor: pointer;
}

.calendar-day:hover:not(.disabled):not(.empty):not(.selected):not(.no-slots) {
    background: #222;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.3);
    transform: scale(1.05);
}

.calendar-day:active:not(.disabled):not(.empty):not(.selected):not(.no-slots) {
    transform: scale(0.98);
}

.calendar-day.today {
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-weight: bold;
}

.calendar-day.today.no-slots {
    color: #555;
    border-color: #333;
}

.calendar-day.selected {
    background: var(--accent-red) !important;
    color: #fff !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.6);
    transform: scale(1.05);
    font-weight: bold;
    animation: pulse-glow 2s infinite;
}

.calendar-day.disabled {
    color: #555;
    cursor: not-allowed;
    background: #0a0a0a;
}

.calendar-day.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.calendar-day.no-slots {
    color: #555;
    cursor: not-allowed;
    background: #0a0a0a;
}

.calendar-day.no-slots:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
    color: #666;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
}

.slots-section {
    margin-bottom: 30px;
}

.slots-title {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.slots-list {
    min-height: 200px;
}

.no-slots-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border-radius: 12px;
    border: 1px dashed var(--border-subtle);
}

.slot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 2px solid var(--border-subtle);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.slot-card.clickable:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.4);
    transform: translateX(5px);
}

.slot-card.clickable:active {
    border-color: var(--accent-bright-red);
    box-shadow: var(--shadow-glow-red);
}

.slot-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.slot-card.disabled:hover {
    transform: none;
    border-color: var(--border-subtle);
    box-shadow: none;
}

.slot-info {
    flex: 1;
}

.slot-date-time {
    color: #fff;
    font-size: 1.05em;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.slot-capacity {
    color: #888;
    font-size: 0.9em;
}

.slot-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 1px;
}

.slot-status.available {
    background: rgba(255, 0, 0, 0.15);
    color: var(--accent-bright-red);
    border: 1px solid var(--accent-bright-red);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 35px rgba(255, 0, 0, 0.3);
    }
}

.slot-status.full {
    background: rgba(100, 0, 0, 0.3);
    color: #cc6666;
    border: 1px solid #662222;
}

.slot-status.expired {
    background: rgba(80, 80, 80, 0.2);
    color: #666;
    border: 1px solid #444;
}

.slots-loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1em;
}

.slots-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.cancel-search-form {
    max-width: 500px;
    margin: 0 auto 40px;
}

.booking-results {
    margin-bottom: 40px;
}

.results-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #1a0000, #000);
    border-radius: 10px;
    border: 2px solid var(--accent-dark-red);
}

.results-header h2 {
    color: var(--error-red);
    font-size: 1.5em;
    letter-spacing: 1px;
}

.booking-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.booking-record-card {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border-radius: 12px;
    border: 2px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: slideUp 0.4s ease-out;
}

.booking-record-card:hover {
    border-color: var(--accent-dark-red);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.25);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: linear-gradient(135deg, #1a0000, #000);
    border-bottom: 1px solid var(--border-subtle);
}

.record-index {
    color: var(--error-red);
    font-weight: bold;
    font-size: 1.05em;
    letter-spacing: 1px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 1px;
}

.status-badge.status-pending {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.status-badge.status-used {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00aa00;
}

.status-badge.status-cancelled {
    background: rgba(136, 136, 136, 0.15);
    color: #888;
    border: 1px solid #666;
}

.status-badge.status-expired {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid #cc0000;
}

.record-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.record-icon {
    font-size: 1.3em;
    width: 28px;
    text-align: center;
}

.record-text {
    color: #e0e0e0;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.record-qr {
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border-subtle);
}

.record-qr-container {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.record-qr-image {
    width: 220px;
    height: 220px;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.record-qr-tip {
    color: #999;
    font-size: 0.78em;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.record-actions {
    padding: 18px 22px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.btn-cancel {
    min-width: 140px;
    padding: 12px 28px;
    font-size: 1.05em;
}

.btn-disabled {
    background: #222;
    color: #666;
    border: 2px solid #333;
    cursor: not-allowed;
    padding: 12px 28px;
    font-size: 1em;
    border-radius: var(--radius-md);
    letter-spacing: 1px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
}

.modal-dialog {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border-radius: 12px;
    border: 2px solid var(--accent-dark-red);
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.show .modal-dialog {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    color: var(--error-red);
    font-size: 1.4em;
    margin: 0;
    letter-spacing: 1px;
}

.modal-body {
    padding: 24px;
}

.modal-warning {
    color: #fff;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-sub-warning {
    color: var(--error-red);
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 20px;
}

.modal-booking-info {
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-info-item {
    color: #e0e0e0;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.modal-actions {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid var(--border-subtle);
}

.modal-actions .btn {
    flex: 1;
    max-width: 150px;
}

.contact-service-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.contact-item {
    text-align: center;
    width: 100%;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-phone {
    display: inline-block;
    color: var(--error-red);
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 8px 20px;
    border: 1px solid var(--accent-dark-red);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.contact-phone:hover {
    background: rgba(139, 0, 0, 0.15);
}

.contact-qr-wrap {
    display: flex;
    justify-content: center;
    padding: 12px;
}

.contact-qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.contact-qr-fallback {
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #111;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-size: 0.95em;
    line-height: 1.6;
}

.cancel-success .success-icon {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark-red), #cc0000);
    color: #fff;
    font-size: 3em;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
}

.booking-page-mobile {
    background-color: #000;
    min-height: 100vh;
    position: relative;
}

.booking-main {
    padding: 20px 16px;
    padding-bottom: 156px;
    min-height: 100vh;
}

.slot-confirmation {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border: 2px solid var(--accent-red);
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 25px rgba(196, 30, 58, 0.2);
}

.slot-date-display {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.date-main {
    font-size: clamp(1.5rem, 5vw, 2em);
    color: #fff;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    margin-bottom: 6px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.date-weekday {
    font-size: 1.05em;
    color: var(--accent-red);
    font-weight: 500;
    letter-spacing: 2px;
}

.slot-time-display,
.slot-capacity-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #222;
}

.slot-time-display:last-of-type,
.slot-capacity-display:last-of-type {
    border-bottom: none;
}

.time-label,
.capacity-label {
    color: #888;
    font-size: 0.95em;
    letter-spacing: 1px;
}

.time-value {
    color: #fff;
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.capacity-value {
    color: var(--accent-bright-red);
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.booking-form-section {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border: 2px solid var(--border-subtle);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-booking-form .form-group {
    margin-bottom: 26px;
    position: relative;
}

.mobile-booking-form .form-group label {
    display: block;
    color: var(--error-red);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1em;
    letter-spacing: 1px;
}

.mobile-booking-form .form-group input[type="text"],
.mobile-booking-form .form-group input[type="tel"],
.mobile-booking-form .form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: #000;
    border: 2px solid var(--disabled-gray);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.05em;
    transition: all var(--transition-normal);
    font-family: inherit;
    -webkit-appearance: none;
}

.mobile-booking-form .form-group input:focus,
.mobile-booking-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-bright-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.35);
    background: #0a0a0a;
}

.mobile-booking-form .form-group input.error,
.mobile-booking-form .form-group textarea.error {
    border-color: var(--error-red);
    animation: shake 0.5s;
}

.char-count {
    position: absolute;
    right: 12px;
    top: 43px;
    color: #666;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.people-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #000;
    border: 2px solid var(--disabled-gray);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: border-color var(--transition-normal);
}

.people-selector:focus-within {
    border-color: var(--accent-bright-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.35);
}

.selector-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid var(--accent-red);
    background: transparent;
    color: var(--accent-red);
    font-size: 24px;
    font-weight: bold;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selector-btn:hover:not(:disabled) {
    background: var(--accent-red);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
}

.selector-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.selector-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--disabled-gray);
    color: var(--disabled-gray);
}

.selector-display {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.count-number {
    font-size: 2em;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1;
}

.count-label {
    font-size: 0.9em;
    color: #888;
    letter-spacing: 1px;
}

.mobile-booking-form .error-message {
    color: var(--error-red);
    font-size: 0.88em;
    margin-top: 6px;
    display: block;
    min-height: 18px;
    letter-spacing: 0.5px;
    animation: fadeIn 0.3s ease;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, #000 80%, transparent);
    z-index: 999;
}

.btn-submit-booking {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 17px 32px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-bright-red));
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.45);
    position: relative;
    overflow: hidden;
}

.btn-submit-booking::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit-booking:active::before {
    width: 300px;
    height: 300px;
}

.btn-submit-booking:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(196, 30, 58, 0.65);
}

.btn-submit-booking:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit-booking:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

.error-section {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border: 2px solid var(--accent-dark-red);
    border-radius: 14px;
    min-height: calc(150vh - 150px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.error-section h2 {
    color: var(--error-red);
    font-size: 1.6em;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.error-section p {
    color: #aaa;
    font-size: 1.05em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.existing-booking-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.dialog-content {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border: 2px solid var(--accent-red);
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(196, 30, 58, 0.5);
    animation: slideUp 0.4s ease-out;
}

.dialog-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 2px solid var(--border-subtle);
}

.dialog-header h3 {
    color: var(--warning-orange);
    font-size: 1.35em;
    margin: 0;
    letter-spacing: 2px;
}

.dialog-body {
    padding: 24px;
}

.dialog-body > p:first-child {
    color: #e0e0e0;
    font-size: 1.05em;
    margin-bottom: 18px;
    line-height: 1.6;
}

.existing-info {
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #888;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.info-row .value {
    color: #fff;
    font-size: 1.05em;
    font-weight: 500;
    letter-spacing: 1px;
}

.info-row .value.code {
    color: var(--accent-red);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

.dialog-tip {
    color: var(--error-red) !important;
    font-size: 0.92em !important;
    text-align: center;
    padding: 12px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 6px;
    margin: 0 !important;
}

.dialog-footer {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid var(--border-subtle);
}

.dialog-footer .btn {
    flex: 1;
    max-width: 160px;
    padding: 13px 24px;
    font-size: 0.98em;
}

.success-page-mobile {
    background-color: #000;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.cancel-page {
    padding-top: var(--nav-height);
}

.booking-page-mobile {
    padding-top: var(--nav-height);
}

.select-page {
    padding-top: var(--nav-height);
}

.success-main {
    padding: 24px 20px 120px;
    min-height: calc(100vh - var(--nav-height));
}

.success-icon-container {
    text-align: center;
    padding: 40px 0 32px;
}

.success-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-bright-red));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(196, 30, 58, 0.6), 0 0 80px rgba(255, 0, 0, 0.3);
    animation: successPulse 2s ease-in-out infinite;
    position: relative;
}

.success-circle::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 58, 0.3);
    animation: ripple 2s ease-out infinite;
}

.success-circle::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(196, 30, 58, 0.15);
    animation: ripple 2s ease-out infinite 0.5s;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(196, 30, 58, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(196, 30, 58, 0.8), 0 0 100px rgba(255, 0, 0, 0.4); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.checkmark {
    width: 52px;
    height: 52px;
    z-index: 1;
}

.success-text {
    color: #fff;
    font-size: 1.3em;
    font-weight: 500;
    margin-top: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
}

.event-header-success {
    background: linear-gradient(135deg, #1a0000 0%, #000000 100%);
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 24px;
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 25px rgba(196, 30, 58, 0.25);
    text-align: center;
}

.event-location-tag {
    display: inline-block;
    color: var(--accent-red);
    font-size: 0.95em;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.event-name-large {
    color: #fff;
    font-size: clamp(1.2rem, 3.5vw, 1.45em);
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.checkin-notice-highlight {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid var(--accent-red);
    border-radius: 6px;
    color: var(--error-red);
    font-size: 0.92em;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    animation: noticeGlow 2s ease-in-out infinite;
}

@keyframes noticeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(196, 30, 58, 0.3); }
    50% { box-shadow: 0 0 20px rgba(196, 30, 58, 0.6), 0 0 30px rgba(255, 51, 51, 0.3); }
}

.address-info-success {
    color: var(--text-muted);
    font-size: 0.92em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link-inline {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.nav-link-inline:hover {
    color: var(--accent-crimson);
    text-shadow: 0 0 8px rgba(196, 30, 58, 0.6);
}

.qr-section {
    text-align: center;
    margin-bottom: 28px;
}

.qr-container {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(196, 30, 58, 0.15);
    position: relative;
}

.qr-container::before {
    content: '预约码';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-red), var(--accent-bright-red));
    color: #fff;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 1.5px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.4);
}

.qr-image {
    width: 220px;
    height: 220px;
    display: block;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.qr-instruction {
    color: #aaa;
    font-size: 0.88em;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

.booking-detail-card {
    background: linear-gradient(145deg, var(--bg-card), #0d0d0d);
    border: 2px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.detail-label {
    color: #888;
    font-size: 0.95em;
    min-width: 80px;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #fff;
    font-size: 0.98em;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    flex: 1;
    margin-left: 16px;
}

.location-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    line-height: 1.6;
}

.nav-link-text {
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.nav-link-text:hover {
    color: var(--accent-crimson);
}

.code-value {
    color: var(--accent-red) !important;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 0.85em !important;
    text-shadow: 0 0 8px rgba(196, 30, 58, 0.4);
}

.detail-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
    margin: 4px 0;
}

.action-buttons-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, #000 70%, transparent);
    display: flex;
    gap: 12px;
    justify-content: center;
    z-index: 99;
}

.btn-cancel-booking {
    flex: 1;
    max-width: 160px;
    padding: 15px 28px;
    background: transparent;
    border: 2px solid var(--accent-red);
    border-radius: 26px;
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1.5px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-cancel-booking:hover,
.btn-cancel-booking:active {
    background: rgba(196, 30, 58, 0.15);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.4);
}

.btn-buy-ticket {
    flex: 1;
    max-width: 180px;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-bright-red));
    border: none;
    border-radius: 26px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.45);
    position: relative;
    overflow: hidden;
}

.btn-buy-ticket::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-buy-ticket:active::before {
    width: 250px;
    height: 250px;
}

.btn-buy-ticket:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(196, 30, 58, 0.65);
}

.btn-buy-ticket:active:not(:disabled) {
    transform: translateY(0);
}

.ticket-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ticket-qr-modal.is-open {
    display: flex;
}

.ticket-qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.ticket-qr-dialog {
    position: relative;
    width: min(86vw, 340px);
    padding: 26px 22px 24px;
    background: linear-gradient(145deg, var(--bg-card), #080808);
    border: 2px solid rgba(196, 30, 58, 0.45);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(196, 30, 58, 0.2);
}

.ticket-qr-dialog h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.18em;
    letter-spacing: 2px;
}

.ticket-qr-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ticket-qr-box {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
}

.ticket-qr-image {
    display: block;
    width: 230px;
    height: 230px;
}

.ticket-qr-tip {
    margin: 16px 0 0;
    color: #ddd;
    font-size: 0.92em;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .container {
        padding: var(--spacing-md);
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .hero-section {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }

    .main-header {
        padding: 40px 16px 30px;
    }

    .main-header h1 {
        font-size: clamp(1.5rem, 4.5vw, 2em);
    }

    .hero-section {
        padding: 50px 25px;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

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

    .booking-form,
    .cancel-form,
    .search-form {
        padding: 25px 20px;
    }

    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1.1em;
    }

    .info-item.highlight value {
        font-size: 1.5em;
    }

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

    .cancel-search-form {
        padding: 25px 20px;
    }

    .booking-record-card {
        border-radius: 10px;
    }

    .record-header {
        padding: 14px 16px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .record-body {
        padding: 16px;
        gap: 10px;
    }

    .record-text {
        font-size: 1em;
    }

    .record-actions {
        padding: 14px 16px;
    }

    .record-qr-image {
        width: 220px;
        height: 220px;
    }

    .btn-cancel,
    .btn-disabled {
        width: 100%;
        padding: 14px 20px;
    }

    .modal-dialog {
        width: 95%;
        margin: 20px;
    }

    .modal-header h3 {
        font-size: 1.2em;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .event-header {
        padding: 25px 15px 20px;
    }

    .event-title {
        font-size: 0.9em;
    }

    .event-name {
        font-size: 1.3em;
    }

    .checkin-notice {
        font-size: 0.85em;
        padding: 10px 18px;
    }

    .address-info {
        font-size: 0.9em;
        flex-direction: column;
        gap: 5px;
    }

    .calendar-container {
        padding: 15px;
    }

    .calendar-title {
        font-size: 1.2em;
    }

    .calendar-nav-btn {
        width: 38px;
        height: 38px;
        min-height: 38px;
        font-size: 1.3em;
    }

    .weekday {
        padding: 10px 3px;
        font-size: 0.9em;
    }

    .calendar-day {
        font-size: 1em;
        border-radius: 6px;
        min-height: 40px;
    }

    .slot-card {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .slot-status {
        align-self: stretch;
        text-align: center;
    }

    .results-header h2 {
        font-size: 1.2em;
    }

    .record-index {
        font-size: 0.95em;
    }

    .status-badge {
        font-size: 0.85em;
        padding: 5px 10px;
    }

    .modal-booking-info {
        padding: 14px;
    }

    .modal-info-item {
        font-size: 0.95em;
    }

    .booking-main {
        padding: 16px 12px;
        padding-bottom: 146px;
    }

    .slot-confirmation {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .date-main {
        font-size: 1.7em;
    }

    .date-weekday {
        font-size: 0.95em;
    }

    .time-value,
    .capacity-value {
        font-size: 1.05em;
    }

    .booking-form-section {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .mobile-booking-form .form-group input[type="text"],
    .mobile-booking-form .form-group input[type="tel"],
    .mobile-booking-form .form-group textarea {
        padding: 14px 15px;
        font-size: 1em;
    }

    .selector-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 20px;
    }

    .count-number {
        font-size: 1.7em;
    }

    .fixed-footer {
        padding: 12px 16px;
    }

    .btn-submit-booking {
        padding: 15px 28px;
        font-size: 1.08em;
        letter-spacing: 2px;
        border-radius: 26px;
    }

    .dialog-content {
        width: 94%;
        border-radius: 12px;
    }

    .dialog-header h3 {
        font-size: 1.2em;
    }

    .dialog-body {
        padding: 18px;
    }

    .dialog-footer {
        flex-direction: column;
        padding: 16px 18px;
    }

    .dialog-footer .btn {
        max-width: none;
        width: 100%;
    }

    .more-menu {
        right: 12px;
        min-width: 140px;
    }

    .more-menu a {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .success-main {
        padding: 18px 14px 110px;
    }

    .success-circle {
        width: 86px;
        height: 86px;
    }

    .success-circle::before {
        width: 104px;
        height: 104px;
    }

    .success-circle::after {
        width: 122px;
        height: 122px;
    }

    .checkmark {
        width: 44px;
        height: 44px;
    }

    .success-text {
        font-size: 1.15em;
        margin-top: 14px;
    }

    .event-header-success {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .event-name-large {
        font-size: 1.25em;
    }

    .checkin-notice-highlight {
        font-size: 0.84em;
        padding: 8px 16px;
    }

    .address-info-success {
        font-size: 0.85em;
        flex-direction: column;
        gap: 4px;
    }

    .qr-image {
        width: 190px;
        height: 190px;
    }

    .qr-container {
        padding: 13px;
    }

    .qr-container::before {
        font-size: 0.65em;
        padding: 3px 11px;
    }

    .qr-instruction {
        font-size: 0.82em;
        margin-top: 12px;
    }

    .booking-detail-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .detail-row {
        padding: 11px 0;
    }

    .detail-label {
        font-size: 0.88em;
    }

    .detail-value {
        font-size: 0.9em;
    }

    .code-value {
        font-size: 0.78em !important;
    }

    .action-buttons-bottom {
        padding: 12px 14px;
    }

    .btn-cancel-booking,
    .btn-buy-ticket {
        padding: 13px 22px;
        font-size: 0.95em;
        border-radius: 23px;
    }
}

@media (max-width: 380px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 12px;
    }

    .main-header {
        padding: 30px 12px 20px;
        border-radius: var(--radius-md);
    }

    .main-header h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .event-header {
        padding: 20px 12px 16px;
        border-radius: var(--radius-md);
    }

    .event-title {
        font-size: 0.8em;
    }

    .event-name {
        font-size: 1.15em;
        letter-spacing: 1px;
    }

    .checkin-notice {
        font-size: 0.78em;
        padding: 8px 14px;
    }

    .calendar-container {
        padding: 12px;
        border-radius: var(--radius-md);
    }

    .calendar-title {
        font-size: 1.1em;
        letter-spacing: 1px;
    }

    .calendar-nav-btn {
        width: 34px;
        height: 34px;
        min-height: 34px;
        font-size: 1.2em;
    }

    .weekday {
        padding: 8px 2px;
        font-size: 0.82em;
    }

    .calendar-day {
        font-size: 0.92em;
        border-radius: 4px;
        min-height: 36px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .slots-title {
        font-size: 1.15em;
    }

    .slot-card {
        padding: 12px 14px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .slot-date-time {
        font-size: 0.95em;
    }

    .slot-status {
        padding: 6px 12px;
        font-size: 0.82em;
    }

    .booking-main {
        padding: 14px 10px;
        padding-bottom: 136px;
    }

    .slot-confirmation {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .date-main {
        font-size: 1.5em;
        letter-spacing: 2px;
    }

    .date-weekday {
        font-size: 0.88em;
    }

    .time-label,
    .capacity-label {
        font-size: 0.86em;
    }

    .time-value {
        font-size: 0.98em;
    }

    .capacity-value {
        font-size: 1.05em;
    }

    .booking-form-section {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .mobile-booking-form .form-group {
        margin-bottom: 22px;
    }

    .mobile-booking-form .form-group label {
        font-size: 0.92em;
    }

    .mobile-booking-form .form-group input[type="text"],
    .mobile-booking-form .form-group input[type="tel"],
    .mobile-booking-form .form-group textarea {
        padding: 13px 14px;
        font-size: 0.96em;
    }

    .people-selector {
        padding: 10px 12px;
    }

    .selector-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
    }

    .count-number {
        font-size: 1.6em;
    }

    .count-label {
        font-size: 0.84em;
    }

    .fixed-footer {
        padding: 10px 14px;
    }

    .btn-submit-booking {
        padding: 14px 24px;
        font-size: 1.02em;
        letter-spacing: 2px;
        border-radius: 24px;
    }

    .success-main {
        padding: 16px 12px 100px;
    }

    .success-circle {
        width: 76px;
        height: 76px;
    }

    .success-circle::before {
        width: 92px;
        height: 92px;
    }

    .success-circle::after {
        width: 108px;
        height: 108px;
    }

    .checkmark {
        width: 38px;
        height: 38px;
    }

    .success-text {
        font-size: 1.08em;
        margin-top: 12px;
    }

    .event-header-success {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .event-location-tag {
        font-size: 0.86em;
    }

    .event-name-large {
        font-size: 1.15em;
        letter-spacing: 1px;
    }

    .checkin-notice-highlight {
        font-size: 0.78em;
        padding: 7px 14px;
    }

    .address-info-success {
        font-size: 0.8em;
    }

    .qr-image {
        width: 170px;
        height: 170px;
    }

    .qr-container {
        padding: 11px;
        border-radius: 10px;
    }

    .qr-container::before {
        font-size: 0.6em;
        padding: 2px 10px;
    }

    .qr-instruction {
        font-size: 0.76em;
    }

    .booking-detail-card {
        padding: 16px 14px;
        border-radius: 10px;
    }

    .detail-row {
        padding: 10px 0;
    }

    .detail-label {
        font-size: 0.82em;
        min-width: 70px;
    }

    .detail-value {
        font-size: 0.86em;
    }

    .code-value {
        font-size: 0.74em !important;
        letter-spacing: 1px;
    }

    .action-buttons-bottom {
        padding: 10px 12px;
        gap: 10px;
    }

    .btn-cancel-booking,
    .btn-buy-ticket {
        padding: 12px 18px;
        font-size: 0.9em;
        border-radius: 21px;
    }

    .btn-cancel-booking {
        max-width: 140px;
    }

    .btn-buy-ticket {
        max-width: 160px;
    }

    .dialog-content {
        width: 96%;
        border-radius: 10px;
    }

    .dialog-header {
        padding: 20px 18px 14px;
    }

    .dialog-header h3 {
        font-size: 1.1em;
    }

    .dialog-body {
        padding: 16px;
    }

    .dialog-body > p:first-child {
        font-size: 0.96em;
    }

    .existing-info {
        padding: 14px;
    }

    .info-row {
        padding: 8px 0;
    }

    .info-row .label {
        font-size: 0.88em;
    }

    .info-row .value {
        font-size: 0.96em;
    }

    .dialog-tip {
        font-size: 0.86em !important;
        padding: 10px;
    }

    .results-header {
        padding: 16px 14px;
        border-radius: var(--radius-md);
    }

    .results-header h2 {
        font-size: 1.1em;
    }

    .record-header {
        padding: 12px 14px;
    }

    .record-index {
        font-size: 0.88em;
    }

    .status-badge {
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .record-body {
        padding: 14px;
    }

    .record-qr-image {
        width: 220px;
        height: 220px;
    }

    .record-text {
        font-size: 0.94em;
    }

    .modal-dialog {
        width: 96%;
        border-radius: 10px;
    }

    .modal-header {
        padding: 20px 18px 14px;
    }

    .modal-header h3 {
        font-size: 1.15em;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-booking-info {
        padding: 14px;
    }

    .modal-info-item {
        font-size: 0.9em;
    }

    .page-header {
        padding: 30px 16px 24px;
        border-radius: var(--radius-md);
    }

    .page-header h1 {
        font-size: 1.4em;
    }

    .booking-form,
    .cancel-form,
    .search-form {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .form-group label {
        font-size: 0.92em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.96em;
    }

    .notice {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .notice h3 {
        font-size: 1.2em;
    }

    .feature-card {
        padding: 25px 18px;
    }

    .feature-icon {
        font-size: 2.8em;
    }

    .feature-card h3 {
        font-size: 1.2em;
    }

    .feature-card p {
        font-size: 0.9em;
    }

    .booking-info-card {
        padding: 25px 18px;
        border-radius: var(--radius-md);
    }

    .info-item.highlight {
        padding: 16px;
    }

    .info-item.highlight value {
        font-size: 1.6em;
    }

    .notice-box {
        padding: 20px 18px;
    }

    .notice-box h3 {
        font-size: 1.15em;
    }

    .cancel-search-form {
        padding: 20px 16px;
    }

    .booking-record-card {
        border-radius: 8px;
    }

    .error-section {
        padding: 60px 20px;
        border-radius: var(--radius-md);
    }

    .error-icon {
        font-size: 3em;
    }

    .error-section h2 {
        font-size: 1.4em;
    }

    .error-section p {
        font-size: 0.96em;
    }

    .toast {
        padding: 12px 18px;
        font-size: 0.88em;
        max-width: 280px;
        left: 10px;
        right: 10px;
    }

    .main-footer {
        padding: 24px 16px;
        font-size: 0.88em;
    }
}

/* === Project List Styles === */
.project-list-header {
    text-align: center;
    padding: 24px 16px 16px;
}

.project-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.project-list-section {
    padding: 0 16px 24px;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}

.project-card {
    background: #1A1A1A;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:active {
    transform: scale(0.98);
}

.project-card-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.project-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card-cover.no-image {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-placeholder {
    font-size: 24px;
    font-weight: 700;
    color: #C41E3A;
    text-align: center;
    padding: 20px;
}

.project-card-info {
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.project-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.project-card-location {
    font-size: 13px;
    color: #B0B0B0;
    margin: 0;
    line-height: 1.6;
}

.no-projects-message {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    padding: 4px 0;
}
