:root {
    /* Color System - Blue & White Theme */
    --bg-color: #F5F7FA;
    /* Cool Light Gray */
    --main-color: #2563EB;
    /* Vibrant Blue */
    --accent-color: #3B82F6;
    /* Lighter Blue */

    --text-primary: #111827;
    /* Deep Navy/Black */
    --text-secondary: #6B7280;
    /* Cool Gray */
    --card-bg: #FFFFFF;

    /* Shadows & Radius */
    --shadow-premium: 0 4px 20px rgba(37, 99, 235, 0.08);
    /* Blue-tinted shadow */
    --radius-card: 24px;
    --radius-button: 16px;

    /* Typography */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;

    /* Status Colors */
    --status-new-bg: #EFF6FF;
    /* Blue 50 */
    --status-new-text: #2563EB;
    /* Blue 600 */

    --status-consulting-bg: #FFF7ED;
    /* Orange 50 */
    --status-consulting-text: #EA580C;
    /* Orange 600 */

    --status-complete-bg: #F0FDF4;
    /* Green 50 */
    --status-complete-text: #16A34A;
    /* Green 600 */

    --status-confirmed-bg: #F5F3FF;
    /* Violet 50 */
    --status-confirmed-text: #7C3AED;
    /* Violet 600 */
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}

.login-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    box-shadow: var(--shadow-premium);
}

.eyebrow {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.login-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-label {
    font-weight: 700;
    font-size: 14px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 14px;
    background: #F9FAFB;
}

.input-wrapper i {
    color: var(--main-color);
    font-size: 16px;
}

.input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    outline: none;
    /* 로그인 입력값이 안 보이는 문제 방지: 항상 명확한 텍스트 색상 지정 */
    color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    text-shadow: none !important;
    /* 입력 텍스트를 왼쪽에서 25px 떨어뜨림 */
    padding-left: 25px;
}

/* 일부 내장 브라우저/오토필 환경에서 글자가 투명 처리되는 문제 방지 */
input,
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
    -webkit-text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    text-shadow: none !important;
    transition: background-color 9999s ease-out 0s;
}

.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    color: #fff;
    border: none;
    border-radius: var(--radius-button);
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.login-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(1px);
    z-index: 999;
}

.login-loading-overlay.active {
    display: flex;
}

.login-loading-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.login-loading-text {
    color: var(--text-secondary);
    font-size: 15px;
    text-align: center;
}

.form-error {
    background: #FEF2F2;
    color: #B91C1C;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #FECACA;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    color: var(--main-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--main-color);
    border-radius: 50%;
}

.user-profile {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-profile strong {
    color: var(--text-primary);
}

/* Cards Common */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-premium);
    padding: 28px;
    margin-bottom: 24px;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

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

/* Hero Card */
.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-icon {
    color: var(--main-color);
    font-size: 18px;
    background: var(--status-new-bg);
    padding: 8px;
    border-radius: 12px;
}

.hero-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-sub strong {
    color: var(--main-color);
}

/* Link Card */
.link-card {
    text-align: center;
    padding: 32px 24px;
}

.qr-code {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    display: block;
    border-radius: 12px;
}

.btn-copy {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-button);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-copy:active {
    transform: scale(0.96);
}

/* Welcome Message */
.welcome-message-card {
    border-radius: 24px;
    padding: 20px 24px;
    margin-bottom: 24px;
    animation: fadeInDown 0.5s ease-out;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.5s ease;
    position: relative;
}

/* 시간대별 그라데이션 - 기본 (밤) */
.welcome-message-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* 아침 (5시-12시) - 일출 색상 */
.welcome-message-card.time-morning {
    background: linear-gradient(135deg, #FF8C42 0%, #FFD93D 100%);
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.18);
}

/* 오후 (12시-18시) - 맑은 하늘 색상 */
.welcome-message-card.time-afternoon {
    background: linear-gradient(135deg, #74B9FF 0%, #0984e3 100%);
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.18);
}

