/**
 * Acts 사역자 프로필 - acts-minister-profile.html 디자인
 * Acts-docs/dev/acts-minister-profile.html 레퍼런스
 * 반응형: docs/design/반응형-css-완전-가이드.md (clamp, min-width, auto-fit)
 *
 * @package JMP
 * @since 1.6.0
 */

/* =========================================================
   Acts 프로필 토큰
   ========================================================= */
.acts-profile-wrap {
    --acts-gold: #D4A853;
    --acts-gold-light: #F0D68A;
    --acts-gold-dark: #B08930;
    --acts-navy: #2E3560;
    --acts-navy-light: #3d4674;
    --acts-navy-mid: #4a5590;
    --acts-blue: #4A7BF7;
    --acts-blue-light: #6B9AFF;
    --acts-green: #34C68A;
    --acts-purple: #8B6BF0;
    --acts-bg: #f4f1eb;
    --acts-surface: #ffffff;
    --acts-surface-hover: #fdfcfa;
    --acts-border: rgba(28,24,20,0.08);
    --acts-text: #1a1814;
    --acts-text-dim: #57524a;
    --acts-text-muted: #908a80;
    --font-display: 'Pretendard', sans-serif;
    --font-body: sans-serif;
    --space-xs: clamp(0.25rem,1vw,0.5rem);
    --space-sm: clamp(0.5rem,2vw,0.75rem);
    --space-md: clamp(0.75rem,3vw,1.25rem);
    --space-lg: clamp(1.25rem,4vw,2rem);
    --space-xl: clamp(2rem,6vw,3rem);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    /* 자동 반응형 (반응형-css-완전-가이드) */
    --container: clamp(320px, 92vw, 1400px);
    --card-min-width: clamp(200px, 45vw, 280px);

    font-family: var(--font-body);
    background: var(--acts-bg) !important;
    color: var(--acts-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 프로필 히어로 영역 */
.acts-profile-wrap .acts-profile-hero-wrap {
    background: linear-gradient(135deg, #fdfcfa 0%, #f4f1eb 50%, #ebe6df 100%) !important;
    border-color: rgba(28,24,20,0.1);
}
.acts-profile-wrap .acts-profile-hero-wrap::before {
    background: radial-gradient(ellipse at 80% 30%, rgba(212,168,83,0.12) 0%, transparent 60%);
}
.acts-profile-wrap .acts-profile-hero-wrap::after {
    background: linear-gradient(90deg, transparent, var(--acts-gold), transparent);
    opacity: 0.5;
}
.acts-profile-wrap .acts-profile-hero-wrap .hero-btn-secondary,
.acts-profile-wrap .acts-profile-hero-wrap .hero-btn-outline {
    background: rgba(28,24,20,0.06);
    color: var(--acts-text);
    border-color: rgba(28,24,20,0.15);
}
.acts-profile-wrap .acts-profile-hero-wrap .hero-btn-secondary:hover,
.acts-profile-wrap .acts-profile-hero-wrap .hero-btn-outline:hover {
    background: rgba(28,24,20,0.1);
    border-color: rgba(28,24,20,0.2);
}

/* 페이지 콘텐츠 패딩 */
body.jmp-acts-minister-profile-page #content,
body.jmp-acts-minister-profile-page .site-content {
    padding-left: 0;
    padding-right: 0;
}

/* =========================================================
   Ambient 배경 (플로팅 오브)
   ========================================================= */
.acts-profile-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.acts-profile-ambient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: actsOrbFloat 20s ease-in-out infinite;
}
.acts-profile-ambient .orb-1 { width: 500px; height: 500px; background: var(--acts-blue); top: -10%; left: -10%; }
.acts-profile-ambient .orb-2 { width: 400px; height: 400px; background: var(--acts-purple); top: 50%; right: -5%; animation-delay: -7s; }
.acts-profile-ambient .orb-3 { width: 350px; height: 350px; background: var(--acts-gold); bottom: -5%; left: 30%; animation-delay: -14s; opacity: 0.08; }
@keyframes actsOrbFloat {
    0%,100%{transform:translate(0,0) scale(1)}
    33%{transform:translate(30px,-20px) scale(1.05)}
    66%{transform:translate(-20px,15px) scale(0.95)}
}

/* =========================================================
   Page Container (clamp 기반 자동 반응형)
   ========================================================= */
.acts-profile-page {
    position: relative;
    z-index: 1;
    width: var(--container);
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-lg) 0 150px;
    box-sizing: border-box;
}

/* 큰 모바일: 좌우 패딩 */
@media (min-width: 375px) and (max-width: 1023px) {
    .acts-profile-page {
        padding-left: clamp(1rem, 4vw, 1.5rem);
        padding-right: clamp(1rem, 4vw, 1.5rem);
    }
}

/* 데스크톱: 적당한 좌우 패딩 */
@media (min-width: 1024px) {
    .acts-profile-page {
        padding-left: clamp(1.5rem, 4vw, 3rem);
        padding-right: clamp(1.5rem, 4vw, 3rem);
    }
}

.acts-profile-section .acts-profile-section-body,
.acts-profile-section > div:not(.acts-profile-section-header) {
    padding: var(--space-md);
    padding-inline: 0;
}
.acts-profile-section .acts-profile-section-header {
    padding-inline: 0;
}
.acts-profile-intro-full .acts-profile-section-body {
    padding: var(--space-md);
    padding-inline: 0;
}

/* 썸네일이 들어간 섹션: 내부 패딩 0 (공개 영상, 사역자 소식, 강의·도서·티켓팅) */
.acts-profile-videos-full-row .acts-profile-section-body,
.acts-profile-full-row .acts-profile-news-section-full .acts-profile-section-body,
.acts-profile-shop-full-row .acts-profile-section-body {
    padding: 0;
}

/* =========================================================
   Dash Nav
   ========================================================= */
.acts-profile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-lg);
}
.acts-profile-nav-left { display: flex; align-items: center; gap: var(--space-md); }
.acts-profile-logo {
    font-family: var(--font-display);
    font-size: clamp(1.25rem,3vw,1.75rem);
    font-weight: 800;
    color: var(--acts-gold);
    letter-spacing: -0.5px;
    text-decoration: none;
}
.acts-profile-logo span { color: var(--acts-text); font-weight: 400; }
.acts-profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--acts-text-dim);
}
.acts-profile-breadcrumb a { color: var(--acts-text-dim); text-decoration: none; transition: color 0.2s; }
.acts-profile-breadcrumb a:hover { color: var(--acts-gold); }
.acts-profile-breadcrumb .current { color: var(--acts-text); }
.acts-profile-nav-right { display: flex; align-items: center; gap: var(--space-sm); }
.acts-profile-nav-btn {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--acts-border);
    background: var(--acts-surface);
    color: var(--acts-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    text-decoration: none;
}
.acts-profile-nav-btn:hover {
    background: var(--acts-surface-hover);
    color: var(--acts-text);
    border-color: rgba(255,255,255,0.12);
}

