/* ============================================================
   바로넷 랜딩페이지 - 공통 스타일
   색상: 보라/퍼플 계열 + 노란색 포인트
   ============================================================ */

:root {
    --purple: #6B3FE7;
    --purple-dark: #4A2CA3;
    --purple-light: #9B76FF;
    --yellow: #FFE200;
    --yellow-dark: #F5C800;
    --dark-navy: #1A1040;
    --dark-card: #2A1F6B;
    --white: #FFFFFF;
    --gray-light: #f4f4f8;
    --text: #1a1a2e;
    --text-muted: #888;
    --line: #e0e0ef;
    --red: #e53e3e;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(107, 63, 231, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    background: linear-gradient(145deg, #1A0A4A 0%, #2D1B7A 50%, #1E1060 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ---- 랜딩 전용 ---- */
.landing-page {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* 플로팅 버튼 */
.float-btns {
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.2s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn-kakao {
    background: #FFE200;
}

.float-btn-phone {
    background: var(--purple-light);
}

.float-btn img,
.float-btn svg {
    width: 28px;
    height: 28px;
}

/* ---- 섹션1: 히어로 ---- */
.hero-section {
    background: linear-gradient(155deg, #3B1FA0 0%, #6B3FE7 55%, #9B6BFF 100%);
    padding: 40px 24px 30px;
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: rgba(255, 226, 0, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-title {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.hero-title strong {
    color: var(--yellow);
    text-shadow: 0 2px 12px rgba(255, 226, 0, 0.4);
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero-subtitle strong {
    color: #FFE97A;
}

/* 신청 폼 - 글래스모피즘 */
.apply-form {
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.apply-form select,
.apply-form input[type="text"],
.apply-form input[type="tel"] {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    color: #333;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    font-family: inherit;
    appearance: none;
    font-weight: 600;
}

.apply-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
}

.btn-apply {
    display: block;
    width: 100%;
    padding: 20px;
    background: #1a1a1a;
    color: var(--yellow);
    font-size: 19px;
    font-weight: 900;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.3px;
    margin-top: 6px;
    font-family: inherit;
}

.btn-apply:hover {
    background: #000;
}

.agree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 8px 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.agree-row label {
    color: rgba(255, 255, 255, 0.85);
}

.agree-row a {
    color: #FFE97A;
    text-decoration: underline;
}

/* ---- 섹션2: 이벤트 ---- */
.event-section {
    background: var(--yellow);
    padding: 40px 24px;
}

.event-section-title {
    text-align: center;
    margin-bottom: 8px;
}

.event-section-title h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.25;
}

.event-section-title h2 strong {
    color: var(--purple-dark);
}

.event-section-title p {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    line-height: 1.6;
}

.hashtag-row {
    font-size: 13px;
    font-weight: 800;
    color: var(--purple-dark);
    text-align: center;
    margin: 10px 0 24px;
}

.event-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-card {
    background: var(--dark-navy);
    border-radius: var(--radius);
    padding: 20px 20px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
}

.event-card-info .event-badge {
    display: inline-block;
    background: var(--purple-light);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.event-card-info h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 4px;
}

.event-card-info p {
    color: #bbb;
    font-size: 13px;
    margin-bottom: 10px;
}

.event-card-info .more {
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 700;
}

.event-card-img {
    font-size: 48px;
    line-height: 1;
}

/* ---- 섹션3: 요금제 ---- */
.pricing-section {
    background: var(--dark-navy);
    padding: 40px 24px;
}

.pricing-section-title {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-section-title h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
}

.pricing-section-title p {
    color: #aaa;
    font-size: 14px;
    margin-top: 6px;
}

.pricing-section-title p strong {
    color: var(--yellow);
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pricing-card .rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--red);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 16px 16px 12px;
    border-radius: 0 0 var(--radius) 0;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    min-width: 60px;
    text-align: left;
}

.pricing-card .carrier-logo {
    font-size: 42px;
    font-weight: 900;
    margin: 14px 0 8px;
}

.pricing-card .carrier-logo.sk {
    color: #E55A1E;
}

.pricing-card .carrier-logo.lg {
    color: #e5004d;
}

.pricing-card .carrier-logo.kt {
    color: #0050a0;
}

.pricing-card .product-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.pricing-card .condition {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pricing-card .price {
    font-size: 32px;
    font-weight: 900;
    color: var(--red);
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 700;
}

.pricing-card .gift-info {
    margin-top: 14px;
    background: var(--gray-light);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--purple-dark);
    font-weight: 700;
}

/* ---- 섹션4: 히어로 배너 ---- */
.hero-banner {
    background: linear-gradient(160deg, var(--dark-card) 0%, #3B1FA0 100%);
    padding: 50px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.hero-banner .pre-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-banner h2 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #A8EDFF, #d4b5ff, #FFFB88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-banner .desc-items {
    list-style: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 15px;
    line-height: 2;
}

.hero-banner .desc-items .highlight {
    color: var(--yellow);
}

/* 하단 푸터 */
.landing-footer {
    background: #222;
    padding: 30px 24px;
    border-top: 1px solid #333;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-info {
    color: #666;
    font-size: 12px;
    line-height: 1.9;
}

.footer-info strong {
    color: #999;
}

.footer-info .copyright {
    margin-top: 12px;
    color: #555;
}

/* 하단 고정 CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--purple-light);
}

.sticky-cta-btn {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.3px;
    transition: opacity 0.2s;
}

.sticky-cta-btn:hover {
    opacity: 0.95;
}

/* 하단 패딩 (fixed CTA 높이만큼) */
.page-bottom-pad {
    height: 70px;
}

/* ============================================================
   관리자 페이지 공통 스타일 (list.php / member.php)
   ============================================================ */
.admin-page {
    background: #f1f3f9;
    min-height: 100vh;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-topbar {
    background: linear-gradient(90deg, var(--purple-dark), var(--purple));
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.admin-topbar .logo {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.admin-topbar .logo span {
    color: var(--white);
}

.admin-topbar nav {
    display: flex;
    gap: 10px;
}

.admin-topbar nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-topbar nav a:hover,
.admin-topbar nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.admin-topbar .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 700;
}

.admin-topbar .btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* 카드 */
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-card-header h1 {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-body {
    padding: 24px 28px;
}

/* 통계 박스 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-box {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.stat-box .stat-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--purple);
    display: block;
}

.stat-box .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 4px;
}

/* 테이블 */
.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-table th {
    background: #f8f7ff;
    padding: 14px 12px;
    text-align: left;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
}

.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f1f8;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #fafaff;
}

/* 배지 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.badge-new {
    background: #ede9fe;
    color: #6d28d9;
}

.badge-done {
    background: #dcfce7;
    color: #166534;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.badge-admin {
    background: #fee2e2;
    color: #991b1b;
}

.badge-agent {
    background: #dbeafe;
    color: #1e40af;
}

.badge-user {
    background: #f1f5f9;
    color: #475569;
}

/* 버튼 */
.btn-sm {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--purple-dark);
}

.btn-success {
    background: #16a34a;
    color: var(--white);
}

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 1px solid var(--purple);
}

/* 폼 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 63, 231, 0.08);
}

/* 셀렉트 바 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.filter-bar select,
.filter-bar input {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: var(--white);
    outline: none;
    font-family: inherit;
}

.filter-bar button {
    padding: 9px 18px;
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px;
}

.page-link {
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.15s;
}

.page-link.active {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

.page-link:hover:not(.active) {
    border-color: var(--purple);
    color: var(--purple);
}

/* 직원 배분 select */
.assign-select {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    background: var(--white);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    min-width: 100px;
}

/* 모바일 카드뷰 */
.mobile-list {
    display: none;
}

.m-card {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    position: relative;
}

.m-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.m-card-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
}

.m-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.m-card-phone {
    color: var(--purple);
    font-weight: 800;
    font-size: 14px;
}

.m-card-ctrl {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .table-wrap {
        display: none;
    }

    .mobile-list {
        display: block;
    }

    .admin-topbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-topbar nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-card-header {
        padding: 16px 20px;
    }

    .admin-card-body {
        padding: 0;
    }

    .stat-grid {
        padding: 16px;
        margin-bottom: 0;
    }

    .filter-bar {
        padding: 16px;
        margin-bottom: 0;
    }
}

/* 로그인 페이지 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--purple-dark), var(--dark-card));
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--purple);
    margin-bottom: 6px;
}

.login-logo span {
    color: var(--text);
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 12px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}

.login-card input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 63, 231, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.login-btn:hover {
    opacity: 0.9;
}

/* 직원에게 배분 모달 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-box h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text);
}

.modal-box select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 16px;
    outline: none;
}

.modal-btns {
    display: flex;
    gap: 10px;
}

.modal-btns button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.modal-confirm {
    background: var(--purple);
    color: var(--white);
}

.modal-cancel {
    background: var(--gray-light);
    color: var(--text);
}