:root {
    /* 브랜드 테마 컬러 (추후 새 베이커리 브랜드 컬러에 맞춰 수정) */
    --primary: #b45309;
    --primary-dark: #78350f;
    --accent: #f59e0b;
    --bg-soft: #fffbeb;
    --gradient: linear-gradient(135deg, #78350f 0%, #b45309 100%);
    --badge-bg: #fef3c7;
    --badge-text: #92400e;

    /* 기본 중립 컬러 */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;

    /* 그림자 & 라운드 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 30px -6px rgba(15, 23, 42, 0.15);
    --shadow-primary: 0 8px 20px -4px rgba(180, 83, 9, 0.35);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard Variable", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #fbf5ee;
    background-image: radial-gradient(#fed7aa 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-800);
    padding: 4px 10px 36px;
}

/* 메인 카드 컨테이너 */
.card-container {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* [모듈 1] 헤더 & 프로필 */
.banner-cover {
    width: 100%;
    height: 180px;
    background-color: var(--primary-dark);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.25) 0%, rgba(120, 53, 15, 0.85) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
}

.brand-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.banner-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-logo-badge {
    background: rgba(255, 255, 255, 0.94);
    padding: 4px 8px;
    border-radius: 8px;
    max-width: 108px;
    max-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.banner-logo-badge img {
    max-width: 92px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -55px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.profile-avatar-box {
    position: relative;
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    margin: 0 auto;
}

.profile-img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    background: var(--gray-100);
    display: block;
}

.online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border: 3px solid var(--white);
    border-radius: 50%;
    z-index: 3;
}

.profile-meta {
    text-align: center;
    margin-top: 14px;
    width: 100%;
}

.profile-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.verified-icon {
    color: var(--primary);
    font-size: 1rem;
}

.profile-role {
    font-size: 0.88rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-top: 3px;
}

.profile-company {
    display: inline-block;
    margin-top: 6px;
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.profile-slogan {
    font-size: 0.84rem;
    color: var(--gray-700);
    line-height: 1.5;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    word-break: keep-all;
}

/* [모듈 2] 액션 바 */
.quick-action-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px 20px 0;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 12px 6px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.76rem;
    font-weight: 700;
    transition: all 0.2s;
}

.action-tile i {
    font-size: 1.15rem;
    color: var(--primary);
}

.action-tile:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* 메인 CTA 버튼 */
.cta-container {
    padding: 16px 20px 0;
}

.btn-primary-cta {
    width: 100%;
    background: var(--gradient);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all 0.2s;
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* 공통 섹션 */
.section-wrap {
    padding: 24px 20px 0;
}

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

.section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-desc {
    font-size: 0.74rem;
    color: var(--gray-600);
}

/* [모듈 3] 신뢰 & 매장 정보 */
.trust-info-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.4;
}

.info-label {
    width: 72px;
    color: var(--gray-600);
    font-weight: 600;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: var(--gray-800);
    font-weight: 600;
    word-break: break-all;
}

.info-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.copy-pill {
    margin-left: 6px;
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.copy-pill:hover {
    background: var(--badge-bg);
    color: var(--badge-text);
}

/* [모듈 4] 6대 핵심 서비스 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.service-tile {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-tile:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.service-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--gray-800);
    word-break: keep-all;
}

/* [모듈 5] 비주얼 쇼케이스 (모바일 2×2 그리드) */
.showcase-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.showcase-card {
    width: 100%;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

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

.showcase-img {
    width: 100%;
    height: 106px;
    object-fit: cover;
    display: block;
}

.showcase-body {
    padding: 9px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.showcase-tag {
    font-size: 0.66rem;
    color: var(--primary);
    font-weight: 700;
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 4px;
}

.showcase-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 3px;
    word-break: keep-all;
}

.showcase-desc {
    font-size: 0.7rem;
    color: var(--gray-600);
    line-height: 1.38;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* [모듈 6] 미디어 & SNS */
.media-banner {
    background: var(--gradient);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all 0.2s;
}

.media-banner:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.media-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.media-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.media-text h4 {
    font-size: 0.88rem;
    font-weight: 800;
}

.media-text p {
    font-size: 0.74rem;
    opacity: 0.9;
    margin-top: 2px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.social-icon-btn:hover {
    background: var(--bg-soft);
    color: var(--primary);
    transform: translateY(-2px);
}

/* [모듈 7] vCard 저장 */
.vcard-wrap {
    padding: 24px 20px 20px;
}

.btn-vcard {
    width: 100%;
    background: var(--gray-900);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-vcard:hover {
    background: #000000;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--gray-100);
    font-size: 0.7rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.footer-copy {
    margin-top: 4px;
    opacity: 0.7;
}

/* 하단 관리자 설정 아이콘 (글씨 없음) */
.admin-gear-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.admin-gear-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.admin-gear-btn:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(45deg);
}

/* 모달 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-box {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-box.video-modal-box {
    padding: 16px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray-600);
    cursor: pointer;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.modal-sub {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    height: 70px;
}

.btn-submit {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
}

.video-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 토스트 알림 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    transition: transform 0.3s;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}