/* 저녁 (18시-22시) - 석양 색상 */
.welcome-message-card.time-evening {
    background: linear-gradient(135deg, #FF7675 0%, #FDCB6E 100%);
    box-shadow: 0 2px 8px rgba(255, 118, 117, 0.18);
}

/* 밤 (22시-5시) - 밤하늘 색상 */
.welcome-message-card.time-night {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* 새 문의가 있을 때 - 더 밝고 눈에 띄는 색상 */
.welcome-message-card.has-new-inquiry.time-morning {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.25);
}

.welcome-message-card.has-new-inquiry.time-afternoon {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A3D3 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(78, 205, 196, 0.25);
}

.welcome-message-card.has-new-inquiry.time-evening {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(245, 87, 108, 0.25);
}

.welcome-message-card.has-new-inquiry.time-night {
    background: linear-gradient(135deg, #a29bfe 0%, #fd79a8 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(162, 155, 254, 0.25);
}

/* 확정 건이 있을 때 - 축하 색상 (금색/초록색 계열) */
.welcome-message-card.has-confirmed.time-morning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}

.welcome-message-card.has-confirmed.time-afternoon {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(50, 205, 50, 0.3);
}

.welcome-message-card.has-confirmed.time-evening {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}

.welcome-message-card.has-confirmed.time-night {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}

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

/* 닫기 버튼 */
.welcome-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 30%;
    min-height: 32px;
    max-height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px 0 0 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.welcome-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    width: 36px;
}

.welcome-close-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(0.95);
}

.welcome-close-btn i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.welcome-close-btn:hover i {
    transform: scale(1.1);
}

.welcome-message-content {
    color: white;
}

.welcome-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-text br {
    display: block;
    margin: 8px 0;
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(245, 87, 108, 0.25);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 4px 14px rgba(245, 87, 108, 0.3);
    }
}

/* Status Grid */
.status-grid-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
}

.status-month-label {
    font-size: 20px;
    font-weight: 800;
    padding-left: 4px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-month-label i {
    color: var(--main-color) !important;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.status-item {
    background: var(--card-bg);
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.1s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.status-item:active {
    transform: scale(0.98);
}

.status-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 16px;
}

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

.status-count {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Inquiry List */
.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-left: 4px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--main-color) !important;
}

.inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    min-height: 200px;
}

.inquiry-list-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 200px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-color);
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#inquiryListContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inquiry-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    padding: 24px;
    cursor: pointer;
    transition: transform 0.1s ease;
    margin-bottom: 10px;
}

.inquiry-card:last-child {
    margin-bottom: 0;
}

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

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

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.inquiry-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.inquiry-info {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.inquiry-preview {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.inquiry-details {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    opacity: 0;
    /* 레이아웃이 생기면서 딜레이가 생기지 않도록,
       레이아웃 관련 속성은 즉시 적용하고, 가벼운 페이드인만 사용 */
    transition: opacity 0.15s ease;
}

.inquiry-card.active .inquiry-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F2F4F6;
    opacity: 1;
}

.detail-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-color);
    padding: 16px;
    border-radius: 12px;
}

/* Status Colors Classes */
.status-new {
    background-color: var(--status-new-bg);
    color: var(--status-new-text);
}

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

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

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

.icon-bg-all {
    background-color: #F3F4F6;
    color: #6B7280;
}

.icon-bg-new {
    background-color: var(--status-new-bg);
    color: var(--status-new-text);
}

.icon-bg-consulting {
    background-color: var(--status-consulting-bg);
    color: var(--status-consulting-text);
}

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

.icon-bg-confirmed {
    background-color: var(--status-confirmed-bg);
    color: var(--status-confirmed-text);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    width: 25%;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--main-color);
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    background: var(--main-color);
    border-radius: 0 0 4px 4px;
}

