/* MatchPro - 매치프로 메인 스타일시트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    --primary: #3182F6;
    --primary-light: #E8F3FF;
    --primary-dark: #1B64DA;
    --secondary: #F2F4F6;
    --accent: #FF6B35;
    --success: #00C853;
    --warning: #FFB300;
    --danger: #FF3B30;
    --text-primary: #191F28;
    --text-secondary: #4E5968;
    --text-tertiary: #8B95A1;
    --text-disabled: #B0B8C1;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8FA;
    --bg-tertiary: #F2F4F6;
    --border: #E5E8EB;
    --border-light: #F2F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 100px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(64px + var(--safe-bottom));
}

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

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ========== App Container ========== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
}

/* ========== Header ========== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 56px;
}

.header-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-logo span {
    color: var(--text-primary);
}

.header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: background 0.2s;
    position: relative;
}

.header-btn:active {
    background: var(--bg-tertiary);
}

.header-back {
    margin-right: 4px;
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* ========== Search Bar ========== */
.search-bar-wrap {
    padding: 0 16px 12px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    padding: 0 16px;
    height: 44px;
    gap: 10px;
    transition: all 0.2s;
}

.search-bar:focus-within {
    background: var(--bg-primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.search-bar input {
    flex: 1;
    height: 100%;
    color: var(--text-primary);
    font-size: 15px;
}

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

.search-bar .search-icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ========== Bottom Navigation ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding-bottom: var(--safe-bottom);
}

.bottom-nav-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    height: 64px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    letter-spacing: -0.2px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon {
    color: var(--primary);
}

.nav-item .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-center-btn {
    position: relative;
}

.nav-center-btn .nav-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    margin-top: -14px;
    box-shadow: 0 2px 12px rgba(49, 130, 246, 0.4);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ========== Sections ========== */
.section {
    padding: 24px 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-more {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 2px;
}

.section-divider {
    height: 8px;
    background: var(--bg-secondary);
}

/* ========== Cards ========== */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.card-shadow {
    box-shadow: var(--shadow-sm);
    border: none;
}

/* ========== Category Grid ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.category-item:active {
    background: var(--bg-tertiary);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* ========== Banner / Swiper ========== */
.banner-wrap {
    padding: 0 16px;
    margin-bottom: 4px;
}

.banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 140px;
}

.banner-slide {
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-tag {
    display: inline-flex;
    padding: 3px 8px;
    background: rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.banner-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.banner-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 5px;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.banner-dot.active {
    width: 18px;
    border-radius: 3px;
    background: white;
}

/* ========== Expert Card ========== */
.expert-card {
    padding: 16px;
    display: flex;
    gap: 14px;
    border-bottom: 1px solid var(--border-light);
}

.expert-card:last-child {
    border-bottom: none;
}

.expert-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}

.expert-avatar.colored {
    color: white;
}

.expert-info {
    flex: 1;
    min-width: 0;
}

.expert-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.expert-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.expert-badge {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-top {
    background: linear-gradient(135deg, #FF6B35, #FF3B30);
    color: white;
}

.badge-pro {
    background: linear-gradient(135deg, #3182F6, #1B64DA);
    color: white;
}

.expert-sub {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.expert-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.expert-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--warning);
    font-weight: 600;
}

.expert-rating span {
    color: var(--text-primary);
}

.expert-reviews {
    color: var(--text-tertiary);
}

.expert-price {
    color: var(--primary);
    font-weight: 700;
    margin-left: auto;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    letter-spacing: -0.3px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 18px;
    font-size: 14px;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 18px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-round {
    border-radius: var(--radius-full);
}

.btn-ghost {
    color: var(--text-tertiary);
    padding: 8px 12px;
    font-size: 13px;
}

/* ========== Floating Button ========== */
.fab {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom));
    right: calc(50% - 220px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(49, 130, 246, 0.4);
    z-index: 50;
    transition: transform 0.2s;
}

.fab:active {
    transform: scale(0.9);
}

@media (max-width: 480px) {
    .fab {
        right: 16px;
    }
}

/* ========== Form Elements ========== */
.form-group {
    margin-bottom: 20px;
}

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

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

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color 0.2s;
    background: var(--bg-primary);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.form-textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238B95A1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-helper {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

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

/* ========== Chips / Tags ========== */
.chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.15s;
    white-space: nowrap;
}

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

.chip:active {
    transform: scale(0.95);
}

/* ========== Scroll Horizontal ========== */
.scroll-h {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 0 16px;
}

.scroll-h::-webkit-scrollbar {
    display: none;
}

/* ========== Tab Bar ========== */
.tab-bar {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    padding: 0 16px;
    background: var(--bg-primary);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
    flex-shrink: 0;
}

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

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* ========== Chat ========== */
.chat-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.chat-list-item:active {
    background: var(--bg-secondary);
}

.chat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

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

.chat-time {
    font-size: 12px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.chat-preview {
    font-size: 14px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-unread {
    min-width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

/* Chat Room */
.chat-room {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px - 64px);
    background: var(--bg-secondary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-date-divider {
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-tertiary);
}

.chat-bubble-wrap {
    display: flex;
    gap: 8px;
    max-width: 80%;
}

.chat-bubble-wrap.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.chat-bubble.other {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-top-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.mine {
    background: var(--primary);
    color: white;
    border-top-right-radius: 4px;
}

.chat-bubble-time {
    font-size: 11px;
    color: var(--text-tertiary);
    align-self: flex-end;
    flex-shrink: 0;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.chat-input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-send-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-disabled);
}

/* ========== Status / Badge ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-waiting {
    background: #FFF8E1;
    color: #F57F17;
}

.status-matched {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-progress {
    background: var(--primary-light);
    color: var(--primary);
}

.status-complete {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.status-cancelled {
    background: #FFEBEE;
    color: #C62828;
}

/* ========== Request Card ========== */
.request-card {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.request-card:active {
    background: var(--bg-secondary);
}

.request-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.request-category {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.request-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.request-detail-text {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.request-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.request-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== Review ========== */
.review-card {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.review-info .review-name {
    font-size: 14px;
    font-weight: 600;
}

.review-info .review-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.review-stars svg {
    width: 14px;
    height: 14px;
    color: var(--warning);
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== Payment ========== */
.payment-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-row .amount {
    font-weight: 600;
}

.payment-row.total .amount {
    color: var(--primary);
    font-size: 20px;
}

/* ========== Profile ========== */
.profile-header {
    text-align: center;
    padding: 32px 16px 24px;
}

.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-sub {
    font-size: 14px;
    color: var(--text-tertiary);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ========== Menu List ========== */
.menu-list {
    background: var(--bg-primary);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.menu-item:active {
    background: var(--bg-secondary);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.menu-arrow {
    color: var(--text-disabled);
}

.menu-value {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-right: 4px;
}

/* ========== Empty State ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-disabled);
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ========== Notification ========== */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.notif-item.unread {
    background: var(--primary-light);
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 6px;
}

.notif-content {
    flex: 1;
}

.notif-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== Bottom Sheet ========== */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 301;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 10px auto;
}

.bottom-sheet-header {
    padding: 16px 16px 12px;
    font-size: 17px;
    font-weight: 700;
}

/* ========== Fixed Bottom Bar ========== */
.fixed-bottom-bar {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: 12px 16px calc(12px + var(--safe-bottom));
}

.fixed-bottom-bar .inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ========== Toggle ========== */
.toggle-group {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.toggle-item {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    border-radius: 6px;
    transition: all 0.2s;
}

.toggle-item.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* ========== Matching Step ========== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.step.active .step-circle {
    background: var(--primary);
    color: white;
}

.step.done .step-circle {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

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

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 18px;
}

.step-line.done {
    background: var(--success);
}

/* ========== Quick Action Buttons ========== */
.quick-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px;
}

.quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.15s;
}

.quick-action:active {
    transform: scale(0.97);
    background: var(--bg-secondary);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quick-action-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-in {
    animation: fadeInUp 0.4s ease-out;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-light) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ========== Misc ========== */
.divider {
    height: 1px;
    background: var(--border-light);
}

.spacer {
    height: 8px;
    background: var(--bg-secondary);
}

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-blue { color: var(--primary); }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }

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

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

.hidden { display: none !important; }
