@charset "utf-8";

/* ==========================================================================
   [코라이브] 공식 광고센터 (Ad Portal & Management) 전용 통합 스타일시트
   theme/kolive_new/css/ad.portal.css
   - Zero Inline Style & Pure CSS Tokens
   - 16px = 1rem 기준 표준 rem 단위 준수
   ========================================================================== */

/* 1. 상단 탭 네비게이션 */
.ad-nav-tabs {
    display: flex;
    gap: 0.63rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.ad-nav-tab {
    padding: 0.63rem 1.38rem;
    font-weight: 700;
    font-size: 0.94rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.ad-nav-tab.active {
    background: #2563eb;
    color: #ffffff;
}

.ad-nav-tab:hover:not(.active) {
    background: #f1f5f9;
    color: #0f172a;
}

/* 2. 대문 히어로 배너 */
.ad-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 3rem 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 0.63rem 1.56rem -0.31rem rgba(15, 23, 42, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.ad-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #93c5fd;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.81rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.ad-hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
}

.ad-hero-desc {
    font-size: 1.06rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 38.75rem;
}

.ad-hero-actions {
    display: flex;
    gap: 0.88rem;
    flex-wrap: wrap;
}

.ad-btn-primary {
    background: #ffffff;
    color: #1e3a8a;
    padding: 0.88rem 1.75rem;
    border-radius: 0.63rem;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.ad-btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.ad-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.88rem 1.75rem;
    border-radius: 0.63rem;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ad-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 3. 4대 강점 카드 */
.ad-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .ad-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .ad-feature-grid { grid-template-columns: 1fr; }
}

.ad-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 0.13rem 0.5rem rgba(0, 0, 0, 0.03);
}

.ad-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ad-feature-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.ad-feature-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

/* 4. 상품 그리드 & 상품 카드 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.25rem, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.63rem 1.5rem rgba(0, 0, 0, 0.08);
}

.product-badge {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.69rem;
    font-weight: 800;
    padding: 0.19rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.product-spec-tag {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.38rem;
    display: inline-block;
    margin: 0.5rem 0 1rem 0;
}

/* 5. 주요 구좌 & 단가 안내 표 */
.ad-section-title {
    font-size: 1.38rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-section-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.ad-price-table-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.03);
}

.ad-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.ad-price-table th {
    background: #f8fafc;
    color: #334155;
    padding: 1rem 1.25rem;
    font-weight: 800;
    border-bottom: 1px solid #e2e8f0;
}

.ad-price-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.ad-price-table tr:last-child td {
    border-bottom: none;
}

.ad-price-table tr:hover td {
    background: #f8fafc;
}

.ad-price-tag {
    font-weight: 900;
    color: #2563eb;
    font-size: 0.94rem;
}

/* 6. 빠른 제휴 및 광고 상담 신청 폼 */
.ad-inquiry-box {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 1.25rem;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 800px) {
    .ad-inquiry-box { grid-template-columns: 1fr; padding: 1.5rem; }
}

.ad-form-group {
    margin-bottom: 1rem;
}

.ad-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.ad-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.ad-form-input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ad-form-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    padding: 0.88rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ad-form-btn:hover {
    background: #1d4ed8;
}

/* 7. 신청서 및 결제 공통 스타일 */
.period-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.88rem;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
}

.period-option-card:hover {
    border-color: #93c5fd;
}

.period-option-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.ad-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
}

.ad-type-btn.selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.pay-option-card {
    border: 2px solid #2563eb;
    border-radius: 0.75rem;
    padding: 1.13rem 1.25rem;
    background: #eff6ff;
    display: flex;
    align-items: center;
    gap: 0.88rem;
    margin-bottom: 0.75rem;
}

/* 8. 가이드 및 보고서 스타일 */
.ad-guide-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 3rem 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 0.63rem 1.56rem -0.31rem rgba(15, 23, 42, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.ad-guide-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ad-guide-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
}