/* Tab Content Control */
.tab-content {
    display: none;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

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

@keyframes fadeIn {
    from {
        opacity: 0.9;
        transform: translateY(5px);
    }

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

/* Filter Section */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.filter-row {
    display: flex;
    align-items: center;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
    font-size: 16px;
    pointer-events: none;
}

.filter-input-styled {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    font-size: 15px;
    color: var(--text-primary);
    background: #FFFFFF;
    appearance: none;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input-styled:focus {
    border-color: var(--main-color);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    justify-content: space-between;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip-label {
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.chip-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip-content {
    display: block;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #E5E8EB;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chip-label input:checked + .chip-content {
    background: var(--main-color);
    color: #FFFFFF;
    border-color: var(--main-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.settlement-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--main-color);
}

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

.settlement-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.settlement-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.settlement-value {
    font-weight: 600;
    color: var(--text-primary);
}

.settlement-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #E5E8EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 14px;
    font-weight: 700;
}

.total-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--main-color);
}

/* Month Picker (Cards) */
.month-scroll-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-bottom: 0;
    /* Fixed width for exactly 5 items: (60px * 5) + (12px * 4) = 348px */
    width: 348px;
    flex: 0 0 auto;
    position: relative;
}

.month-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.month-card-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    padding-top: 14px;
    flex-shrink: 0;
    overflow: visible;
}

.month-card {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    justify-content: center;
    overflow: visible;
}

.month-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.month-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 70px;
    background: #FFFFFF;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
}

.month-year {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.month-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.month-card input:checked+.month-card-content {
    background: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.month-card input:checked+.month-card-content .month-year,
.month-card input:checked+.month-card-content .month-val {
    color: #FFFFFF;
}


.month-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.month-icon {
    position: absolute;
    width: 18px;
    height: 18px;
}

.inquiry-icon {
    top: 5px;
    left: -6px;
    width: 26px;
    height: 24px;
}

.confirmed-icon {
    top: 6px;
    right: -4px;
    width: 20px;
    height: 20px;
}

/* Month Picker Navigation */
.month-picker-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    overflow: visible;
}

.scroll-btn {
    background: #FFFFFF;
    border: 1px solid #E5E8EB;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.scroll-btn:active {
    transform: scale(0.9);
    background: #F9FAFB;
}

/* Revenue Summary */
.revenue-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.revenue-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.revenue-card.next-month {
    background: #F8FAFC;
}

.revenue-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.revenue-card.next-month .revenue-amount {
    color: var(--main-color);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.action-btn:active {
    transform: scale(0.98);
}

.action-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Settings Tab */
.settings-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.settings-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-premium);
}

.settings-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-partner-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.settings-partner-id {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.settings-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    font-size: 14px;
    background-color: #FFFFFF;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.settings-input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.settings-readonly {
    background-color: #F9FAFB;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.settings-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.settings-small-btn {
    padding: 8px 12px;
    border-radius: 999px;
    border: none;
    background: var(--main-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.settings-qr-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.settings-qrcode-preview {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.settings-qrcode-preview img {
    max-width: 100%;
    max-height: 100%;
}

.settings-qr-placeholder {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 4px;
}

.settings-secondary-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.settings-account-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1.7fr;
    gap: 8px;
}

.settings-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px dashed #E5E7EB;
    cursor: pointer;
    background-color: #F9FAFB;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.settings-upload-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 11px;
}

.settings-profile-preview {
    margin-top: 10px;
}

.settings-profile-preview img {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid #E5E7EB;
}

.company-info-card {
    margin-top: 20px;
    padding: 20px;
}

.company-name {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
}

.company-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 4px;
}

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

.company-value {
    color: var(--text-primary);
    text-align: right;
}

.badge-total,
.badge-confirmed {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.badge-total {
    background-color: #f3f4f6;
    color: #6b7280;
}

.badge-confirmed {
    background-color: #ecfdf5;
    color: #10b981;
}

/* Active state adjustments for badges */
.month-card input:checked+.month-card-content .badge-total {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.month-card input:checked+.month-card-content .badge-confirmed {
    background-color: #FFFFFF;
    color: var(--main-color);
}