/* ============================================
   adgrowthly — Front Page (snssupporter.com 클론)
   Primary: #185bdc / Layout: aside + main
   ============================================ */

/* ── 1. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body.adgrowthly-front-body {
    font-family: var(--ag-font-base);
    background: #f1f3f8;
    color: #1a1a1a;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Astra 기본 헤더/컨테이너 제거 */
.home #masthead,
.home .ast-banner-notice-wrap,
.home .wp-site-blocks > header { display: none !important; }

.home .site-content,
.home #primary,
.home .ast-container,
.home .entry-content {
    padding: 0 !important; margin: 0 !important; max-width: none !important;
}

/* ── 2. 사이트 헤더 ── */
.ag-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    height: 52px;
    display: flex;
    align-items: center;
}
.ag-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}
.ag-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
}
.ag-header-logo span { font-size: 15px; font-weight: 800; }
.ag-header-auth { display: flex; align-items: center; gap: 8px; }

/* ── 3. 페이지 레이아웃 ── */
.ag-layout {
    display: flex !important;
    flex-direction: row !important;
    min-height: calc(100vh - 52px);
    align-items: flex-start;
    width: 100%;
}

/* ── 4. 사이드바 ── */
.ag-sidebar {
    width: 260px !important;
    min-width: 260px !important;
    flex-shrink: 0 !important;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    min-height: calc(100vh - 52px);
    position: sticky;
    top: 52px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 52px);
}
.ag-sidebar-logo {
    padding: 20px 16px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.ag-sidebar-logo img { display: block; width: 130px; }

.ag-sidebar-auth {
    padding: 12px 16px;
    background: #f8f9ff;
    border-bottom: 1px solid #eef0f8;
}
.ag-sidebar-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #6b7280;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 10px;
}
.ag-sidebar-auth-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ag-sidebar-nav { padding: 8px 8px; flex: 1; }
.ag-sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.ag-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
}
.ag-sidebar-nav li a:hover { background: #f1f5ff; color: #185bdc; }
.ag-sidebar-nav li.active a { background: #f1f5ff; color: #185bdc; font-weight: 600; }
.ag-sidebar-nav li a i { width: 18px; text-align: center; font-size: 14px; color: #9ca3af; }
.ag-sidebar-nav li.active a i { color: #185bdc; }
.ag-sidebar-nav hr { border: none; border-top: 1px solid #f0f0f0; margin: 6px 4px; }

.ag-sidebar-proposal {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}
.ag-sidebar-proposal a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #185bdc;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #c7d9f9;
    border-radius: 8px;
    background: #f5f8ff;
    transition: background 0.15s;
}
.ag-sidebar-proposal a:hover { background: #eef3ff; }

.ag-sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.7;
}
.ag-sidebar-footer a { color: #9ca3af; text-decoration: none; }
.ag-sidebar-footer a:hover { color: #185bdc; }
.ag-sidebar-footer strong { color: #374151; }

/* ── 5. 메인 콘텐츠 ── */
.ag-main {
    flex: 1;
    min-width: 0;
    padding: 0;
}

/* ── 6. 실시간 주문 티커 ── */
.ag-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12.5px;
    color: #374151;
    overflow: hidden;
    white-space: nowrap;
    min-height: 40px;
}
.ag-ticker img { flex-shrink: 0; }
.ag-ticker-text { font-size: 12.5px; }

/* ── 7. 모바일 배너 슬라이더 ── */
.ag-mobile-slider {
    display: none !important;
    background: #fff;
}
.ag-mobile-slider img { width: 100%; display: block; cursor: pointer; }
.swiper-pagination { bottom: 8px !important; }

/* ── 8. 주문 영역 레이아웃 ── */
.ag-order-wrap {
    display: flex;
    gap: 40px;
    background: #f1f3f8;
    padding: 1rem;
    align-items: flex-start;
    flex: 1;
    max-width: 2200px;
    box-sizing: border-box;
}
.ag-order-primary {
    flex: 0 0 55%;
    width: 55%;
    min-width: 55%;
    max-width: 55%;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    min-height: 600px;
    box-sizing: border-box;
}
.ag-order-secondary { flex: 1; min-width: 0; padding: 16px 20px 0; overflow: hidden; }

/* ── 9. PC 배너 슬라이더 ── */
.ag-pc-slider { margin-bottom: 16px; border-radius: 10px; overflow: hidden; }
.ag-pc-slider img { width: 100%; display: block; cursor: pointer; }
.ag-pc-slider .swiper-button-prev,
.ag-pc-slider .swiper-button-next { color: #fff !important; }
.ag-pc-slider .swiper-button-prev::after,
.ag-pc-slider .swiper-button-next::after { font-size: 16px !important; }

/* ── 10. 주문 폼 ── */
.ag-order-bubble {
    padding: 20px 20px 0;
}
.ag-order-bubble h1 {
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 14px 14px 14px 4px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.6;
    margin: 0 0 16px;
    box-shadow: 0 1px 4px rgba(24,91,220,0.07);
}
.ag-order-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ag-order-title h2 { font-size: 18px; font-weight: 800; margin: 0; }
.ag-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.ag-guide-btn:hover { background: #e5e7eb; }
.ag-order-sub {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}
.ag-order-sub a { color: #185bdc; text-decoration: none; }
.ag-order-sub a:hover { text-decoration: underline; }

/* 주문 폼 섹션 */
.ag-order-form { padding: 0 20px 20px; }

.ag-step-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}
.ag-step-num {
    width: 22px;
    height: 22px;
    background: #185bdc;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 플랫폼 버튼 그리드 */
.ag-platform-grid {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(auto-fill, 72px);
    justify-content: center;
    padding-bottom: 32px;
    list-style: none;
    padding-left: 0;
    margin: 0 0 8px;
}
.ag-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: 1.5px solid transparent;
    border-radius: 16px;
    background: #f7f8fa;
    cursor: pointer;
    font-size: 11px;
    color: #4b5563;
    font-weight: 700;
    transition: all 0.15s ease;
    width: 72px;
    height: 72px;
    position: relative;
    margin-bottom: 18px;
}
.ag-platform-btn:hover { border-color: #185bdc; background: #f0f5ff; }
.ag-platform-btn:hover span { color: #185bdc; }
.ag-platform-btn.active {
    border-color: #185bdc;
    background: #f0f5ff;
    color: #185bdc;
}
.ag-platform-btn.active span { color: #185bdc; }
.ag-platform-btn img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    object-position: center;
}
.ag-platform-btn span {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.2s ease;
    pointer-events: none;
}

/* 서비스 선택 드롭다운 */
.ag-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13.5px;
    color: #374151;
    background: #fff;
    margin-bottom: 16px;
    font-family: var(--ag-font-base);
    outline: none;
    transition: border 0.15s;
    cursor: pointer;
}
.ag-form-control:focus { border-color: #185bdc; box-shadow: 0 0 0 3px rgba(24,91,220,0.1); }

/* 주문 금액 */
.ag-charge-wrap { margin-bottom: 14px; }
.ag-charge-label { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.ag-charge-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #185bdc;
    background: #f5f8ff;
    text-align: right;
}

/* 주문하기 버튼 */
.ag-order-submit-btn {
    width: 100%;
    padding: 14px;
    background: #185bdc;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: var(--ag-font-base);
}
.ag-order-submit-btn:hover { background: #1451c4; transform: translateY(-1px); }

/* ── 11. 공지사항 ── */
.ag-notice {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
}
.ag-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ag-notice-header h2 { font-size: 15px; font-weight: 700; margin: 0; }
.ag-notice-info { font-size: 11px; color: #9ca3af; }
.ag-notice-list { list-style: none; padding: 0; margin: 0; }
.ag-notice-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.1s;
}
.ag-notice-list li:last-child { border-bottom: none; }
.ag-notice-list li:hover { color: #185bdc; }
.ag-notice-list li::before {
    content: '';
    width: 5px; height: 5px;
    background: #185bdc;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── 12. 가이드 섹션 ── */
.ag-guide {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
}
.ag-guide-header { margin-bottom: 14px; }
.ag-guide-header h2 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }

.ag-platform-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ag-platform-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s;
    font-family: var(--ag-font-base);
}
.ag-platform-tab:hover { border-color: #185bdc; color: #185bdc; }
.ag-platform-tab.active { border-color: #185bdc; background: #f0f5ff; color: #185bdc; font-weight: 700; }
.ag-platform-tab img { width: 16px; height: 16px; }

.ag-tab-content { display: none; }
.ag-tab-content.active { display: block; }

.ag-guide-btns { display: flex; gap: 8px; margin-bottom: 14px; }
.ag-guide-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 12.5px;
    color: #374151;
    cursor: pointer;
    font-family: var(--ag-font-base);
    transition: all 0.15s;
}
.ag-guide-btn-inline:hover { border-color: #185bdc; color: #185bdc; }
.ag-guide-btn-inline.warning { color: #dc2626; border-color: #fca5a5; }
.ag-guide-btn-inline.warning:hover { background: #fff5f5; }

.ag-service-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.ag-service-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ag-service-card:hover { border-color: #185bdc; box-shadow: 0 2px 8px rgba(24,91,220,0.08); }
.ag-service-card h3 { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }
.ag-service-card p { font-size: 12px; color: #6b7280; line-height: 1.6; margin: 0; }

/* FAQ 아코디언 */
.ag-faq { margin-top: 16px; }
.ag-faq h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.ag-faq details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}
.ag-faq summary {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary::after { content: '+'; font-size: 18px; color: #9ca3af; }
.ag-faq details[open] summary::after { content: '−'; }
.ag-faq details[open] { border-color: #185bdc; }
.ag-faq details[open] summary { color: #185bdc; background: #f5f8ff; }
.ag-faq .faq-answer { padding: 12px 16px; font-size: 12.5px; color: #6b7280; line-height: 1.7; border-top: 1px solid #e5e7eb; }

/* ── 13. CTA 배너 ── */
.ag-cta-banner {
    background: linear-gradient(135deg, #185bdc 0%, #3b82f6 100%);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}
.ag-cta-banner h3 { font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.ag-cta-banner p { font-size: 13px; color: rgba(255,255,255,0.8); margin: 0; }
.ag-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #fff;
    color: #185bdc;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--ag-font-base);
    transition: background 0.15s;
    flex-shrink: 0;
}
.ag-cta-btn:hover { background: #f0f5ff; }

/* ── 14. 통계 섹션 ── */
.ag-stats {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 0;
}
.ag-stat-item {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
}
.ag-stat-divider { width: 1px; height: 40px; background: #e8e8e8; flex-shrink: 0; }
.ag-stat-num { display: block; font-size: 22px; font-weight: 900; color: #185bdc; letter-spacing: -0.03em; }
.ag-stat-label { display: block; font-size: 11.5px; color: #9ca3af; margin-top: 2px; }

/* ── 15. 리뷰 섹션 ── */
.ag-reviews { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px; border: 1px solid #e8e8e8; }
.ag-reviews-header { margin-bottom: 16px; }
.ag-reviews-header h2 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.ag-reviews-header p { font-size: 12.5px; color: #9ca3af; margin: 0; }
.ag-review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ag-review-card {
    border: 1.5px solid #f0f0f0;
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.15s;
}
.ag-review-card:hover { border-color: #c7d9f9; }
.ag-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ag-review-user { display: flex; align-items: center; gap: 10px; }
.ag-review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #185bdc;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ag-review-name { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.ag-review-service { font-size: 11.5px; color: #9ca3af; }
.ag-review-stars { color: #f59e0b; font-size: 13px; }
.ag-review-text { font-size: 12.5px; color: #4b5563; line-height: 1.7; margin: 0; }

/* ── 16. 고객지원 섹션 ── */
.ag-support { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 20px; border: 1px solid #e8e8e8; }
.ag-support h2 { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
.ag-support-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ag-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
    font-family: var(--ag-font-base);
}
.ag-support-btn.kakao { background: #fee500; color: #3c1e1e; }
.ag-support-btn.kakao:hover { background: #f5dc00; }
.ag-support-btn.phone { background: #185bdc; color: #fff; }
.ag-support-btn.phone:hover { background: #1451c4; }
.ag-support-btn.doc { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.ag-support-btn.doc:hover { background: #e5e7eb; }

/* ── 17. Bootstrap 버튼 스타일 정리 ── */
.btn-primary-ag {
    background: #185bdc;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--ag-font-base);
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
.btn-primary-ag:hover { background: #1451c4; color: #fff; text-decoration: none; }
.btn-outline-ag {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--ag-font-base);
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s;
}
.btn-outline-ag:hover { border-color: #185bdc; color: #185bdc; }

/* ── 18. 로그인 모달 ── */
.ag-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.ag-modal-overlay.open { display: flex; }
.ag-modal {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    width: 380px;
    max-width: 95vw;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.ag-modal-header {
    background: linear-gradient(135deg, #185bdc 0%, #3b82f6 100%);
    padding: 28px 24px;
    text-align: center;
}
.ag-modal-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.ag-modal-title { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.ag-modal-sub { font-size: 13px; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.5; }
.ag-modal-body { padding: 24px; }
.ag-modal-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: var(--ag-font-base);
    margin-bottom: 10px;
    transition: background 0.15s;
}
.ag-modal-btn.primary { background: #185bdc; color: #fff; }
.ag-modal-btn.primary:hover { background: #1451c4; }
.ag-modal-btn.secondary { background: #f3f4f6; color: #374151; }
.ag-modal-btn.secondary:hover { background: #e5e7eb; }
.ag-modal-close-row {
    text-align: center;
    margin-top: 4px;
}
.ag-modal-close-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    font-family: var(--ag-font-base);
    padding: 6px 10px;
}
.ag-modal-close-btn:hover { color: #374151; }

/* ── 19. 카카오톡 플로팅 버튼 ── */
.ag-kakao-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 54px;
    height: 54px;
    background: #fee500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ag-kakao-float:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.ag-kakao-float img { width: 30px; height: 30px; }

/* ── 20. 반응형 ── */
@media (max-width: 1024px) {
    .ag-order-primary { flex: 0 0 360px; max-width: 360px; }
    .ag-service-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1440px) {
    .ag-order-wrap { flex-direction: column; gap: 20px; padding: 0.5rem; }
    .ag-order-primary { flex: none; width: 100%; max-width: 100%; min-width: 100%; }
    .ag-order-secondary { max-width: 100%; overflow-x: hidden; }
}

@media (max-width: 768px) {
    .ag-sidebar { display: none; }
    .ag-mobile-slider { display: block; }
    .ag-order-wrap { flex-direction: column; }
    .ag-order-primary { flex: none; max-width: 100%; width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid #e8e8e8; }
    .ag-order-secondary { padding: 16px; }
    .ag-service-card-grid { grid-template-columns: 1fr; }
    .ag-review-grid { grid-template-columns: 1fr; }
    .ag-stats { flex-wrap: wrap; }
    .ag-cta-banner { flex-direction: column; text-align: center; }
    .ag-pc-slider { display: none; }
}

@media (max-width: 480px) {
    .ag-platform-btn { min-width: 52px; padding: 6px 8px; font-size: 10px; }
    .ag-platform-btn img { width: 20px; height: 20px; }
    .ag-support-btns { flex-direction: column; }
    .ag-support-btn { justify-content: center; }
}

/* ── 서비스/상품 2단 패널 ── */
.ag-service-panel {
    display: flex;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 220px;
}
.ag-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 90px;
    min-width: 90px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.ag-service-item {
    padding: 10px 12px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ag-service-item:hover { background: #eef2ff; color: #185bdc; }
.ag-service-item.active {
    background: #fff;
    color: #185bdc;
    font-weight: 600;
    border-left: 3px solid #185bdc;
}
.ag-product-list-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ag-product-list-header {
    display: grid;
    grid-template-columns: 36px 1fr 72px;
    gap: 0;
    background: #f1f5f9;
    padding: 7px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #e2e8f0;
}
.ag-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 260px;
}
.ag-product-item {
    display: grid;
    grid-template-columns: 36px 1fr 72px;
    align-items: center;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #374151;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.ag-product-item:hover { background: #eef2ff; }
.ag-product-item.active { background: #eff6ff; color: #185bdc; font-weight: 600; }
.ag-product-item .prod-num { color: #9ca3af; font-size: 11px; }
.ag-product-item .prod-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.ag-product-item .prod-price { text-align: right; color: #185bdc; font-weight: 700; font-size: 12px; white-space: nowrap; }