/* =========================================================
   Hero Header
   ========================================================= */
.acts-profile-hero-wrap {
    background: linear-gradient(135deg, var(--acts-navy) 0%, var(--acts-navy-light) 50%, var(--acts-navy-mid) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--acts-border);
    position: relative;
    overflow: hidden;
}
.acts-profile-hero-wrap::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: radial-gradient(ellipse at 80% 30%, rgba(212,168,83,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.acts-profile-hero-wrap::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--acts-gold), transparent);
    opacity: 0.4;
}
.acts-profile-hero-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}
.acts-profile-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}
.acts-profile-avatar {
    width: clamp(90px,14vw,130px);
    height: clamp(90px,14vw,130px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--acts-gold);
    box-shadow: 0 0 30px rgba(212,168,83,0.2);
    object-fit: cover;
}
.acts-profile-level-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acts-gold), var(--acts-gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(212,168,83,0.4);
}
.acts-profile-level-badge.acts-badge-sm {
    padding: 0;
    width: auto;
    height: auto;
    min-width: 36px;
    min-height: 28px;
    padding: 2px 8px;
    font-size: 0.65rem;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
}
.acts-profile-hero-info { flex: 1; }
.acts-profile-church {
    font-size: clamp(0.8rem,2vw,0.95rem);
    color: var(--acts-text-dim);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.acts-profile-church i { color: var(--acts-gold); }
.acts-profile-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem,4vw,2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
}
.acts-profile-name .acts-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(212,168,83,0.05));
    border: 1px solid rgba(212,168,83,0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--acts-gold);
    vertical-align: middle;
    margin-left: 8px;
    font-family: var(--font-display);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.acts-profile-specialty,
.acts-profile-bio {
    font-size: 0.85rem;
    color: var(--acts-text-dim);
    margin: 0;
}
.acts-profile-specialty { display: flex; align-items: center; gap: 5px; }
.acts-profile-specialty i { color: var(--acts-gold); }
.acts-profile-bio { margin-top: 4px; line-height: 1.6; }

/* Hero Actions - 이름·설명 밑에 아이콘(버튼) 배치, 설명과 버튼 사이 여백 */
.acts-profile-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    align-items: center;
}
.acts-profile-wrap .hero-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    text-decoration: none;
}
.acts-profile-wrap .hero-btn-primary {
    background: linear-gradient(135deg, var(--acts-gold), var(--acts-gold-dark));
    color: #fff;
}
.acts-profile-wrap .hero-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(212,168,83,0.4);
    transform: translateY(-1px);
}
.acts-profile-wrap .hero-btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--acts-text);
    border: 1px solid var(--acts-border);
}
.acts-profile-wrap .hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}
.acts-profile-wrap .hero-btn-outline {
    background: transparent;
    color: var(--acts-gold);
    border: 1px solid rgba(212,168,83,0.5);
}
.acts-profile-wrap .hero-btn-outline:hover {
    background: rgba(212,168,83,0.1);
    border-color: var(--acts-gold);
}

/* =========================================================
   Stats Grid (컬러 악센트)
   ========================================================= */
