/* =============================================
   I EDU NET - Luggage Storage Service
   Design System & Styles
   ============================================= */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS Variables === */
:root {
    /* Brand Colors */
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
    --primary-gradient-hover: linear-gradient(135deg, #4338CA 0%, #6D28D9 50%, #9333EA 100%);

    /* Accent Colors */
    --accent: #06B6D4;
    --accent-light: #67E8F9;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* Neutral Colors */
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-overlay: rgba(15, 23, 42, 0.6);
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    --border: #E2E8F0;
    --border-focus: #4F46E5;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* === Layout === */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--wide {
    max-width: 1200px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: var(--font-lg);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header__logo span {
    font-weight: 300;
    font-size: var(--font-sm);
    -webkit-text-fill-color: var(--text-secondary);
}

.header__back {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    transition: all var(--transition-fast);
}

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

/* === Landing Page (Hero) === */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    z-index: -1;
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

.hero__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-glow);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: var(--shadow-glow);
    }

    50% {
        box-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
    }
}

.hero__title {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero__subtitle {
    font-size: var(--font-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

/* === Cards/Buttons === */
.action-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.action-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:active {
    transform: translateY(0);
}

.action-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.action-card__icon--primary {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary);
}

.action-card__icon--accent {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    color: var(--accent);
}

.action-card__content {
    flex: 1;
}

.action-card__title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.action-card__desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.action-card__arrow {
    color: var(--text-muted);
    font-size: var(--font-xl);
    transition: transform var(--transition-fast);
}

.action-card:hover .action-card__arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.04);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn--danger {
    background: var(--danger);
    color: var(--text-white);
}

.btn--full {
    width: 100%;
}

.btn--lg {
    padding: 16px var(--space-xl);
    font-size: var(--font-lg);
}

.btn--sm {
    padding: 8px var(--space-md);
    font-size: var(--font-sm);
}

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

/* === Progress Steps === */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) 0;
    gap: 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Steps with circles get column layout so label appears below circle */
.progress-step[data-step="1"],
.progress-step[data-step="2"],
.progress-step[data-step="3"],
.progress-step[data-step="4"] {
    flex-direction: column;
    position: relative;
}

.progress-step__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-sm);
    font-weight: 700;
    border: 2px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-card);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.progress-step--active .progress-step__circle {
    border-color: var(--primary);
    color: var(--text-white);
    background: var(--primary-gradient);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.progress-step--completed .progress-step__circle {
    border-color: var(--success);
    background: var(--success);
    color: var(--text-white);
}

.progress-step__line {
    width: 40px;
    height: 2px;
    background: var(--border);
    transition: background var(--transition-base);
}

.progress-step--completed .progress-step__line {
    background: var(--success);
}

.progress-step__label {
    display: none;
}

/* === Form Styles === */
.form-section {
    padding: var(--space-lg) 0;
}

.form-section__title {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-section__desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-label--required::after {
    content: ' *';
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 12px var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input--error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

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

.form-hint {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: var(--font-xs);
    color: var(--danger);
    margin-top: var(--space-xs);
    display: none;
}

.form-group--error .form-input {
    border-color: var(--danger);
}

.form-group--error .form-error {
    display: block;
}

/* === Date Inputs === */
.date-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* === Checkbox / Agreement === */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-group:hover {
    border-color: var(--primary-light);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    font-size: var(--font-sm);
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
}

/* === Checklist === */
.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.checklist__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-sm);
}

.checklist__item:hover {
    border-color: var(--primary-light);
}

.checklist__item input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.checklist__item--checked {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

/* === File Upload === */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg);
    position: relative;
}

.file-upload:hover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.02);
}

.file-upload--active {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.file-upload__icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.file-upload__text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.file-upload__text strong {
    color: var(--primary);
}

.file-upload input[type="file"] {
    display: none;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.file-preview__item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.file-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.file-preview__add {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--primary-light);
    background: rgba(79, 70, 229, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--primary);
    transition: all var(--transition-fast);
    font-size: var(--font-xs);
    font-weight: 600;
}

.file-preview__add:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
}

