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

:root {
    --bg-color: #F2F2F7;
    --surface-color: #FFFFFF;
    --border-color: rgba(0,0,0,0.06);
    --primary: #00A86B;
    --primary-hover: #009960;
    --primary-light: rgba(0, 168, 107, 0.08);
    --primary-glow: rgba(0, 168, 107, 0.12);
    --text-main: #1C1C1E;
    --text-sub: #3A3A3C;
    --text-muted: #8E8E93;
    --text-light: #C7C7CC;
    --success: #34C759;
    --danger: #FF3B30;
    --warning: #FF9500;
    --radius-xl: 16px;
    --radius-lg: 13px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-primary: 0 2px 8px rgba(0,168,107,0.15);
    --transition: all 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: all 0.18s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: all 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Noto Sans KR', 'Helvetica Neue', sans-serif;
    background-color: #E5E5EA;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern';
}
#app {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== Glass & Surface ===== */
.glass, .glass-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-xl);
}
.glass-card { padding: 16px 20px; }
.bg-white { background: #fff !important; }

/* ===== Auth Layout ===== */
.auth-layout { background: var(--bg-color); height: 100vh; overflow-y: auto; display: block; padding: 0; }
.auth-box { width: 100%; max-width: 400px; margin: 0 auto; padding: 0 20px 20px; }

.auth-header-plain {
    background: var(--primary);
    padding: 52px 20px 44px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    text-align: center;
    margin-bottom: -15px;
    position: relative;
    overflow: hidden;
}
.auth-header-plain::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.auth-header-plain h1 { font-size: 1.25rem; font-weight: 600; color: white; margin: 8px 0 4px; letter-spacing: -0.02em; }
.auth-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 0; font-weight: 400; }
.auth-logo { margin-bottom: 12px; margin-top: 0; display: flex; justify-content: center; }

/* Step Dots */
.step-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}
.dot.active { background: white; width: 20px; border-radius: 4px; }

/* Auth Card */
.auth-card {
    background: var(--surface-color);
    padding: 24px 20px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: left;
    border: none;
    position: relative;
    z-index: 10;
    margin-top: -15px;
}

/* ===== Input System ===== */
.input-group { margin-bottom: 16px; }
.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}
.input-wrapper {
    display: flex;
    align-items: center;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 14px;
    background: var(--bg-color);
    transition: var(--transition);
    height: 48px;
}
.input-wrapper:focus-within {
    background: #E8E8ED;
    box-shadow: none;
}
.input-wrapper i { color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; }
.input-wrapper input {
    border: none; outline: none;
    padding: 14px 10px;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 400;
    background: transparent;
    color: var(--text-main);
    height: 100%;
    font-family: inherit;
}
.input-wrapper input::placeholder { color: var(--text-light); font-weight: 400; }
.input-wrapper select {
    border: none; outline: none;
    padding: 0 6px;
    width: 100%;
    font-size: 0.92rem;
    background: transparent;
    color: var(--text-main);
    height: 100%;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}
.action-icon { margin-left: auto; font-size: 1.2rem; }

.input-hint { font-size: 0.73rem; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5; }

/* Select chevron */
.select-wrapper { position: relative; }
.select-wrapper::after { content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); font-size: 1.2rem; color: var(--text-muted); pointer-events: none; }

/* ===== Breed Autocomplete ===== */
.breed-autocomplete-wrap { position: relative; }
.breed-suggestions {
    list-style: none; margin: 0; padding: 4px 0;
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff;
    border: 0.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}
.breed-suggestions.open { display: block; }
.breed-suggestions li {
    padding: 11px 14px;
    font-size: 0.88rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 0.5px solid rgba(0,0,0,0.04);
    transition: var(--transition-fast);
}
.breed-suggestions li:last-child { border-bottom: none; }
.breed-suggestions li:hover, .breed-suggestions li.active { background: var(--bg-color); }
.breed-suggestions li .breed-icon { color: var(--primary); flex-shrink: 0; }
.breed-suggestions li .breed-match { font-weight: 600; color: var(--primary); }
.breed-suggestions .no-result { color: var(--text-muted); font-style: italic; cursor: default; }
.breed-suggestions .no-result:hover { background: transparent; }