.acts-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.acts-profile-stat {
    background: var(--acts-surface);
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.acts-profile-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}
.acts-profile-stat:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.acts-profile-stat:hover::before { opacity: 1; }
.acts-profile-stat.stat-gold::before { background: linear-gradient(90deg, var(--acts-gold), var(--acts-gold-light)); }
.acts-profile-stat.stat-blue::before { background: linear-gradient(90deg, var(--acts-blue), var(--acts-blue-light)); }
.acts-profile-stat.stat-green::before { background: linear-gradient(90deg, var(--acts-green), #5DE0A8); }
.acts-profile-stat.stat-purple::before { background: linear-gradient(90deg, var(--acts-purple), #A88DF0); }
.acts-profile-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}
.acts-profile-stat.stat-gold .acts-profile-stat-icon { background: rgba(212,168,83,0.12); color: var(--acts-gold); }
.acts-profile-stat.stat-blue .acts-profile-stat-icon { background: rgba(74,123,247,0.12); color: var(--acts-blue); }
.acts-profile-stat.stat-green .acts-profile-stat-icon { background: rgba(52,198,138,0.12); color: var(--acts-green); }
.acts-profile-stat.stat-purple .acts-profile-stat-icon { background: rgba(139,107,240,0.12); color: var(--acts-purple); }
.acts-profile-stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.4rem,3.5vw,1.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--acts-text);
}
.acts-profile-stat-label { font-size: 0.8rem; color: var(--acts-text-dim); }

/* 모바일: 프로필에서 전체 순위, 누적 JS 숨김 */
@media (max-width: 767px) {
    .acts-profile-wrap .acts-profile-stat-hide-mobile {
        display: none !important;
    }
}

/* 사역자 바로가기 링크 (유튜브 채널로 가기, 인스타 채널, 홈페이지가기) */
.acts-profile-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding: var(--space-sm) 0;
}
.acts-profile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--acts-border);
    color: var(--acts-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.acts-profile-social-link:hover {
    color: var(--acts-gold);
    background: rgba(212,168,83,0.12);
    border-color: rgba(212,168,83,0.35);
}
.acts-profile-social-link i { font-size: 1.2rem; }
.acts-profile-social-link span { white-space: nowrap; }

/* =========================================================
   Main Grid
   ========================================================= */
.acts-profile-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* 전체 가로 사용 영역: 이력, 영상, 소식, 판매 - 왼쪽 정렬 / 섹션 간격 */
.acts-profile-full-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    width: 100%;
    justify-content: flex-start;
    justify-items: start;
    margin-bottom: var(--space-xl);
}
.acts-profile-full-row .acts-profile-section {
    width: 100%;
    max-width: 100%;
}
/* 사역자 이력 및 소개: 한 줄 전체 가로 100% 사용 */
.acts-profile-full-row .acts-profile-intro-full {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}
/* 사역자 소식만 한 줄 전체 사용 (60% 영역이 제대로 보이도록) */
.acts-profile-full-row .acts-profile-news-section-full {
    grid-column: 1 / -1;
}
.acts-profile-full-row .acts-profile-posts-grid {
    justify-content: start;
}
.acts-profile-full-row .acts-profile-videos {
    justify-content: flex-start;
}

/* 공개 영상: 100% 가로 전용 영역 (다수 영상 등록 대응) / 섹션 간격 */
.acts-profile-videos-full-row {
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--space-xl);
}
.acts-profile-videos-full-row .acts-profile-section {
    width: 100%;
    max-width: 100%;
}
/* 공개 영상: 강의도서와 동일하게 고정 4열 그리드, 썸네일 크기·간격 일정, 1개여도 자기 위치만 */
.acts-profile-videos-full-row .acts-profile-videos {
    display: block;
}
.acts-profile-videos-full-row .acts-profile-videos-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.acts-profile-videos-full-row .acts-profile-video-card,
.acts-profile-videos-full-row .acts-profile-video-card-link {
    max-width: 100%;
}

@media (max-width: 767px) {
    .acts-profile-videos-full-row .acts-profile-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.acts-profile-videos-full-row .acts-profile-video-card {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.2s, transform 0.2s;
}
.acts-profile-videos-full-row .acts-profile-video-card:hover {
    border-color: rgba(212,168,83,0.3);
    transform: translateY(-2px);
}
.acts-profile-videos-full-row .acts-profile-video-card-link {
    text-decoration: none;
    color: inherit;
}
.acts-profile-videos-full-row .acts-profile-video-card-link:hover {
    color: var(--acts-gold);
}
.acts-profile-videos-full-row .acts-profile-video-thumb-wrap {
    display: block;
    aspect-ratio: 16/10;
    background: var(--acts-navy-light);
    position: relative;
    overflow: hidden;
}
.acts-profile-videos-full-row .acts-profile-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acts-profile-videos-full-row .acts-profile-video-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--acts-navy-light);
    color: var(--acts-text-muted);
    font-size: 2.5rem;
}
.acts-profile-videos-full-row .acts-profile-video-card-link .acts-profile-video-thumb-placeholder:hover {
    color: var(--acts-gold);
}
.acts-profile-videos-full-row .acts-profile-video-body {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.acts-profile-videos-full-row .acts-profile-video-title {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}
.acts-profile-videos-full-row .acts-profile-video-title a {
    color: var(--acts-text);
    text-decoration: none;
}
.acts-profile-videos-full-row .acts-profile-video-title a:hover {
    color: var(--acts-gold);
}
.acts-profile-videos-full-row .acts-profile-video-desc {
    font-size: 0.75rem;
    color: var(--acts-text-dim);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.acts-profile-videos-full-row .acts-profile-video-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.acts-profile-videos-full-row .acts-profile-video-buttons .acts-btn-sm {
    font-size: 0.8rem;
    padding: 6px 10px;
}
.acts-profile-videos-full-row .acts-profile-videos-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--acts-border);
}