.ad-step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.ad-spec-table {
    width: 100%;
    border-collapse: collapse;
}

/* 9. 모달 및 와이어프레임 */
.preview-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.preview-modal-backdrop.open {
    display: flex;
}

.preview-modal-box {
    background: #ffffff;
    border-radius: 1.25rem;
    max-width: 47.5rem;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 1.56rem 3.13rem -0.75rem rgba(0, 0, 0, 0.25);
    position: relative;
}

.wireframe-screen {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.25rem 0;
    min-height: 15rem;
}

.wf-header {
    height: 1.5rem;
    background: #e2e8f0;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.wf-highlight-ad {
    background: #fef08a;
    border: 2px dashed #ca8a04;
    color: #854d0e;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

.badge-pill {
    padding: 0.25rem 0.63rem;
    border-radius: 9999px;
    font-size: 0.69rem;
    font-weight: 700;
}

/* 광고 포털 공통 및 인덱스 클린 클래스 */
.ad-pos-code {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
    font-weight: 700;
}
.ad-pos-name {
    font-weight: 800;
}
.ad-spec-text {
    font-size: 0.81rem;
    color: #64748b;
}
.ad-contact-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.65rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.ad-inquiry-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.ad-inquiry-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.ad-inquiry-info {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.8;
}
.ad-inquiry-info i {
    color: #2563eb;
    width: 1.25rem;
}
.ad-inquiry-form {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}

/* 캠페인 테이블 전용 클래스 */
.ad-campaign-table {
    width: 100%;
    border-collapse: collapse;
}
.ad-campaign-thead-tr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.ad-campaign-tbody-tr {
    border-bottom: 1px solid #f1f5f9;
}
.ad-badge-group {
    background: #eff6ff;
    color: #1e40af;
}
.ad-badge-active {
    background: #dcfce7;
    color: #166534;
    padding: 0.38rem 0.94rem;
}
.ad-badge-inactive {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.38rem 0.94rem;
}
.ad-btn-report {
    font-size: 0.75rem;
    padding: 0.5rem 0.94rem;
}
.ad-empty-cell {
    padding: 6.25rem;
    text-align: center;
    color: #94a3b8;
}
.ad-empty-cell i {
    font-size: 2rem;
    display: block;
}

/* 광고 성과 보고서 (report.php) 클린 클래스 */
.ad-report-header {
    margin-bottom: 1.5rem;
}
.ad-report-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.38rem 0;
}
.ad-report-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
.ad-report-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.94rem rgba(0, 0, 0, 0.05);
}
.ad-report-thead-tr {
    background: #1e293b;
    color: #ffffff;
}
.ad-report-thead-th {
    padding: 0.94rem;
}
.ad-report-tbody-tr {
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}
.ad-report-td-title {
    padding: 1.25rem;
    text-align: left;
}
.ad-report-od-title {
    font-weight: 800;
    color: #1e293b;
}
.ad-report-od-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}
.ad-report-td-period {
    padding: 0.94rem;
    font-size: 0.81rem;
    color: #475569;
}
.ad-report-td-imp {
    padding: 0.94rem;
    font-weight: 700;
    color: #1e293b;
}
.ad-report-td-click {
    padding: 0.94rem;
    font-weight: 700;
    color: #0ea5e9;
}
.ad-report-td-ctr {
    padding: 0.94rem;
}
.ad-report-ctr-bar {
    background: #f1f5f9;
    height: 0.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    width: 3.75rem;
    margin: 0 auto 0.31rem;
}
.ad-report-ctr-fill {
    background: var(--primary, #2563eb);
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ad-report-ctr-pct {
    font-size: 0.81rem;
    font-weight: 800;
    color: var(--primary, #2563eb);
}
.ad-report-td-status {
    padding: 0.94rem;
}
.ad-report-empty {
    padding: 3.13rem;
    color: #94a3b8;
}
.ad-report-footer-link {
    margin-top: 1.88rem;
    text-align: right;
}
.ad-report-back-btn {
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
}

/* 결제 페이지 (payment.php) 클린 클래스 */
.ad-pay-card {
    max-width: 48.75rem;
    margin: 0 auto;
    border-radius: 1.25rem;
}
.ad-pay-header {
    text-align: center;
    margin-bottom: 2rem;
}
.ad-pay-order-badge {
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}
.ad-pay-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0.5rem 0 0.38rem 0;
    color: #0f172a;
}
.ad-pay-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
.ad-pay-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.ad-pay-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.ad-pay-summary-label {
    color: #64748b;
    font-weight: 700;
}
.ad-pay-summary-val-dark {
    font-weight: 800;
    color: #0f172a;
}
.ad-pay-summary-val-slate {
    font-weight: 700;
    color: #1e293b;
}
.ad-pay-summary-val-indigo {
    font-weight: 700;
    color: #4f46e5;
}
.ad-pay-summary-val-blue {
    font-weight: 800;
    color: #2563eb;
}
.ad-pay-summary-total-row {
    border-top: 1px solid #cbd5e1;
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ad-pay-summary-total-label {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
}
.ad-pay-summary-total-val {
    font-weight: 900;
    font-size: 1.6rem;
    color: #2563eb;
}
.ad-pay-method-section {
    margin-bottom: 2rem;
}
.ad-pay-method-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.ad-pay-opt-label {
    cursor: pointer;
    flex: 1;
}
.ad-pay-opt-title-blue {
    font-weight: 800;
    color: #1e40af;
    font-size: 1rem;
}
.ad-pay-opt-title-dark {
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
}
.ad-pay-opt-desc {
    font-size: 0.85rem;
    color: #64748b;
}
.ad-pay-opt-point {
    border-color: #e2e8f0;
    background: #ffffff;
}
.ad-pay-submit-btn {
    width: 100%;
    padding: 1.13rem;
    font-size: 1.25rem;
    font-weight: 900;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.56rem rgba(37, 99, 235, 0.3);
}
.ad-pay-cancel-wrap {
    text-align: center;
    margin-top: 1.25rem;
}
.ad-pay-cancel-link {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
}

/* 가이드 페이지 (guide.php) 클린 클래스 */
.ad-guide-hero-left {
    flex: 1;
    min-width: 18.75rem;
}
.ad-guide-hero-badge {
    background: rgba(37, 99, 235, 0.3);
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    text-transform: uppercase;
}
.ad-guide-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.75rem 0 0.5rem 0;
    color: #ffffff;
}
.ad-guide-hero-desc {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}
.ad-guide-hero-btn {
    padding: 0.88rem 1.75rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    font-weight: 800;
    box-shadow: 0 0.25rem 0.88rem rgba(37, 99, 235, 0.4);
}
.ad-guide-sec-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
}
.ad-guide-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.ad-guide-step-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}
.ad-step-num-amber {
    background: #f59e0b;
}
.ad-step-num-emerald {
    background: #10b981;
}
.ad-step-num-indigo {
    background: #6366f1;
}
.ad-guide-spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.ad-guide-spec-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.ad-guide-spec-notice {
    font-size: 0.85rem;
    color: #64748b;
}
.ad-guide-th-ch { width: 10%; }
.ad-guide-th-name { width: 25%; }
.ad-guide-th-res { width: 20%; }
.ad-guide-th-price { width: 15%; text-align: center; }
.ad-guide-th-slots { width: 10%; text-align: center; }
.ad-guide-th-action { width: 20%; text-align: center; }
.ad-guide-badge-ch {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
}
.ad-guide-td-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
}
.ad-guide-td-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.13rem;
}
.ad-guide-td-res {
    font-family: monospace;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    padding: 0.19rem 0.5rem;
    border-radius: 0.25rem;
}
.ad-guide-td-price {
    text-align: center;
    font-weight: 800;
    color: #2563eb;
    font-size: 1.05rem;
}
.ad-guide-td-slots {
    text-align: center;
    color: #475569;
    font-weight: 700;
}
.ad-guide-td-action {
    text-align: center;
}
.ad-guide-btn-apply {
    padding: 0.38rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0.5rem;
}
.ad-guide-card-danger {
    border-left: 0.25rem solid #ef4444;
}
.ad-guide-sub-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}
.ad-guide-list {
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 광고 상품 목록 & 미리보기 (products.php) 클린 클래스 */
.ad-prod-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}
.ad-prod-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.38rem 0;
}
.ad-prod-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
.ad-prod-count-badge {
    font-size: 0.85rem;
    color: #64748b;
}
.ad-prod-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.63rem;
}
.ad-prod-card-pos {
    font-size: 0.69rem;
    color: #94a3b8;
    font-family: monospace;
}
.ad-prod-card-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.38rem 0;
}
.ad-prod-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.ad-prod-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.63rem;
    margin-bottom: 0.88rem;
    font-size: 0.69rem;
    color: #475569;
}
.ad-prod-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.13rem;
}
.ad-prod-price-row-sub {
    display: flex;
    justify-content: space-between;
    color: #64748b;
}
.ad-prod-price-highlight {
    color: #2563eb;
}
.ad-prod-discount-tag {
    color: #16a34a;
    font-weight: 700;
}
.ad-prod-price-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}
.ad-prod-price-label {
    font-size: 0.69rem;
    color: #94a3b8;
}
.ad-prod-price-main {
    font-size: 1.3rem;
    font-weight: 900;
    color: #2563eb;
}
.ad-prod-price-unit {
    font-size: 0.9rem;
    font-weight: normal;
    color: #64748b;
}
.ad-prod-card-actions {
    display: flex;
    gap: 0.5rem;
}
.ad-prod-btn-preview {
    flex: 1;
    font-weight: 700;
    font-size: 0.88rem;
}
.ad-prod-btn-apply {
    flex: 1;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
}