/* Age row */
.age-row { display: flex; gap: 12px; }
.age-row .input-group { flex: 1; }
.flex-1 { flex: 1; }

/* Privacy checkbox */
.privacy-check-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.privacy-check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.privacy-check-row label { font-size: 0.85rem; color: var(--text-sub); cursor: pointer; line-height: 1.3; }

/* Button row */
.btn-row { display: flex; gap: 10px; margin-top: 4px; }
.btn-row .secondary-btn { flex: 1; }
.btn-row .primary-btn { flex: 1; }

/* Steps */
.signup-step { display: block; }
.signup-step.hidden { display: none !important; }

.auth-footer { text-align: center; }

/* 사업자 정보 공통 푸터 */
.biz-footer { margin-top: 28px; padding: 16px 16px 12px; border-top: 1px solid #e8e8e8; text-align: center; }
.biz-footer-text { font-size: 0.72rem; color: #aaa; line-height: 1.9; margin: 0; }
.biz-footer-copy { font-size: 0.68rem; color: #bbb; margin: 8px 0 0; }

/* Customer Notification Bell */
.customer-notif-bell {
    position: absolute; top: 14px; right: 16px; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
}
.customer-notif-badge {
    position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px;
    background: #E53E3E; color: #fff; font-size: 0.62rem; font-weight: 800;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid var(--primary);
}
.customer-notif-panel {
    position: absolute; top: 60px; right: 12px; left: 12px;
    max-height: 70vh; background: #fff; border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); overflow: hidden;
    display: flex; flex-direction: column;
}
.customer-notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid #eee;
}
.customer-notif-list { overflow-y: auto; flex: 1; max-height: 60vh; }
.cnotif-item {
    display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f5f5f5;
}
.cnotif-item.unread { background: #F0FDF4; }
.cnotif-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cnotif-icon i { font-size: 1.2rem; }
.cnotif-content { flex: 1; min-width: 0; }
.cnotif-title { font-size: 0.9rem; font-weight: 700; color: #222; margin-bottom: 2px; }
.cnotif-body { font-size: 0.82rem; color: #666; line-height: 1.4; word-break: keep-all; }
.cnotif-time { font-size: 0.72rem; color: #bbb; margin-top: 4px; }

/* Social Login */
.divider-text { display: flex; align-items: center; text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; border-bottom: 0.5px solid var(--border-color); }
.divider-text::before { margin-right: 10px; }
.divider-text::after { margin-left: 10px; }

.social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 50px;
    border-radius: var(--radius-md);
    font-size: 0.92rem; font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: none;
    font-family: inherit;
}
.social-btn:hover { opacity: 0.88; }
.social-btn:active { transform: scale(0.98); opacity: 0.8; }
.social-btn.btn-kakao { background: #FEE500; color: #000000; }
.social-btn.btn-naver { background: #03C75A; color: #FFFFFF; }
.social-btn img { position: absolute; left: 16px; width: 20px; height: 20px; }

/* ===== Dashboard Content ===== */
#main-content { flex: 1; overflow-y: auto; padding-bottom: 90px; scrollbar-width: none; background: var(--bg-color); }
#main-content::-webkit-scrollbar { display: none; }
.view { display: none; animation: viewEnter 0.3s ease forwards; }
.view.active { display: block; }

/* ===== Home Banner ===== */
.home-top-banner {
    background: var(--primary);
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: none;
}
.home-top-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.home-top-banner::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.brand-text {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.subtitle-text {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

.p-20 { padding: 20px; }
.home-content-wrapper { position: relative; z-index: 10; padding: 0 20px; }

/* ===== QR Card ===== */
.qr-center-card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
    box-shadow: var(--shadow-lg);
    border: none;
    position: relative;
    overflow: hidden;
}
.qr-center-card::before {
    display: none;
}
.qr-wrapper {
    background: white;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}
.qr-wrapper.qr-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 168, 107, 0.12);
}
.qr-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 14px;
    margin-top: 10px;
    letter-spacing: 0;
}
.qr-active-badge i {
    font-size: 13px;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ===== Action Cards ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.action-card::after { display: none; }
.action-card::before { display: none; }
.action-card:hover {
    transform: scale(0.97);
}
.action-card:active { transform: scale(0.95); opacity: 0.7; }

/* ===== Typography ===== */
h1 { font-size: 1.5rem; margin-bottom: 4px; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.text-gray { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.mr-1 { margin-right: 8px; }
.font-bold { font-weight: 600; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-align-center { display: flex; align-items: center; }
.flex-end { display: flex; justify-content: flex-end; }
.full-width { width: 100%; }
.text-center { text-align: center; }
.text-huge { font-size: 8rem; }
.pointer { cursor: pointer; }
.bg-light { background: var(--surface-light); }
.border-radius { border-radius: var(--radius-sm); }
.p-1 { padding: 8px; }
.p-0 { padding: 0 !important; }
.padding-x { padding: 16px 20px !important; }
.border-none { border-bottom: none !important; }

/* ===== Buttons ===== */
button {
    cursor: pointer; border: none; outline: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-family: inherit;
}
.primary-btn {
    background: var(--primary);
    color: white;
    padding: 15px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}
.primary-btn::before { display: none; }
.primary-btn:hover {
    background: var(--primary-hover);
    transform: scale(0.98);
}
.primary-btn:active { transform: scale(0.96); opacity: 0.85; }
.secondary-btn {
    background: var(--bg-color);
    color: var(--text-main);
    padding: 13px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 500;
}
.secondary-btn:hover { background: #E8E8ED; }

/* ===== Basic Cards ===== */
.basic-card {
    background: var(--surface-color);
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
}
.highlight-border { border: 2px solid var(--primary) !important; background: var(--primary-light) !important; }

/* ===== Ticket Type Cards ===== */
.ticket-type-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface-color);
    border: none;
    border-radius: var(--radius-xl);
    padding: 18px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ticket-type-card::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C7C7CC'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.5;
    transition: var(--transition);
}
.ticket-type-card:hover {
    transform: scale(0.98);
}
.ticket-type-card:hover::after { opacity: 0.8; }
.ticket-type-card:active { transform: scale(0.96); opacity: 0.7; }
.ticket-type-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ticket-type-info { flex: 1; min-width: 0; }

/* ===== Reservation System ===== */
.rsv-section { margin-bottom: 20px; }
.rsv-label {
    display: flex; align-items: center;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.rsv-card {
    background: var(--surface-color);
    border: none;
    border-radius: var(--radius-xl);
    padding: 16px;
}

/* Calendar */
.rsv-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rsv-cal-nav {
    background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1rem;
}
.rsv-cal-nav:hover { background: var(--bg-color); }
.rsv-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 8px; font-size: 0.76rem; font-weight: 500; color: var(--text-muted); }
.rsv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rsv-cal-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.86rem; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    position: relative;
    border: none;
}
.rsv-cal-day:hover:not(.disabled):not(.empty) { background: var(--bg-color); }
.rsv-cal-day.today { font-weight: 700; color: var(--primary); }
.rsv-cal-day.today::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.rsv-cal-day.selected { background: var(--primary); color: #fff; font-weight: 600; }
.rsv-cal-day.selected.today::after { background: #fff; }
.rsv-cal-day.disabled { color: var(--text-light); cursor: default; pointer-events: none; }
.rsv-cal-day.empty { cursor: default; pointer-events: none; }
.rsv-cal-day.sunday { color: var(--danger); }
.rsv-cal-day.sunday.disabled { color: rgba(255,59,48,0.3); }
.rsv-cal-day.saturday { color: #007AFF; }
.rsv-cal-day.saturday.disabled { color: rgba(0,122,255,0.3); }

/* Time Slots */
.rsv-time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rsv-time-slot {
    padding: 12px 4px;
    text-align: center;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.86rem; font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-color);
}
.rsv-time-slot:hover:not(.booked):not(.disabled) { background: #E8E8ED; }
.rsv-time-slot.selected { background: var(--primary); color: #fff; font-weight: 600; }
.rsv-time-slot.booked { background: rgba(255,59,48,0.06); color: #FF3B30; cursor: default; pointer-events: none; position: relative; }
.rsv-time-slot.booked::after { content: '예약됨'; display: block; font-size: 0.63rem; font-weight: 500; margin-top: 1px; opacity: 0.7; }
.rsv-time-slot.disabled { color: var(--text-light); background: rgba(0,0,0,0.02); cursor: default; pointer-events: none; }

/* Duration */
.rsv-duration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rsv-duration-chip {
    padding: 14px 4px;
    text-align: center;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.86rem; font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-color);
}
.rsv-duration-chip:hover { background: #E8E8ED; }
.rsv-duration-chip.selected { background: var(--primary); color: #fff; font-weight: 600; }
.rsv-duration-call {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,149,0,0.08); color: #C77700; font-size: 0.86rem;
}
.rsv-duration-call:hover { background: rgba(255,149,0,0.14); }

/* People Counter */
.rsv-counter-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.rsv-counter-divider { height: 0.5px; background: var(--border-color); margin: 12px 0; }
.rsv-counter { display: flex; align-items: center; gap: 16px; }
.rsv-counter-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    font-size: 0.85rem;
}
.rsv-counter-btn:hover { background: #E8E8ED; }
.rsv-counter-btn:active { transform: scale(0.9); }
.rsv-counter-val { font-size: 1.1rem; font-weight: 600; min-width: 24px; text-align: center; color: var(--text-main); }

/* Bottom Bar */
.rsv-bottom-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 50;
}
.rsv-summary { text-align: center; margin-bottom: 10px; color: var(--text-main); }

/* Terms Agree */
.terms-check-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; margin-bottom: 8px; }
.terms-check-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; margin: 0; }
.terms-check-label { font-size: 0.82rem; font-weight: 500; color: var(--text-main); line-height: 1.3; }
.primary-btn.disabled { background: var(--text-light); cursor: not-allowed; pointer-events: none; }
.primary-btn.disabled::before { display: none; }

/* ===== Yard Status Cards ===== */
.yard-card {
    background: var(--surface-color);
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
    transition: var(--transition);
}
.yard-card:hover { transform: scale(0.99); }
.yard-card-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.yard-badge {
    font-size: 0.76rem; font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}
.yard-total { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.yard-card-body { padding: 0 16px 12px; }
.yard-size-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.yard-pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: #FF3B30;
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ===== Day Pass ===== */
.daypass-card {
    background: var(--surface-color);
    border: none;
    border-radius: var(--radius-xl);
    padding: 32px 20px;
    text-align: center;
}
.daypass-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, #FFB800, #FF9500);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}

/* Pet Check Row */
.dp-pet-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    cursor: pointer;
    transition: var(--transition);
}
.dp-pet-row + .dp-pet-row { border-top: 0.5px solid var(--border-color); }
.dp-pet-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    background: #fff;
}
.dp-pet-row.checked .dp-pet-check { background: var(--primary); border-color: var(--primary); }
.dp-pet-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.dp-pet-row.checked .dp-pet-avatar { background: var(--primary-light); }
.dp-pet-info { flex: 1; min-width: 0; }

/* QR View */
.pet-selector { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.pet-chip {
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.85rem; font-weight: 500;
    border: none;
    transition: var(--transition);
    color: var(--text-muted);
}
.pet-chip.selected {
    background: var(--primary); color: white;
}

/* ===== Timer Display ===== */
.timer-large {
    font-size: 3rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    color: var(--text-main);
    font-family: -apple-system, 'SF Pro Display', monospace;
}
.timer-large.danger { color: var(--danger); animation: pulse 1s infinite alternate; }
.timer-large.warning { color: var(--warning); }
.progress-bar { width: 100%; height: 4px; background: var(--bg-color); border-radius: 2px; overflow: hidden; }
.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
    transition: width 1s linear;
    border-radius: 2px;
}
.progress-fill.danger { background: var(--danger); }
.progress-fill.warning { background: var(--warning); }

/* ===== Profile View ===== */
.profile-header { display: flex; align-items: center; flex-direction: column; gap: 12px; }
.avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.bg-primary { background: var(--primary); }
.menu-item {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 0.5px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}
.menu-item:hover { background: var(--bg-color); }

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: absolute; bottom: 0; width: 100%;
    display: flex; justify-content: space-around;
    padding: 8px 0 22px 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 0.5px solid rgba(0,0,0,0.08);
    z-index: 40;
}
.app-copyright {
    text-align: center;
    font-size: 0.72rem;
    color: #AAA;
    letter-spacing: 0.3px;
    margin: 24px 0 100px;
    padding: 0 16px;
    line-height: 1.5;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 25%;
    position: relative;
    padding-top: 4px;
}
.nav-item i { font-size: 1.4rem; margin-bottom: 3px; transition: var(--transition); }
.nav-item span { font-size: 0.65rem; font-weight: 500; letter-spacing: 0; }
.nav-item.active { color: var(--primary); }
.nav-item.active::before {
    display: none;
}
.nav-item.active i { transform: none; }

/* ===== SOS Button ===== */
.sos-btn {
    position: absolute;
    bottom: 90px; right: 20px;
    background: #FF3B30;
    color: white;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(255, 59, 48, 0.3);
    z-index: 50;
    transition: var(--transition);
    animation: none;
}
.sos-btn:hover {
    transform: scale(1.05);
}
.sos-btn:active { transform: scale(0.92); opacity: 0.8; }
.sos-btn i { font-size: 1.4rem; margin-bottom: 1px; }
.sos-btn span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.5px; }

/* ===== Modals ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    animation: modalBgIn 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-box {
    width: 88%; max-width: 300px;
    text-align: left;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    animation: modalBoxIn 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hidden { display: none !important; }

/* ===== Animations ===== */
@keyframes viewEnter {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes modalBgIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalBoxIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pulse { 0% { opacity: 1; } 100% { opacity: 0.5; } }

/* ===== Staggered Entry Animation ===== */
.stagger-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Ripple Effect ===== */
.ripple-host { position: relative; overflow: hidden; }
.ripple-host .ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    transform: scale(0);
    animation: ripple-expand 0.4s ease-out forwards;
    pointer-events: none;
}
@keyframes ripple-expand {
    to { transform: scale(3); opacity: 0; }
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: rgba(28, 28, 30, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 340px;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast i { font-size: 1rem; flex-shrink: 0; }

/* ===== Scroll Progress Indicator ===== */
.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    z-index: 60;
    transition: width 0.1s linear;
    border-radius: 0 1px 1px 0;
    opacity: 0.6;
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, #F2F2F7 25%, #E5E5EA 50%, #F2F2F7 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Enhanced Focus Styles (Accessibility) ===== */
.action-card:focus-visible,
.ticket-type-card:focus-visible,
.nav-item:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
    outline: 3px solid rgba(0, 168, 107, 0.5);
    outline-offset: 2px;
}

/* ===== Yard Card ===== */
.yard-total {
    transition: var(--transition);
}

/* ===== Active Nav Indicator Animation ===== */
.nav-item::before {
    transition: var(--transition);
}

/* ===== Section Title ===== */
.section-title-animated {
    position: relative;
    display: inline-block;
}
.section-title-animated::after {
    display: none;
}

/* ===== Privacy Policy Modal ===== */
#privacy-modal-body h4.privacy-article {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--primary);
    margin: 22px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
    letter-spacing: -0.2px;
}
#privacy-modal-body h4.privacy-article:first-of-type {
    margin-top: 8px;
}
#privacy-modal-body p {
    margin: 0 0 12px;
    color: #3A3A3C;
    word-break: keep-all;
}
#privacy-modal-body p b {
    color: #1C1C1E;
    font-weight: 700;
}
#privacy-modal-body::-webkit-scrollbar {
    width: 6px;
}
#privacy-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}

/* Privacy agreement box inside signup */
.privacy-agree-box {
    transition: all 0.2s ease;
}
.privacy-agree-box:has(input:checked) {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
}