/* 사역자 일정표 | 문의 및 상담(50%) + 채널 및 링크(50%) */
.acts-profile-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    width: 100%;
    max-width: 100%;
    align-items: start;
    margin-bottom: var(--space-xl);
}
.acts-profile-two-col:last-of-type { margin-bottom: 0; }
.acts-profile-main-col,
.acts-profile-sidebar {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
/* 문의 및 상담 | 채널 및 링크: 50% / 50% (데스크톱), 모바일에서 세로 배치 */
.acts-profile-contact-sns-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    width: 100%;
    align-items: start;
}
.acts-profile-channel-links .acts-profile-section-body { padding-top: 0; }
.acts-profile-channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.acts-profile-channel-list li {
    margin: 0;
    padding: 0;
}
.acts-profile-channel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--acts-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.acts-profile-channel-link:hover {
    color: var(--acts-gold);
    background: rgba(255,255,255,0.04);
    border-color: rgba(212,168,83,0.35);
}
.acts-profile-channel-link i {
    color: var(--acts-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 프로필 하단: 유튜브/인스타/홈페이지 바로가기 + 후원하기·멤버가입하기 */
.acts-profile-bottom-section {
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--acts-border);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    visibility: visible;
    overflow: visible;
}
.acts-profile-bottom-section .acts-profile-social-links {
    margin-top: 0;
    padding: 0;
}
.acts-profile-cta-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    visibility: visible;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--acts-border);
}
.acts-profile-cta-row .acts-btn {
    min-width: 180px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}
.acts-profile-cta-row .acts-btn-danger {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}
.acts-profile-cta-row .acts-btn-danger:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

/* =========================================================
   Card
   ========================================================= */
.acts-profile-section {
    background: var(--acts-surface);
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}
.acts-profile-section:last-child { margin-bottom: 0; }
.acts-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md) 0;
}
.acts-profile-section-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.acts-profile-section-write-btn {
    white-space: nowrap;
}

/* 생방송 일정 버튼 (공개 영상 헤더 옆, 눈에 띄는 색) */
.acts-profile-wrap .acts-btn-live-schedule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.acts-profile-wrap .acts-btn-live-schedule:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.5);
}
.acts-profile-wrap .acts-btn-live-schedule.acts-btn-disabled {
    background: var(--acts-surface-hover);
    color: var(--acts-text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

/* 프로필 글쓰기 모달 (대시보드와 동일 양식) */
.acts-profile-write-modal.acts-modal {
    align-items: center;
    justify-content: center;
}
.acts-profile-write-modal .acts-modal-content {
    max-width: 520px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}
.acts-profile-write-modal .acts-modal-body .acts-form-group {
    margin-bottom: 12px;
}
.acts-profile-write-modal .acts-modal-body .acts-input {
    width: 100%;
    box-sizing: border-box;
}
.acts-profile-write-modal .acts-post-extra-fields .acts-input {
    margin-top: 6px;
}
.acts-profile-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 var(--space-sm);
    color: var(--acts-gold);
}
.acts-profile-section h3 i { color: var(--acts-gold); font-size: 1.15rem; }
.acts-profile-section .acts-profile-section-body,
.acts-profile-section > div:not(.acts-profile-section-header) {
    padding: var(--space-md);
    padding-inline: 0;
}

/* Info list, rows */
.acts-profile-info-list { display: flex; flex-direction: column; gap: 4px; }
.acts-profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--acts-border);
    font-size: 0.9rem;
}
.acts-profile-info-row:last-child { border-bottom: none; }
.acts-info-label { color: var(--acts-text-dim); }
.acts-info-value { font-weight: 600; color: var(--acts-text); }
.acts-profile-education-row .acts-profile-education-value { width: 100%; }
.acts-profile-intro-text { font-size: 0.9rem; line-height: 1.85; color: var(--acts-text-dim); margin-top: var(--space-sm); }
.acts-profile-intro-text strong { color: var(--acts-text); }

/* 강의·도서·티켓팅: 고정 4열 그리드, 썸네일 크기·간격 일정, 1개여도 자기 위치만 차지 */
.acts-profile-full-row .acts-profile-shop-full-row {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}
.acts-profile-shop-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .acts-profile-shop-full-row .acts-profile-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.acts-profile-shop-card {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.2s, transform 0.2s;
}
.acts-profile-shop-card:hover {
    border-color: rgba(212,168,83,0.3);
    transform: translateY(-2px);
}
.acts-profile-shop-card-thumb-wrap {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--acts-surface-hover);
}
.acts-profile-shop-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acts-profile-shop-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acts-text-muted);
    font-size: 2.5rem;
}
.acts-profile-shop-card-body {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.acts-profile-shop-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px;
}
.acts-profile-shop-card-title a { color: var(--acts-text); text-decoration: none; }
.acts-profile-shop-card-title a:hover { color: var(--acts-gold); }
.acts-profile-shop-card-content {
    font-size: 0.8rem;
    color: var(--acts-text-dim);
    line-height: 1.4;
    margin: 4px 0 0;
    flex: 1;
}
.acts-profile-shop-card-buy {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
    padding: 10px 14px;
    justify-content: center;
    font-size: 0.85rem;
}
.acts-profile-shop-pagination { margin-top: var(--space-md); }

