/* ============================================================
   Taimeiju Travel - Global Stylesheet
   ============================================================ */

/* ---------- 1. CSS Reset / Normalize ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans Thai", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
    display: block;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ---------- 2. CSS Variables ---------- */
:root {
    /* Primary Colors */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #0EA5E9;
    --nav-dark: #242B6E;

    /* Accent Colors */
    --accent-red: #A51931;

    /* Background Colors */
    --bg: #F4F7FB;
    --card: #FFFFFF;
    --bg-secondary: #EFF6FF;

    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    /* Border Colors */
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Border Radius */
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

    /* Status Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --success-dark: #065F46;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --warning-dark: #92400E;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --danger-dark: #991B1B;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --info-dark: #1E40AF;
    --purple: #8B5CF6;
    --purple-light: #EDE9FE;
    --purple-dark: #5B21B6;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --gray-dark: #374151;

    /* Layout */
    --container-max: 1200px;
    --navbar-height: 64px;
    --sidebar-width: 240px;
    --topbar-height: 60px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-toast: 1100;
}

/* ---------- 3. Base Styles ---------- */
a {
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ---------- 4. Utility Classes ---------- */

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 32px; }
.my-3 { margin-top: 12px; margin-bottom: 12px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.my-5 { margin-top: 24px; margin-bottom: 24px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }

/* Text Sizes */
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Truncate */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 5. Button Styles ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    gap: 6px;
    line-height: 1.4;
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-primary:active {
    background: #1E40AF;
    border-color: #1E40AF;
}

/* Secondary / Outline Button */
.btn-secondary,
.btn-outline {
    background: #fff;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
}

/* Danger Button */
.btn-danger {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.btn-danger:hover {
    background: #8B1528;
    border-color: #8B1528;
    color: #fff;
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

/* Sizes */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    cursor: pointer;
    font-size: inherit;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Button Group */
.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-radius: 0;
    margin-left: -1px;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    margin-left: 0;
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- 6. Card Styles ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2,
.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

/* ---------- 7. Form Styles ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--accent-red);
    margin-left: 2px;
}

.form-control,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: #fff;
    color: var(--text-primary);
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled,
.form-input:disabled,
.form-select:disabled {
    background: var(--bg);
    cursor: not-allowed;
    color: var(--text-muted);
}

/* Select with custom arrow */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

/* Form Help & Error */
.form-help {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-control.is-invalid,
.form-input.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus,
.form-input.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Form Row */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #CBD5E1;
    transition: 0.3s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .switch-slider {
    background: var(--primary);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .form-control:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group-text:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.input-group-text:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

/* ---------- 8. Table Styles ---------- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border);
}

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

thead th {
    background: var(--bg);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 14px;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg);
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-actions form {
    display: inline;
}

.table-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.table-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ---------- 9. Badge / Status Tag Styles ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

/* Status Badges */
.badge-pending,
.badge-amber {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.badge-paid,
.badge-blue {
    background: var(--info-light);
    color: var(--info-dark);
}

.badge-confirmed,
.badge-green,
.badge-success {
    background: var(--success-light);
    color: var(--success-dark);
}

.badge-completed,
.badge-gray,
.badge-secondary {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.badge-cancelled,
.badge-red,
.badge-danger {
    background: var(--danger-light);
    color: var(--danger-dark);
}

.badge-refunded,
.badge-purple {
    background: var(--purple-light);
    color: var(--purple-dark);
}

.badge-info {
    background: var(--info-light);
    color: var(--info-dark);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
}

/* ---------- 10. Pagination Styles ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 500;
}

.pagination .disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.pagination .dots {
    border: none;
    background: none;
    padding: 0 4px;
    min-width: auto;
}

/* ---------- 11. Frontend Navbar ---------- */
.navbar {
    background: var(--nav-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
}

.navbar-logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.navbar-logo span {
    color: var(--primary-light);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-menu > li {
    position: relative;
}

.navbar-menu > li > a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: background var(--transition-fast);
    color: rgba(255, 255, 255, 0.9);
}

.navbar-menu > li > a:hover,
.navbar-menu > li > a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    border: 1px solid var(--border-light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}

.dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* Navbar Right */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    gap: 2px;
    font-size: 13px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.lang-switch a {
    padding: 4px 10px;
    border-radius: 5px;
    opacity: 0.7;
    transition: all var(--transition-fast);
    color: #fff;
}

.lang-switch a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lang-switch a:hover {
    opacity: 1;
    color: #fff;
}

.btn-nav {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
    color: #fff;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-nav-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-nav-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.user-menu-text {
    font-size: 14px;
    color: #fff;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- 12. Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0 100px;
    margin: -30px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-search {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto 20px;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
}

.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    opacity: 0.85;
    flex-wrap: wrap;
}

.hero-tags a {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: background var(--transition-fast);
    color: #fff;
}

.hero-tags a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ---------- 13. Product Card ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-placeholder svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94A3B8;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.product-badge.discount {
    background: var(--accent-red);
}

.product-badge.new {
    background: var(--primary);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-category {
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.product-destination::before {
    content: '📍 ';
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.product-title:hover {
    color: var(--primary);
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.price {
    color: var(--accent-red);
    font-weight: 700;
}

.price-lg {
    font-size: 28px;
}

.price-md {
    font-size: 20px;
}

.price-sm {
    font-size: 14px;
}

.price-unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.product-packages {
    font-size: 12px;
    color: var(--text-secondary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--warning);
    margin-top: 6px;
}

.product-rating-text {
    color: var(--text-secondary);
}

/* ---------- 14. Category Card ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.category-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.category-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ---------- 15. Step Indicator ---------- */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step.completed:not(:last-child)::after {
    background: var(--success);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-fast);
}

.step.active .step-number {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step.completed .step-number {
    background: var(--success);
    color: #fff;
}

.step-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary);
}

.step.completed .step-label {
    color: var(--success);
}

/* ---------- 16. Tab Switch ---------- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab {
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    white-space: nowrap;
    background: none;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Language Tabs */
.lang-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.lang-tab {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    background: none;
}

.lang-tab.zh {
    color: var(--primary);
}

.lang-tab.en {
    color: var(--success);
}

.lang-tab.th {
    color: var(--warning);
}

.lang-tab.active {
    border-bottom-color: currentColor;
}

/* ---------- 17. Booking Sticky Bar ---------- */
.booking-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    z-index: var(--z-fixed);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.booking-bar.visible {
    transform: translateY(0);
}

.booking-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.booking-bar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.booking-bar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.booking-bar-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-red);
}

.booking-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- 18. Admin Sidebar ---------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #1A2332;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: var(--z-fixed);
}

.sidebar-logo {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.sidebar-logo h1 span {
    color: var(--primary);
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-menu .menu-section {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    font-size: 14px;
}

.sidebar-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu a.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.15);
    border-left-color: var(--primary);
}

.sidebar-menu a .icon {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    font-size: 14px;
}

.sidebar-footer a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* ---------- 19. Admin Top Bar ---------- */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.top-bar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.admin-info:hover {
    background: var(--bg);
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.admin-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

/* ---------- 20. Admin Stats Cards ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.blue::before { background: var(--primary); }
.stat-card.green::before { background: var(--success); }
.stat-card.amber::before { background: var(--warning); }
.stat-card.purple::before { background: var(--purple); }
.stat-card.red::before { background: var(--danger); }

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up {
    color: var(--success);
}

.stat-change.down {
    color: var(--danger);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card.blue .stat-icon {
    background: var(--info-light);
    color: var(--primary-dark);
}

.stat-card.green .stat-icon {
    background: var(--success-light);
    color: var(--success-dark);
}

.stat-card.amber .stat-icon {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.stat-card.purple .stat-icon {
    background: var(--purple-light);
    color: var(--purple-dark);
}

.stat-card.red .stat-icon {
    background: var(--danger-light);
    color: var(--danger-dark);
}

/* ---------- 21. Admin Content Area ---------- */
.content-area {
    flex: 1;
    padding: 24px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid transparent;
}

.flash-message.success {
    background: var(--success-light);
    color: var(--success-dark);
    border-color: #A7F3D0;
}

.flash-message.error {
    background: var(--danger-light);
    color: var(--danger-dark);
    border-color: #FECACA;
}

.flash-message.info {
    background: var(--info-light);
    color: var(--info-dark);
    border-color: #BFDBFE;
}

.flash-message.warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border-color: #FDE68A;
}

/* Frontend Flash (fixed position) */
.flash-messages.fixed {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.flash-messages.fixed .flash-message {
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Action Bar */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.action-bar-left,
.action-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 36px;
    width: 280px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.detail-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.detail-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-card-body {
    padding: 20px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-label {
    color: var(--text-secondary);
    min-width: 100px;
    flex-shrink: 0;
    font-size: 14px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    word-break: break-all;
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
}

.section-title a {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.section-title a:hover {
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
    margin-bottom: 16px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Voucher Code */
.voucher-code {
    display: inline-block;
    padding: 10px 24px;
    background: var(--warning-light);
    color: var(--warning-dark);
    border: 1px dashed var(--warning);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Quantity Stepper */
.stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stepper-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    transition: background var(--transition-fast);
    border: none;
    cursor: pointer;
}

.stepper-btn:hover {
    background: var(--border);
}

.stepper-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stepper-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: var(--text-primary);
    -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Modal / Confirm Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-fast);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    color: var(--text-primary);
}

.modal-body p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Alert Box */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-info {
    background: var(--info-light);
    color: var(--info-dark);
    border-color: #BFDBFE;
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border-color: #FDE68A;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-dark);
    border-color: #FECACA;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-dark);
    border-color: #A7F3D0;
}

/* Package Card */
.package-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.package-card:hover {
    border-color: var(--primary-light);
    background: var(--bg-secondary);
}

.package-card.selected {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.package-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.package-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.package-card-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.package-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-red);
}

.package-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Traveler Form */
.traveler-form {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.traveler-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.traveler-form-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.traveler-form-remove {
    color: var(--danger);
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.traveler-form-remove:hover {
    background: var(--danger-light);
}

/* Order Summary */
.order-summary {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.order-summary-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.summary-item-label {
    color: var(--text-secondary);
}

.summary-item-value {
    color: var(--text-primary);
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid var(--border);
    font-size: 16px;
    font-weight: 600;
}

.summary-total-value {
    font-size: 24px;
    color: var(--accent-red);
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--nav-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand h3 span {
    color: var(--primary-light);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    transition: color var(--transition-fast);
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - var(--navbar-height) - 200px);
    padding: 30px 0;
}

/* Section */
.section {
    margin-bottom: 50px;
}

/* ---------- 22. Responsive Styles ---------- */

/* Large screens - up to 900px */
@media (max-width: 900px) {
    .container {
        padding: 0 16px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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

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

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

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* Medium screens - up to 760px */
@media (max-width: 760px) {
    :root {
        --navbar-height: 56px;
    }

    .navbar-inner {
        height: var(--navbar-height);
    }

    .navbar-logo {
        font-size: 18px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--nav-dark);
        padding: 12px 16px;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu > li {
        width: 100%;
    }

    .navbar-menu > li > a {
        padding: 12px 14px;
    }

    .mobile-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        padding: 4px 0;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8);
        padding: 10px 28px;
    }

    .hero {
        padding: 50px 0 60px;
        margin: -20px 0 30px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-search {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .hero-search .btn {
        width: 100%;
    }

    .hero-tags {
        flex-wrap: wrap;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .booking-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-bar-actions {
        justify-content: stretch;
    }

    .booking-bar-actions .btn {
        flex: 1;
    }

    .steps {
        margin-bottom: 24px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .step:not(:last-child)::after {
        top: 15px;
    }

    /* Admin responsive */
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        z-index: var(--z-modal);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .top-bar {
        padding: 0 16px;
    }

    .content-area {
        padding: 16px;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar-left,
    .action-bar-right {
        justify-content: space-between;
    }

    .search-box input {
        width: 100%;
    }

    .table-container {
        font-size: 13px;
    }

    thead th,
    tbody td {
        padding: 10px 12px;
    }
}

/* Small screens - up to 520px */
@media (max-width: 520px) {
    .container {
        padding: 0 14px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 18px 12px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .category-icon svg {
        width: 28px;
        height: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .price-lg {
        font-size: 24px;
    }

    .tabs {
        margin: 0 -14px 20px;
        padding: 0 14px;
    }

    .tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .modal {
        width: 95%;
        max-width: none;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .traveler-form {
        padding: 14px;
    }

    .booking-bar {
        padding: 12px 0;
    }

    .navbar-right .btn-nav {
        display: none;
    }

    .lang-switch {
        padding: 2px;
    }

    .lang-switch a {
        padding: 3px 6px;
        font-size: 12px;
    }

    .flash-messages.fixed {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ============================================================
   Section: Agent & Dual Price Styles
   ============================================================ */

/* Direct Price - blue text */
.price-direct {
    color: #2563EB;
    font-weight: 600;
    font-size: 15px;
}

/* Agent Price - green text with lock icon */
.price-agent {
    color: #059669;
    font-weight: 600;
    font-size: 15px;
}

/* Cost Price - gray text */
.price-cost {
    color: #9CA3AF;
    font-weight: 500;
    font-size: 14px;
}

/* Locked state - hidden agent price */
.price-locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9CA3AF;
    font-size: 13px;
    background: #F8FAFC;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.price-locked svg {
    flex-shrink: 0;
}

/* Agent Badge in navbar */
.agent-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================================
   Section: Payment QR Code Styles
   ============================================================ */

/* Payment QR Codes grid */
.payment-qrcodes {
    margin-bottom: 24px;
}

/* QR Code card */
.qrcode-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.qrcode-card:hover { transform: scale(1.05); }
.qrcode-image-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.qrcode-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Order QR Code area */
.order-qrcode {
    text-align: center;
    padding: 20px;
}
.order-qrcode img {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

/* ============================================================
   Section: Agent Apply Form Styles
   ============================================================ */

.agent-apply-form {
    margin-top: 8px;
}
.agent-apply-desc {
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1E40AF;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   Section: Translate Button Styles
   ============================================================ */

.translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: #2563EB;
    color: #fff;
    border: 1px solid #2563EB;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.translate-btn:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}
.translate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   Section: API Simple Page Styles
   ============================================================ */

.api-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}
.api-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
}
.api-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}
.api-card-header {
    background: #2563EB;
    color: #fff;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
}
.api-card-body {
    padding: 20px;
}
.api-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}
.api-info-row:last-child { border-bottom: none; }
.api-info-label {
    color: #64748B;
    font-size: 14px;
    flex-shrink: 0;
}
.api-info-value {
    color: #1E293B;
    font-weight: 500;
    text-align: right;
}
.api-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}
.api-badge.paid { background: #D1FAE5; color: #065F46; }
.api-badge.pending { background: #FEF3C7; color: #92400E; }
.api-badge.confirmed { background: #DBEAFE; color: #1E40AF; }
.api-badge.cancelled { background: #FEE2E2; color: #991B1B; }

/* Agent login tip on login page */
.agent-login-tip {
    text-align: center;
    margin-top: 16px;
    padding: 12px 16px;
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    font-size: 14px;
    color: #1E40AF;
}
