/* --- 기본 리셋 및 글로벌 변수 --- */


:root {
    --bg-main: #f3f5f8;
    --sidebar-bg: #f8fafc;
    --sidebar-border: #e2e8f0;
    --active-blue: #0066ff;
    --brand-green: #24C766;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --border-radius-m: 12px;
    --border-radius-l: 18px;
}


/* --- 대시보드 전체 레이아웃 구조 --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* --- 사이드바 스타일 (Sidebar) --- */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.logo-area {
    background-color: var(--brand-green);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    flex-grow: 1;
    margin-right: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.profile-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.profile-btn:hover {
    color: var(--active-blue);
}

.sidebar-auth {
    margin-bottom: 24px;
    text-align: center;
}

.login-btn {
    width: 100%;
    background-color: var(--active-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
    transition: background-color 0.2s, transform 0.1s;
}

.login-btn:hover {
    background-color: #0052cc;
}

.login-btn:active {
    transform: scale(0.98);
}

.signup-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.signup-link:hover {
    color: var(--text-main);
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item a i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
}

.nav-item.has-sub a {
    justify-content: space-between;
}

.nav-link-left {
    display: flex;
    align-items: center;
}

.arrow-icon {
    font-size: 11px;
    color: #94a3b8;
}

.nav-item:hover a {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.nav-item.active a {
    background-color: #edf5ff;
    color: var(--active-blue);
    font-weight: 600;
}

/* --- 메인 콘텐츠 영역 (Main Content) --- */
.main-content {
    flex-grow: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}


/* --- 상단 그린 배너 디자인 --- */
.banner-card {
    background-color: var(--color-1);
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 20px;
	flex-direction: column;
	align-items: flex-start;
	padding:0;
}

.banner-text-side {
    max-width: 100%;
	padding:var(--box-pd);
}

.banner-sub {
    font:var(--type-body);
    display: inline-block;
    margin-bottom: 8px;
	padding:8px 15px 10px;
	border-radius:50em;
	background:var(--color-3);
}

.banner-main-title {
    font:var(--type-title-b);
}

.banner-main-subtitle {
	font:var(--type-subtitle);
	 margin-bottom: 12px;
}

.banner-description {
    font:var(--type-body);
    opacity: 0.85;
}

.banner-app-side {
    max-width: 100%;
}

/* 앱 아이콘 그리드 */
.app-icon-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.app-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    color: #1e293b;
    transition: transform 0.2s;
}

.app-box:hover {
    transform: translateY(-3px);
}

.app-box span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.app-box small {
    font-size: 7px;
    font-weight: 700;
    margin-top: 2px;
    opacity: 0.8;
    text-align: center;
}

.app-box i {
    font-size: 16px;
}

/* 브랜드 고유 컬러별 스타일링 */
.kb-sec { background-color: #ffbc00; color: #3b2814; }
.sol-pay { background-color: #0046ff; color: white; }
.hana { background-color: #009793; color: white; }
.sol-bank { background-color: #1a62ff; color: white; }
.payco { background-color: #ff2c2c; color: white; }
.paybooc { background-color: #ff124a; color: white; }
.culture { background-color: #a81e23; color: white; }
.m-able { background-color: #ff9d00; color: #3b2814; }
.kb-card { background-color: #ffc400; color: #3b2814; }
.kb-pay { background-color: #ffd200; color: #3b2814; }
.kb-land { background-color: #ffffff; color: #2c3e50; border: 1px solid #e2e8f0; }
.kb-cha { background-color: #ff7d00; color: white; }
.kb-insure { background-color: #ffbc00; color: #3b2814; }
.kb-bank { background-color: #ffbc00; color: #3b2814; }
.ok-cb { background-color: #e60012; color: white; }
.lpoint { background-color: #3ca9ff; color: white; }
.cu { background-color: #5e2bb8; color: white; }
.hpoint { background-color: #3b2814; color: white; }
.syrup { background-color: #f73859; color: white; }
.monimo { background-color: #0054ff; color: white; }
.mock-app { background-color: #00b0ff; color: white; }

/* --- 중간 오퍼월 서비스 바로가기 디자인 --- */
.offerwall-card {
     display: flex;
    justify-content: space-between;
    align-items: flex-start;
	flex-direction: column;
}

.offerwall-left h2 {
    font:var(--type-semititle-b);
}

.offerwall-right {
    display: flex;
	margin-right:0;
	gap:10px;
}

.offerwall-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
	gap:8px;
	width:33%;
}

.offerwall-btn-item:hover {
    transform: translateY(-2px);
}

.main-icon-wrap {
	    background: #00b94117;
    border-radius: var(--border-radius);
}

.btn-icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--brand-green);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(36, 199, 102, 0.2);
}

.star-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: var(--brand-green);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-text {
    font: var(--type-body-b);
    color: #475569;
}

/* --- 하단 2단 레이아웃 (맞춤 주문 / 공지사항) --- */
.bottom-split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.bottom-card {
    background-color: white;
    border-radius: var(--border-radius-l);
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

/* 맞춤 주문 영역 */
.custom-order-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

.custom-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: -webkit-fill-available;
}



.tags-container {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 14px;
}

.pill-tag {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.pill-tag.user-tag { background-color: #3b82f6; }
.pill-tag.partner-tag { background-color: #8b5cf6; }
.pill-tag.auto-tag { background-color: #06b6d4; }

/* 말풍선 컨테이너 */
.chat-bubbles-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: -webkit-fill-available;
}

.chat-bubble {
    background-color: #f1f5f9;
    padding: 10px 14px;
    border-radius: 12px;
    font:var(--type-body);
    color: #334155;
    position: relative;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* 공지사항 영역 */
.notice-box {
    display: flex;
    flex-direction: column;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.notice-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.view-more-btn {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.view-more-btn:hover {
    color: var(--active-blue);
}

.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-list li {
    border-bottom: 1px solid #f1f5f9;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    transition: background-color 0.2s;
    border-radius: 6px;
}

.notice-item:hover {
    background-color: #f8fafc;
}

.notice-item .title {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.notice-item .date {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}












/* 하단 3열 정렬 격자(Grid) 구조 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 8px; /* 행간 격자 넓히고 열간 조율 */
}

/* 개별 메뉴 아이템 스타일 */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}
.menu-item:hover {
    background-color: #f1f9f2;
}

/* 아이콘을 감싸는 박스 영역 (설계도의 아웃라인 형상화) */
.menu-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #0f172a; /* 짙은 차콜 색상 아웃라인 */
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    background-color: white;
    transition: all 0.2s;
}
.menu-item:hover .menu-icon-wrapper {
    border-color: var(--color-1);
    color: var(--color-1);
    background-color: #f1f9f2;
}

/* 아이콘 텍스트 레이블 */
.menu-label {
    font: var(--type-body-b);
    color: var(--black60);
    letter-spacing: -0.5px;
    text-align: center;
    white-space: nowrap;
}









/* 상단 메인 타이틀 */
.reviews-title {
    text-align: center;
	font:var(--type-bodytitle-b);
    margin-top: 0;
	margin-bottom: 16px;
}

/* Swiper 컨테이너 패딩 보완 */
.reviews-swiper-body {
    width: 100%;
    padding: 0 0 40px !important;
}

/* 개별 후기 카드 내부 레이아웃 */
.review-card {
    background-color: white;
    border: 1px solid var(--black10); /* 카드의 회색 테두리 */
    border-radius: var(--border-radius);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s;
	padding: 12.5px;
    min-height: auto;

}
.review-card:hover {
    transform: translateY(-2px);
}

/* 노란색 별점 가로 배치 */
.stars-row {
    display: flex;
    margin: 10px 0;
}
.stars-row svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.15));
}

/* 후기 본문 스타일 */
.review-text {
    font: var(--type-body);
    margin: 0 0 12px 0;
    word-break: keep-all; /* 단어 단위 줄바꿈으로 가독성 향상 */
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 5; /* 표시할 줄 수 (2줄) */
	-webkit-box-orient: vertical;
}

/* 하단 프로필 영역 */
.profile-section {
    display: flex;
    align-items: center;
    gap: var(--gap4);
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
}

/* 프로필 이니셜 서클 */
.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-1); /* 설계도 내 푸른색 서클 동기화 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font: var(type-bodytitle-b);
    flex-shrink: 0;
}

/* 프로필 텍스트 정렬 */
.profile-info {
    display: flex;
    flex-direction: column;
}
.profile-name {
    font: var(--type-body-b);
}
.profile-category {
    font: var(--type-discript);
    color: var(--black60);
}

/* 하단 슬라이드 기본 도트 스타일 커스텀 */
.reviews-outer-container .swiper-pagination {
    bottom: 16px !important;
}
.reviews-outer-container .swiper-pagination-bullet {
    background-color: #94a3b8;
    opacity: 0.6;
}
.reviews-outer-container .swiper-pagination-bullet-active {
    background-color: var(--color-1) !important;
    opacity: 1;
}