/* 사역자 이력 및 소개: 가로 100% 3단 (사진·이름(정보) | 학력 | 사역 소개) */
.acts-profile-intro-full .acts-profile-section-body {
    padding: var(--space-md) var(--space-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.acts-profile-intro-three-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (min-width: 577px) {
    .acts-profile-intro-three-cols { grid-template-columns: 1fr 1fr; }
    .acts-profile-intro-three-cols .acts-profile-intro-col-1 { grid-column: 1 / -1; }
}
@media (min-width: 993px) {
    .acts-profile-intro-three-cols { grid-template-columns: 1fr 1fr 1fr; }
    .acts-profile-intro-three-cols .acts-profile-intro-col-1 { grid-column: auto; }
}
.acts-profile-intro-col { min-width: 0; }
/* 1열: 사진 위, 이름·기타표시 아래 */
.acts-profile-intro-col-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}
.acts-profile-intro-photo-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(212, 168, 83, 0.5);
    background: var(--acts-surface-hover, rgba(255,255,255,0.04));
}
.acts-profile-intro-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acts-profile-intro-info { min-width: 0; width: 100%; }
.acts-profile-intro-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--acts-text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.acts-profile-intro-position {
    font-size: 0.9rem;
    color: var(--acts-text-dim);
    margin: 0 0 2px;
}
.acts-profile-intro-affiliation {
    font-size: 0.85rem;
    color: var(--acts-text-muted, var(--acts-text-dim));
    margin: 0;
}
.acts-profile-intro-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--acts-text);
    margin: 0 0 var(--space-sm);
}
.acts-profile-intro-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acts-gold);
    flex-shrink: 0;
}
.acts-profile-education-block {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--acts-text);
    margin-bottom: var(--space-sm);
}
.acts-profile-education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-sm);
}
.acts-profile-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}
.acts-profile-tag-education {
    background: rgba(212, 168, 83, 0.2);
    color: var(--acts-text);
    border: 1px solid rgba(212, 168, 83, 0.35);
}
.acts-profile-intro-text-block {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--acts-text-dim);
    margin-bottom: var(--space-sm);
}
.acts-profile-intro-text-block strong { color: var(--acts-text); }
.acts-profile-intro-tags {
    list-style: none;
    margin: var(--space-sm) 0 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--acts-text);
}
.acts-profile-intro-tags li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.acts-profile-intro-tags li i {
    color: var(--acts-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Posts grid, cards */
.acts-profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
}
.acts-profile-post-card {
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s;
}
.acts-profile-post-card:hover { border-color: rgba(212,168,83,0.3); transform: translateY(-3px); }
.acts-profile-post-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.acts-profile-post-body { padding: var(--space-sm); }
.acts-profile-post-body a { font-weight: 600; color: var(--acts-text); }
.acts-profile-post-body a:hover { color: var(--acts-gold); }
.acts-profile-post-content { font-size: 0.75rem; color: var(--acts-text-dim); margin-top: 4px; line-height: 1.4; }
.acts-profile-post-thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.acts-profile-shop-price { font-weight: 700; color: var(--acts-gold); }
.acts-profile-news-date { font-size: 0.72rem; color: var(--acts-text-muted); }

/* 사역자 소식: 자동 반응형 너비 + auto-fit 그리드 */
/* 사역자 소식: 공개 영상과 동일하게 100% 가로 사용 → 썸네일 크기 일치 */
.acts-profile-news-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
/* 사역자 소식: 강의도서와 동일하게 고정 4열 그리드, 썸네일 크기·간격 일정, 1개여도 자기 위치만 */
.acts-profile-news-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .acts-profile-news-section-full .acts-profile-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .acts-profile-news-section-full .acts-profile-news-card {
        min-width: 0;
    }
}

.acts-profile-news-card {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.2s, transform 0.2s;
}
.acts-profile-news-card:hover {
    border-color: rgba(212,168,83,0.35);
    transform: translateY(-2px);
}
.acts-profile-news-card .acts-profile-news-card-thumb {
    display: block;
    flex-shrink: 0;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--acts-navy-light);
}
.acts-profile-news-card .acts-profile-news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acts-profile-news-card .acts-profile-news-card-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100px;
    color: var(--acts-text-muted);
    font-size: 2rem;
}
.acts-profile-news-card .acts-profile-news-card-title {
    padding: var(--space-xs) var(--space-sm) 0;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--acts-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.acts-profile-news-card .acts-profile-news-btn {
    margin: var(--space-sm) var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    padding: 6px 12px;
    text-align: center;
    display: inline-block;
}
.acts-profile-news-card .acts-btn-disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}
.acts-profile-news-pagination {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--acts-border);
}
.acts-pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.acts-pagination-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--acts-border);
    background: var(--acts-surface);
    color: var(--acts-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.acts-pagination-list a:hover {
    border-color: var(--acts-gold);
    color: var(--acts-gold);
    background: rgba(212,168,83,0.08);
}
.acts-pagination-list a.current {
    border-color: var(--acts-gold);
    background: rgba(212,168,83,0.15);
    color: var(--acts-gold);
    pointer-events: none;
}

/* News list, schedule, shop */
.acts-profile-news-list { list-style: none; margin: 0; padding: 0; }
.acts-profile-news-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--acts-border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.acts-profile-news-list li:last-child { border-bottom: none; }
.acts-profile-news-list a { font-weight: 500; color: var(--acts-text); }
.acts-profile-news-list a:hover { color: var(--acts-gold); }
.acts-profile-videos { display: block; }
.acts-profile-schedule-list { list-style: none; margin: 0; padding: 0; }
.acts-profile-schedule-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--acts-border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.acts-profile-schedule-item:last-child { border-bottom: none; }
.acts-profile-schedule-meta { font-size: 0.75rem; color: var(--acts-text-muted); }

/* 사역자 일정표: 그리드가 아닌 리스트 형태, 날짜 + 한 줄씩 */
.acts-profile-calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.acts-profile-calendar-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
    min-width: 0;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--acts-border);
    background: transparent;
    border-radius: 0;
    transition: background 0.2s;
}
.acts-profile-calendar-card:last-child {
    border-bottom: none;
}
.acts-profile-calendar-card:hover {
    background: rgba(255,255,255,0.03);
}
.acts-profile-calendar-date {
    flex-shrink: 0;
    width: 52px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(212,168,83,0.05));
    border: 1px solid rgba(212,168,83,0.25);
    border-radius: var(--radius-sm);
    color: var(--acts-gold);
}
.acts-profile-calendar-day {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    display: block;
}
.acts-profile-calendar-month {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.acts-profile-calendar-content {
    flex: 1;
    min-width: 0;
}
.acts-profile-calendar-content .acts-profile-post-thumb-sm {
    float: right;
    margin-left: 8px;
    margin-bottom: 4px;
}
.acts-profile-calendar-title {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--acts-text);
}
.acts-profile-calendar-content .acts-profile-schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.75rem;
    color: var(--acts-text-dim);
}
.acts-profile-calendar-content .acts-profile-schedule-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.acts-profile-calendar-content .acts-profile-schedule-meta i {
    color: var(--acts-gold);
    font-size: 0.9rem;
}
.acts-profile-shop-list { list-style: none; margin: 0; padding: 0; }
.acts-profile-shop-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--acts-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.acts-profile-shop-item:last-child { border-bottom: none; }
.acts-profile-contact-text { font-size: 0.9rem; line-height: 1.6; color: var(--acts-text-dim); margin-bottom: 8px; }
.acts-profile-consultation-hours { font-size: 0.85rem; color: var(--acts-text-muted); display: flex; align-items: center; gap: 6px; }