/* 모달 및 동적 와이어프레임 */
.preview-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.preview-modal-backdrop.open {
    display: flex;
}
.preview-modal-box {
    background: #ffffff;
    border-radius: 1rem;
    max-width: 45rem;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 1.25rem 3.13rem rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.ad-slot-badge-count {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
}
.ad-pv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.ad-pv-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0.38rem 0 0.13rem 0;
}
.ad-pv-spec {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}
.ad-pv-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}
.ad-pv-period-box {
    margin-top: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.63rem;
    padding: 0.88rem;
    font-size: 0.75rem;
}
.ad-pv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
.ad-pv-price-label {
    font-size: 0.75rem;
    color: #64748b;
}
.ad-pv-price-val {
    font-size: 1.3rem;
    color: #2563eb;
    margin-left: 0.25rem;
}
.ad-pv-btn-group {
    display: flex;
    gap: 0.5rem;
}
.ad-pv-btn-apply {
    font-weight: 800;
    padding: 0.63rem 1.5rem;
}
.ad-pv-pt-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.38rem;
}
.ad-pv-pt-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.38rem;
    text-align: center;
}
.ad-pv-pt-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.38rem;
    padding: 0.38rem 0.25rem;
}
.ad-pv-pt-item-active {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 0.38rem;
    padding: 0.38rem 0.25rem;
}
.ad-wf-ad-60 { height: 3.75rem; margin-bottom: 0.75rem; }
.ad-wf-ad-70 { height: 4.38rem; margin-bottom: 0.63rem; }
.ad-wf-ad-170 { height: 10.63rem; }
.ad-wf-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 0.63rem; }
.ad-wf-grid-2-12 { display: grid; grid-template-columns: 2fr 1.2fr; gap: 0.75rem; }
.ad-wf-box-40 { height: 2.5rem; background: #e2e8f0; border-radius: 0.25rem; margin-bottom: 0.63rem; }
.ad-wf-box-60 { height: 3.75rem; background: #e2e8f0; border-radius: 0.25rem; }
.ad-wf-box-90 { height: 5.63rem; background: #e2e8f0; border-radius: 0.38rem; }
.ad-wf-box-110 { height: 6.88rem; background: #e2e8f0; border-radius: 0.38rem; }
.ad-wf-box-170 { height: 10.63rem; background: #e2e8f0; border-radius: 0.38rem; padding: 0.63rem; font-size: 0.69rem; color: #64748b; }

/* 광고 신청 폼 (apply.php) 클린 클래스 */
.ad-apply-card {
    max-width: 55rem;
    margin: 0 auto;
    border-radius: 1.25rem;
}
.ad-apply-header {
    margin-bottom: 2rem;
    text-align: center;
}
.ad-apply-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}
.ad-apply-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0.5rem 0 0.38rem 0;
    color: #0f172a;
}
.ad-apply-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
.ad-apply-section {
    margin-bottom: 2.25rem;
}
.ad-apply-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.ad-apply-sec-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
    margin: 0;
}
.ad-apply-change-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.ad-apply-slot-box {
    background: #f8fafc;
    border: 2px solid #2563eb;
    border-radius: 0.88rem;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.ad-apply-slot-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.38rem;
}
.ad-apply-slot-badge {
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.69rem;
}
.ad-apply-slot-pos {
    font-family: monospace;
    font-weight: 700;
    color: #4f46e5;
    font-size: 0.75rem;
}
.ad-apply-slot-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}
.ad-apply-slot-meta {
    font-size: 0.88rem;
    color: #64748b;
}
.ad-apply-slot-right {
    text-align: right;
}
.ad-apply-slot-price-label {
    font-size: 0.69rem;
    color: #94a3b8;
}
.ad-apply-slot-price-main {
    font-size: 1.4rem;
    font-weight: 900;
    color: #2563eb;
}
.ad-apply-slot-price-unit {
    font-size: 0.9rem;
    font-weight: normal;
    color: #64748b;
}
.ad-apply-label-block {
    display: block;
    font-weight: 800;
    margin-bottom: 0.88rem;
    font-size: 1.1rem;
    color: #0f172a;
}
.ad-period-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.63rem;
}
.ad-period-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.ad-period-price {
    font-weight: 900;
    color: #2563eb;
    font-size: 1.05rem;
}
.ad-period-sub {
    font-size: 0.63rem;
    color: #64748b;
}
.ad-period-tag-green {
    font-size: 0.63rem;
    color: #16a34a;
    font-weight: 700;
}
.ad-apply-type-grid {
    display: flex;
    gap: 0.75rem;
}
.ad-apply-type-icon {
    font-size: 1.4rem;
    margin-bottom: 0.38rem;
    display: block;
}
.ad-apply-type-name {
    display: block;
    font-size: 1rem;
}
.ad-apply-type-sub {
    font-size: 0.8rem;
    color: #64748b;
}
.ad-apply-field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.ad-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
}
.ad-upload-notice {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.5rem 0 0 0;
}
.ad-text-type-box {
    margin-bottom: 2.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
}
.ad-text-type-box.hidden {
    display: none;
}
.ad-btn-text-input {
    width: 12.5rem;
}
.ad-apply-total-banner {
    background: #eff6ff;
    border: 2px solid #93c5fd;
    border-radius: 0.88rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.ad-apply-total-subtitle {
    font-size: 0.75rem;
    color: #1e40af;
    font-weight: 700;
}
.ad-apply-total-period {
    font-size: 0.95rem;
    color: #1e3a8a;
    margin-top: 0.13rem;
}
.ad-apply-total-price-label {
    font-size: 0.75rem;
    color: #64748b;
}
.ad-apply-total-price-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2563eb;
}
.ad-apply-submit-btn {
    padding: 1rem 4rem;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.25rem rgba(37, 99, 235, 0.25);
}
.ad-radio-hidden {
    display: none;
}