/* === Terms Box === */
.terms-box {
    max-height: 300px;
    overflow-y: auto;
    padding: var(--space-md);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.terms-box h3 {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-md) 0 var(--space-sm);
}

.terms-box h3:first-child {
    margin-top: 0;
}

.terms-box p {
    margin-bottom: var(--space-sm);
}

.terms-box ul,
.terms-box ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* === Warning Banner === */
.warning-banner {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #F59E0B;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.warning-banner--danger {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-color: var(--danger);
}

.warning-banner__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-banner__text {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
}

/* === Summary Card === */
.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.summary-card__header {
    background: var(--bg);
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.summary-card__body {
    padding: var(--space-lg);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item__label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.summary-item__value {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

/* === Receipt === */
.receipt {
    background: var(--bg-card);
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    position: relative;
}

.receipt--luggage {
    border-style: dashed;
}

.receipt__header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 2px dashed var(--border);
    margin-bottom: var(--space-lg);
}

.receipt__logo {
    font-size: var(--font-xl);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.receipt__title {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.receipt__type {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt__number {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.receipt__number-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.receipt__number-value {
    font-size: var(--font-2xl);
    font-weight: 800;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: var(--primary);
}

.receipt__qr {
    text-align: center;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.receipt__qr canvas {
    margin: 0 auto;
}

.receipt__info {
    margin-bottom: var(--space-lg);
}

.receipt__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px dotted var(--border);
    font-size: var(--font-sm);
}

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

.receipt__row-value {
    font-weight: 600;
}

.receipt__footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 2px dashed var(--border);
    font-size: var(--font-xs);
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Status Page === */
.status-result {
    padding: var(--space-lg) 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
}

.status-badge--active {
    background: var(--success-light);
    color: #065F46;
}

.status-badge--expired {
    background: var(--warning-light);
    color: #92400E;
}

.status-badge--unavailable {
    background: var(--danger-light);
    color: #991B1B;
}

/* === Admin Dashboard (PC-Optimized Sidebar Layout) === */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(195deg, #1a1f36 0%, #0f172a 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__logo {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.admin-sidebar__title {
    font-size: var(--font-lg);
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.admin-sidebar__sub {
    font-size: var(--font-xs);
    color: #94a3b8;
    margin-top: 2px;
}

.admin-sidebar__nav {
    flex: 1;
    padding: var(--space-md) var(--space-sm);
    overflow-y: auto;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 11px var(--space-md);
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: var(--font-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.admin-nav-item--active {
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    font-weight: 600;
}

.admin-nav-item--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
}

.admin-nav-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

.admin-nav-badge--success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.admin-nav-badge--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.admin-nav-badge--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.admin-nav-badge--picked {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.admin-sidebar__footer {
    padding: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.admin-sidebar__btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: none;
    cursor: pointer;
    font-size: var(--font-sm);
    font-family: var(--font-family);
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.admin-sidebar__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.admin-sidebar__btn--logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Main Content Area */
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #f1f5f9;
    transition: margin-left 0.3s ease;
}

/* Top Bar */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-topbar__toggle {
    display: none;
    padding: var(--space-sm);
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

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

.admin-topbar__search {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px var(--space-md);
    transition: all 0.2s ease;
}

.admin-topbar__search:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.admin-topbar__search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.admin-topbar__search input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-family);
    font-size: var(--font-sm);
    color: var(--text-primary);
    width: 100%;
}

.admin-topbar__search input::placeholder {
    color: var(--text-muted);
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: auto;
}

.admin-topbar__time {
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Content Area */
.admin-content {
    padding: var(--space-lg) var(--space-xl);
    max-width: 1600px;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.admin-stat-card:hover::before {
    opacity: 1;
}

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

.admin-stat-card--total .admin-stat-card__icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary);
}
.admin-stat-card--total::before { background: var(--primary-gradient); }

.admin-stat-card--active .admin-stat-card__icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--success);
}
.admin-stat-card--active::before { background: linear-gradient(135deg, #10B981, #06B6D4); }

.admin-stat-card--warning .admin-stat-card__icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
    color: var(--warning);
}
.admin-stat-card--warning::before { background: linear-gradient(135deg, #F59E0B, #EF4444); }

.admin-stat-card--expired .admin-stat-card__icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(190, 24, 93, 0.1));
    color: var(--danger);
}
.admin-stat-card--expired::before { background: linear-gradient(135deg, #EF4444, #BE185D); }

.admin-stat-card--picked .admin-stat-card__icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    color: var(--info);
}
.admin-stat-card--picked::before { background: linear-gradient(135deg, #3B82F6, #6366F1); }

.admin-stat-card__info {
    flex: 1;
}

.admin-stat-card__number {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.admin-stat-card__label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* Table Card */
.admin-table-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.admin-table-card__title {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
}

.admin-table-card__count {
    font-size: var(--font-sm);
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* Admin Table Override */
.admin-table-card .admin-table-wrapper {
    border: none;
    border-radius: 0;
}

.admin-table tr {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

.admin-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.03);
}

.row--picked {
    background: rgba(59, 130, 246, 0.02) !important;
}

.row--picked td {
    color: var(--text-muted) !important;
}

.row--picked strong {
    color: var(--text-secondary) !important;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-pill--active {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.status-pill--warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.status-pill--expired {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.status-pill--picked {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.storage-id-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: var(--font-xs);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* D-day badge additions */
.dday-badge--picked {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

/* Pickup Banner */
.pickup-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border: 1px solid #93c5fd;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.pickup-banner__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pickup-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pickup-banner__text strong {
    font-size: var(--font-base);
    color: #1e40af;
}

.pickup-banner__text span {
    font-size: var(--font-sm);
    color: #3b82f6;
}

/* Modal grid */
.modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.modal__section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal__section-title svg {
    color: var(--primary);
}

/* Modal Actions */
.modal__actions {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Button Variants */
.btn--pickup {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: var(--font-base);
    padding: 14px var(--space-lg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn--pickup:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn--danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn--danger-outline:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--danger);
}

/* Modal admin variant */
.modal--admin {
    max-width: 700px;
}

/* QR Section redesigned */
.qr-section {
    margin-bottom: var(--space-lg);
}

.qr-section__content {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.qr-section__content h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-lg);
}

.qr-section__content p {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.qr-section__content .btn {
    margin-top: var(--space-md);
}

/* Admin Responsive */
@media (max-width: 1280px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

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

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

    .admin-topbar__toggle {
        display: flex;
    }

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

    .admin-content {
        padding: var(--space-md);
    }

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

/* === Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(4px);
}

.modal-overlay--active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1;
}

.modal__title {
    font-size: var(--font-lg);
    font-weight: 700;
}

.modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.modal__body {
    padding: var(--space-lg);
}

.modal__section {
    margin-bottom: var(--space-lg);
}

.modal__section-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.modal__id-photo {
    width: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.modal__luggage-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
}

.modal__luggage-photos img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.modal__luggage-photos img:hover {
    transform: scale(1.05);
}

/* === Login Modal (Admin) === */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
    margin: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.login-card__logo {
    font-size: var(--font-2xl);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.login-card__subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.empty-state__title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.empty-state__desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* === Footer === */
.footer {
    padding: var(--space-xl) 0;
    text-align: center;
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--text-muted);
}

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

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.hidden {
    display: none !important;
}

/* === Counter Input === */
.counter {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
}

.counter__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    font-size: var(--font-xl);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

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

.counter__btn:active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.counter__value {
    font-size: var(--font-3xl);
    font-weight: 800;
    min-width: 60px;
    text-align: center;
}

/* === Step navigation === */
.step-nav {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    position: sticky;
    bottom: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.step-nav .btn {
    flex: 1;
}

/* === Responsive === */
@media (min-width: 768px) {
    .container {
        max-width: 540px;
    }

    .hero__title {
        font-size: var(--font-4xl);
    }

    .progress-step__label {
        display: block;
        font-size: var(--font-xs);
        color: var(--text-muted);
        margin-top: 6px;
        text-align: center;
        white-space: nowrap;
    }


    .progress-bar {
        margin-bottom: var(--space-xl);
    }
}

/* Admin mobile styles */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stat-card {
        padding: var(--space-md);
    }

    .admin-stat-card__icon {
        width: 40px;
        height: 40px;
    }

    .admin-stat-card__number {
        font-size: var(--font-xl);
    }

    .admin-table {
        font-size: var(--font-xs);
    }

    .admin-table th,
    .admin-table td {
        padding: var(--space-sm);
    }

    .modal--admin {
        max-height: 95vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin-top: auto;
    }

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

    .admin-topbar {
        padding: var(--space-sm) var(--space-md);
    }
}

/* === Print Styles === */
@media print {
    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .header,
    .footer,
    .step-nav,
    .no-print,
    .btn--print-hide {
        display: none !important;
    }

    .receipt {
        border: 2px solid #000;
        page-break-inside: avoid;
        margin: 0;
        box-shadow: none;
    }

    .receipt--luggage {
        page-break-before: always;
    }

    .container {
        max-width: 100%;
    }
}

/* === Toast notification === */
.toast {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    max-width: 90%;
    box-sizing: border-box;
}

.toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast--success {
    background: var(--success);
}

.toast--error {
    background: var(--danger);
}

/* === Number display === */
.number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.number-display__digit {
    width: 40px;
    height: 52px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xl);
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.number-display__separator {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-muted);
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideInRight 0.4s ease forwards;
}

/* === QR Section (Admin) === */
.qr-section {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.qr-section canvas {
    margin: var(--space-md) auto;
}

/* === Image Lightbox === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox--active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* === Responsive Apply Form Grid & Spacing Optimizations === */
@media (min-width: 768px) {
    .container--apply {
        max-width: 840px !important;
    }
    .step-grid {
        display: grid;
        grid-template-columns: 1.1fr 1.0fr;
        gap: var(--space-lg);
        align-items: start;
        margin-top: var(--space-md);
    }
    .step-grid__left, .step-grid__right {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .step-grid .step-nav {
        grid-column: span 2;
        margin-top: var(--space-md);
        border-top: 1px solid var(--border);
        padding-top: var(--space-md);
    }
}

/* Compact padding adjustments for better device density on mobile */
@media (max-width: 480px) {
    .hero {
        padding: var(--space-xl) 0 !important;
    }
    .hero__icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
        margin-bottom: var(--space-md) !important;
    }
    .hero__title {
        font-size: var(--font-xl) !important;
    }
    .hero__subtitle {
        font-size: var(--font-sm) !important;
        margin-bottom: var(--space-xl) !important;
    }
    .action-card {
        padding: var(--space-md) !important;
    }
    .action-card__icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.25rem !important;
    }
    .action-card__title {
        font-size: var(--font-base) !important;
    }
    .form-section {
        padding: var(--space-md) 0 !important;
    }
    .form-section__title {
        font-size: var(--font-xl) !important;
    }
    .form-section__desc {
        margin-bottom: var(--space-md) !important;
    }
    .form-group {
        margin-bottom: var(--space-md) !important;
    }
    .terms-box {
        max-height: 200px !important;
        padding: var(--space-sm) !important;
        margin-bottom: var(--space-md) !important;
    }
    .checkbox-group {
        padding: var(--space-sm) !important;
    }
}

/* === Global Mobile UX & Touch Optimization (iOS & Android) === */
@media (max-width: 768px) {
    /* Prevent iOS Safari unwanted auto-zoom when tapping inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="number"],
    input[type="password"],
    select,
    textarea,
    .form-input {
        font-size: 16px !important;
    }

    /* Admin Topbar flex wrap & mobile spacing */
    .topbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        height: auto !important;
    }

    .topbar__search {
        width: 100% !important;
        max-width: 100% !important;
    }

    .topbar__right {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .topbar__right button {
        flex: 1 1 auto !important;
        min-height: 38px !important;
        padding: 6px 10px !important;
        font-size: 0.76rem !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Modal Mobile Viewport Scroll & Radius */
    .modal-box {
        max-width: 95vw !important;
        max-height: 90vh !important;
        margin: 10px auto !important;
        border-radius: var(--radius-md) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-box__body {
        padding: 16px !important;
    }

    /* Interactive touch targets (minimum 44px height where applicable) */
    .btn,
    .btn-tab,
    .m-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Table horizontal scroll indicators for mobile */
    .table-panel {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: var(--radius-sm);
    }
}