/* Buttons */
.acts-profile-wrap .acts-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}
.acts-profile-wrap .acts-btn-primary {
    background: linear-gradient(135deg, var(--acts-gold), var(--acts-gold-dark));
    color: #fff;
}
.acts-profile-wrap .acts-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(212,168,83,0.4);
    transform: translateY(-1px);
}
.acts-profile-wrap .acts-btn-outline {
    background: rgba(255,255,255,0.06);
    color: var(--acts-text);
    border: 1px solid var(--acts-border);
}
.acts-profile-wrap .acts-btn-outline:hover { background: rgba(255,255,255,0.1); }

/* 깔끔한 흰색 버튼 (영상 보기·구매하기 등) */
.acts-profile-wrap .acts-btn-clean {
    background: #fff;
    color: #1a1814;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.acts-profile-wrap .acts-btn-clean:hover {
    background: #f8f8f8;
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.acts-profile-wrap .acts-btn-clean i { color: inherit; }
.acts-profile-shop-buy {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
    padding: 12px 16px;
    justify-content: center;
}

/* Badge */
.acts-profile-wrap .acts-badge-sm {
    background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(212,168,83,0.05));
    border: 1px solid rgba(212,168,83,0.3);
    color: var(--acts-gold);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* 문의하기 쪽지 모달 */
.acts-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.acts-profile-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.acts-profile-modal-content {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--acts-surface);
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.acts-profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--acts-border);
}
.acts-profile-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.acts-profile-modal-header h3 i { color: var(--acts-gold); }
.acts-profile-modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--acts-text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.acts-profile-modal-close:hover { color: var(--acts-text); }
.acts-profile-modal-body {
    padding: var(--space-lg);
}
.acts-profile-form-row {
    margin-bottom: var(--space-md);
}
.acts-profile-form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--acts-text-dim);
}
.acts-profile-form-row input,
.acts-profile-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--acts-border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    color: var(--acts-text);
    font-size: 0.9rem;
    font-family: inherit;
}
.acts-profile-form-row input:focus,
.acts-profile-form-row textarea:focus {
    outline: none;
    border-color: var(--acts-gold);
}
.acts-profile-form-row textarea { resize: vertical; min-height: 100px; }
.acts-profile-modal-footer {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--acts-border);
}

/* =========================================================
   QR 보기 모달 — 액츠미션 스타일: 어두운 배경·프리미엄, acts 색상
   ========================================================= */
.acts-profile-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.acts-profile-qr-modal[hidden] { display: none !important; }