/* ==========================================================================
   대문 안내 페이지 전용 클래스 (.cursorrules 준수: Zero Inline Styles)
   ========================================================================== */
.ad-section-title i { color: #2563eb; }
.ad-pos-code { background: #eff6ff; color: #2563eb; padding: 0.13rem 0.38rem; border-radius: 0.25rem; font-weight: 700; }
.ad-name-cell { font-weight: 800; }
.ad-spec-text { font-size: 0.81rem; color: #64748b; }
.ad-quick-badge { display: inline-block; background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; padding: 0.25rem 0.63rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.ad-inquiry-title { font-size: 1.63rem; font-weight: 900; color: #0f172a; margin-bottom: 0.75rem; }
.ad-inquiry-desc { font-size: 0.94rem; color: #475569; line-height: 1.6; margin-bottom: 1.5rem; }
.ad-contact-info { font-size: 0.88rem; color: #334155; line-height: 1.8; }
.ad-contact-info i { color: #2563eb; width: 1.25rem; }
.ad-inquiry-form { background: #ffffff; padding: 1.75rem; border-radius: 1rem; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }

/* ==========================================================================
   캠페인 및 보고서 전용 클래스 (.cursorrules 준수: Zero Inline Styles)
   ========================================================================== */
.ad-table { width: 100%; border-collapse: collapse; }
.ad-table thead tr { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.ad-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.ad-badge-blue { background: #eff6ff; color: #1e40af; }
.ad-badge-active { background: #dcfce7; color: #166534; padding: 0.38rem 0.94rem; }
.ad-badge-ended { background: #f1f5f9; color: #64748b; padding: 0.38rem 0.94rem; }
.ad-btn-sm { font-size: 0.75rem; padding: 0.5rem 0.94rem; }
.ad-empty-cell { padding: 6.25rem; text-align: center; color: #94a3b8; }
.ad-empty-icon { font-size: 2rem; display: block; }

.ad-header-wrap { margin-bottom: 1.5rem; }
.ad-header-title { font-size: 1.8rem; font-weight: 900; color: #0f172a; margin: 0 0 0.38rem 0; }
.ad-header-desc { color: #64748b; font-size: 0.95rem; margin: 0; }
.ad-report-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 0.25rem 0.94rem rgba(0,0,0,0.05); }
.ad-report-thead tr { background: #1e293b; color: #ffffff; }
.ad-report-th { padding: 0.94rem; font-size: 0.9rem; font-weight: 700; }
.ad-report-tr { border-bottom: 1px solid #f1f5f9; text-align: center; }
.ad-report-td-left { padding: 1.25rem; text-align: left; }
.ad-report-title { font-weight: 800; color: #1e293b; font-size: 1rem; }
.ad-report-sub { font-size: 0.75rem; color: #94a3b8; margin-top: 0.25rem; }
.ad-report-period { padding: 0.94rem; font-size: 0.81rem; color: #475569; }
.ad-report-cnt { padding: 0.94rem; font-weight: 700; color: #1e293b; }
.ad-report-click { padding: 0.94rem; font-weight: 700; color: #0ea5e9; }
.ad-report-td { padding: 0.94rem; }
.ad-progress-bar-bg { background: #f1f5f9; height: 0.5rem; border-radius: 0.25rem; overflow: hidden; width: 3.75rem; margin: 0 auto 0.31rem; }
.ad-progress-bar-fill { background: #2563eb; height: 100%; }
.ad-ctr-val { font-size: 0.81rem; font-weight: 800; color: #2563eb; }
.ad-status-active { color: #166534; font-weight: 700; }
.ad-status-ended { color: #94a3b8; }
.ad-empty-report { padding: 3.13rem; color: #94a3b8; }
.ad-back-link-wrap { margin-top: 1.88rem; text-align: right; }
.ad-back-link { color: #64748b; text-decoration: none; font-weight: 700; }