/* 영상 재생 모달 (유튜브/비메오 인페이지 재생) */
.acts-profile-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.acts-profile-video-modal[hidden] { display: none !important; }
.acts-profile-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}
.acts-profile-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: min(96vh, 920px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #000;
    display: flex;
    flex-direction: column;
}
.acts-profile-video-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.85);
}
.acts-profile-video-modal-header-text {
    min-width: 0;
    flex: 1;
}
.acts-profile-video-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.acts-profile-video-modal-track {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.acts-profile-video-modal-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.acts-profile-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.acts-profile-video-modal-close .jmp-acts-ri { font-size: 22px; }
.acts-profile-video-modal-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.acts-profile-video-modal-body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.acts-profile-video-modal-api-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.acts-profile-video-modal-footer {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.acts-profile-video-modal-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.65rem 1rem;
}
.acts-profile-video-modal-playlist-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 1rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.acts-profile-video-modal-playlist-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}
.acts-profile-video-modal-playlist-hint {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}
.acts-profile-video-modal-playlist-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.75rem 0.65rem;
    max-height: 168px;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.acts-profile-video-modal-playlist-scroll::-webkit-scrollbar {
    height: 6px;
}
.acts-profile-video-modal-playlist-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}
.acts-profile-video-modal-playlist {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 4px 2px 8px;
}
.acts-profile-video-modal-pl-item {
    flex: 0 0 auto;
    width: 132px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.acts-profile-video-modal-pl-item:hover {
    background: rgba(255, 255, 255, 0.12);
}
.acts-profile-video-modal-pl-item.is-active {
    border-color: rgba(99, 102, 241, 0.95);
    background: rgba(99, 102, 241, 0.15);
}
.acts-profile-video-modal-pl-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.acts-profile-video-modal-pl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.acts-profile-video-modal-pl-thumb--empty {
    background: linear-gradient(135deg, rgba(60, 60, 70, 0.9), rgba(30, 30, 35, 0.95));
}
.acts-profile-video-modal-pl-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px 8px;
    min-width: 0;
}
.acts-profile-video-modal-pl-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.acts-profile-video-modal-pl-date {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}
.acts-profile-video-modal-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.acts-profile-video-modal-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
}
.acts-profile-video-modal-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.acts-profile-video-modal-nav .jmp-acts-ri { font-size: 18px; }
.acts-profile-video-modal-nav-label { line-height: 1; }
.acts-profile-video-modal-counter {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    min-width: 3.5rem;
    text-align: center;
}
.acts-profile-video-modal-autoplay {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    user-select: none;
}
.acts-profile-video-modal-autoplay input {
    width: 16px;
    height: 16px;
    accent-color: #fff;
}

.acts-profile-qr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}
.acts-profile-qr-modal-content {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.acts-profile-qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.acts-profile-qr-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.acts-profile-qr-modal-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.acts-profile-qr-modal-close:hover {
    transform: scale(0.96);
}
.acts-profile-qr-modal-close .jmp-acts-ri { font-size: 20px; }
.acts-profile-qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.acts-profile-qr-link {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.acts-profile-qr-link:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.acts-profile-qr-img {
    display: block;
    border-radius: 8px;
}
.acts-profile-qr-caption {
    font-size: 0.8125rem;
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
    margin: 0;
}
.acts-profile-qr-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}
.ap-qr-btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.ap-qr-btn-copy:hover {
    transform: translateY(-1px);
}
.ap-qr-btn-copy .jmp-acts-ri { font-size: 18px; }
.acts-profile-qr-share-feedback {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.acts-profile-qr-share-feedback.is-visible {
    opacity: 1;
}
.acts-profile-qr-joyn-sns {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* QR 모달 — 어두운 배경 프리미엄 스타일 (액츠미션). 모달은 #actsProfileRoot 밖에 둘 수 있어 .acts-p 접두 없음 */
.ap-qr-modal-mission .acts-profile-qr-modal-content {
    background: linear-gradient(180deg, #23264a 0%, #1e2138 100%);
    border: 1px solid rgba(69, 65, 255, 0.3);
}
.ap-qr-modal-mission .acts-profile-qr-modal-title {
    color: #F0F2FF;
}
.ap-qr-modal-mission .acts-profile-qr-modal-close {
    background: rgba(255, 255, 255, 0.06);
    color: #9CA0B8;
}
.ap-qr-modal-mission .acts-profile-qr-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F0F2FF;
}
.ap-qr-modal-mission .acts-profile-qr-caption {
    color: #9CA0B8;
}
.ap-qr-modal-mission .ap-qr-btn-copy {
    background: rgba(69, 65, 255, 0.2);
    border-color: rgba(167, 136, 255, 0.5);
    color: #C4B5FF;
}
.ap-qr-modal-mission .ap-qr-btn-copy:hover {
    background: rgba(69, 65, 255, 0.3);
    border-color: rgba(167, 136, 255, 0.65);
    color: #E0D8FF;
}
.ap-qr-modal-mission .acts-profile-qr-share-feedback.is-visible {
    color: #A788FF;
}
/* Joyn SNS v2 — QR 모달 내 단일 공유 버튼 (compact 권장) */
.ap-qr-modal-mission .acts-profile-qr-joyn-sns {
    border-top-color: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}
.ap-qr-modal-mission .acts-profile-qr-joyn-sns .joyn-sns-button {
    background: rgba(99, 102, 241, 0.35);
    border: 1px solid rgba(167, 136, 255, 0.45);
    color: #f0f2ff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.ap-qr-modal-mission .acts-profile-qr-joyn-sns .joyn-sns-button:hover,
.ap-qr-modal-mission .acts-profile-qr-joyn-sns .joyn-sns-button:focus-visible {
    background: rgba(99, 102, 241, 0.52);
    border-color: rgba(199, 180, 255, 0.65);
    color: #fff;
}
.ap-qr-modal-mission .acts-profile-qr-joyn-sns .joyn-sns-button.joyn-sns-style-compact {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
}
.ap-qr-modal-mission .acts-profile-qr-joyn-sns .joyn-sns-button.joyn-sns-style-compact .joyn-sns-button__icon svg {
    width: 20px;
    height: 20px;
}

/* 액츠 프로필 하단: 페이지 공유 (joyn-sns) */
.acts-profile-bottom-joyn-sns {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--acts-border, rgba(255, 255, 255, 0.08));
    text-align: center;
}
.acts-profile-bottom-joyn-sns-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--acts-text-dim, rgba(255, 255, 255, 0.7));
    margin: 0 0 var(--space-md) 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.acts-profile-bottom-joyn-sns-title i {
    font-size: 1.1em;
    color: inherit;
}
.acts-profile-bottom-joyn-sns-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

/* QR 모달 - 밝은 배경 고정 */
.acts-profile-qr-modal.acts-modal-light-bg {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}
.acts-profile-qr-modal.acts-modal-light-bg .acts-profile-qr-modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}
.acts-profile-qr-modal.acts-modal-light-bg .acts-profile-qr-modal-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: #1a1814 !important;
}
.acts-profile-qr-modal.acts-modal-light-bg .acts-profile-qr-modal-header {
    border-bottom: 1px solid #e5e7eb !important;
}
.acts-profile-qr-modal.acts-modal-light-bg .acts-profile-qr-modal-title {
    color: #1a1814 !important;
}
.acts-profile-qr-modal.acts-modal-light-bg .acts-profile-qr-modal-close {
    color: #57524a !important;
    background: transparent !important;
}
.acts-profile-qr-modal.acts-modal-light-bg .acts-profile-qr-modal-close:hover {
    color: #1a1814 !important;
}
.acts-profile-qr-modal.acts-modal-light-bg .acts-profile-qr-caption {
    color: #6b7280 !important;
}

/* Chart empty state */
.acts-profile-section p[style*="color:#999"] { color: var(--acts-text-dim) !important; }

/* =========================================================
   쪽지/프로필 모달 - 밝은 배경·글자색 고정 (가독성)
   ========================================================= */
.acts-modal-light-bg.acts-profile-modal,
.acts-modal-light-bg.acts-bm-message-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.acts-modal-light-bg.acts-bm-message-modal .acts-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}
.acts-modal-light-bg.acts-bm-message-modal .acts-modal-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: #1a1814 !important;
    overflow: hidden;
}
.acts-modal-light-bg.acts-bm-message-modal .acts-modal-header {
    border-bottom: 1px solid #e5e7eb !important;
    padding: 1rem 1.25rem;
}
.acts-modal-light-bg.acts-bm-message-modal .acts-modal-header h3 {
    color: #1a1814 !important;
    font-size: 1.1rem;
    margin: 0;
}
.acts-modal-light-bg.acts-bm-message-modal .acts-modal-close {
    color: #57524a !important;
    background: transparent !important;
}
.acts-modal-light-bg.acts-bm-message-modal .acts-modal-body {
    padding: 0;
    overflow: hidden;
}
.acts-modal-light-bg .acts-profile-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}
.acts-modal-light-bg .acts-profile-modal-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: #1a1814 !important;
    max-width: 480px;
    width: 100%;
}
.acts-modal-light-bg .acts-profile-modal-header {
    border-bottom: 1px solid #e5e7eb !important;
    padding: 1rem 1.25rem;
}
.acts-modal-light-bg .acts-profile-modal-header h3 {
    color: #1a1814 !important;
    font-size: 1.1rem;
    margin: 0;
}
.acts-modal-light-bg .acts-profile-modal-header h3 i {
    color: #9e7c24 !important;
}
.acts-modal-light-bg .acts-profile-modal-close {
    color: #57524a !important;
    background: transparent !important;
}
.acts-modal-light-bg .acts-profile-modal-close:hover {
    color: #1a1814 !important;
}
.acts-modal-light-bg .acts-profile-modal-body {
    padding: 1.25rem;
}
.acts-modal-light-bg .acts-profile-form-row label {
    color: #374151 !important;
}
.acts-modal-light-bg .acts-profile-form-row input,
.acts-modal-light-bg .acts-profile-form-row textarea {
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    color: #1a1814 !important;
}
.acts-modal-light-bg .acts-profile-form-row input::placeholder,
.acts-modal-light-bg .acts-profile-form-row textarea::placeholder {
    color: #6b7280;
}
.acts-modal-light-bg .acts-profile-form-row input:focus,
.acts-modal-light-bg .acts-profile-form-row textarea:focus {
    border-color: #9e7c24 !important;
    outline: none;
}
.acts-modal-light-bg .acts-profile-modal-footer {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 1rem;
    margin-top: 1rem;
}
.acts-modal-light-bg .acts-btn-outline {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}
.acts-modal-light-bg .acts-btn-outline:hover {
    background: #f3f4f6 !important;
    color: #1a1814 !important;
}
.acts-modal-light-bg .acts-btn-primary {
    background: linear-gradient(135deg, #b08930, #9e7c24) !important;
    color: #fff !important;
    border: none !important;
}

/* =========================================================
   Responsive (모바일 우선 + min-width 2단계)
   ========================================================= */
.acts-profile-hero-inner { flex-direction: column; text-align: center; }
.acts-profile-church { justify-content: center; }
.acts-profile-hero-actions { flex-direction: column; justify-content: center; }
.acts-profile-stats { grid-template-columns: 1fr; }
.acts-profile-nav { flex-direction: column; gap: var(--space-sm); }
.acts-profile-breadcrumb { display: none; }

@media (min-width: 481px) {
    .acts-profile-stats { grid-template-columns: repeat(2, 1fr); }
    .acts-profile-hero-actions { flex-direction: row; }
}
@media (min-width: 769px) {
    .acts-profile-hero-inner { flex-direction: row; text-align: left; }
    .acts-profile-church { justify-content: flex-start; }
    .acts-profile-hero-actions { justify-content: flex-start; }
    .acts-profile-nav { flex-direction: row; }
    .acts-profile-breadcrumb { display: flex; }
}
@media (max-width: 1024px) {
    .acts-profile-two-col { grid-template-columns: 1fr; }
    .acts-profile-contact-sns-row { grid-template-columns: 1fr; }
}
