/* =============================================
   직박구리 DJANGO v5 — client.css
   고객 앱 전용 스타일 (JP / EN)
   [기존 index.html 인라인 CSS 완전 분리]
   ============================================= */

/* ─────────────────────────────────────────────
   CLIENT SHELL
───────────────────────────────────────────── */
.client-app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--navy-deep);
    position: relative;
}

/* ─────────────────────────────────────────────
   TICKER / EVENT BANNER
───────────────────────────────────────────── */
.ticker-bar {
    background: linear-gradient(90deg, var(--purple-d), var(--purple));
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 16px;
    text-align: center;
    letter-spacing: .3px;
    position: relative;
    z-index: 10;
}

.event-banner {
    padding: 10px 16px;
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

/* ─────────────────────────────────────────────
   HERO  (검색 영역)
───────────────────────────────────────────── */
.hero {
    background: var(--grad);
    padding: 20px 16px 24px;
    position: relative;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}

.hero-logo .logo-sub {
    font-size: .68rem;
    color: rgba(255, 255, 255, .7);
    margin-top: 1px;
}

.hero-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform .2s;
}

.hero-avatar:hover {
    transform: scale(1.05);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* 검색창 */
.search-bar {
    display: flex;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    padding: 4px 4px 4px 14px;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: border-color .2s;
    overflow: hidden;
}

.search-bar:focus-within {
    border-color: rgba(255, 255, 255, .5);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    background: 0;
    border: 0;
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.search-btn {
    background: rgba(255, 255, 255, .22);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .88rem;
    font-weight: 700;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    background: rgba(255, 255, 255, .35);
}

/* ─────────────────────────────────────────────
   BOTTOM TAB BAR
───────────────────────────────────────────── */
.btm-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(16, 30, 56, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 200;
}

.btm-bar .bt {
    flex: 1;
    background: 0;
    color: var(--text-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0 8px;
    font-size: .68rem;
    font-weight: 600;
    transition: color .2s;
}

.btm-bar .bt .ic {
    font-size: 1.3rem;
}

.btm-bar .bt.on {
    color: var(--purple-l);
}

/* ─────────────────────────────────────────────
   CLIENT SECTION CONTENT
───────────────────────────────────────────── */
.client-section {
    display: none;
    padding-bottom: 80px;
}

.client-section.active {
    display: block;
}

/* 섹션 padding */
.section-pad {
    padding: 20px 16px 0;
}

/* ─────────────────────────────────────────────
   SERVICE CARDS (홈 카드 4개)
───────────────────────────────────────────── */
.section-title {
    font-size: .75rem;
    color: var(--text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 12px;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 16px 0;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, .2);
}

.service-card .sc-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-card .sc-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}

.service-card .sc-desc {
    font-size: .73rem;
    color: var(--text-3);
    line-height: 1.4;
}

/* ─────────────────────────────────────────────
   WAREHOUSE INFO CARD
───────────────────────────────────────────── */
.warehouse-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(124, 58, 237, .08));
    border: 1px solid rgba(16, 185, 129, .25);
    border-radius: var(--radius);
    padding: 18px;
    margin: 16px 16px 0;
}

.warehouse-card .wc-title {
    font-size: .72rem;
    color: #10B981;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.warehouse-card .wc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(16, 185, 129, .1);
}

.warehouse-card .wc-row:last-child {
    border-bottom: none;
}

.warehouse-card .wc-label {
    font-size: .75rem;
    color: var(--text-3);
}

.warehouse-card .wc-val {
    font-size: .82rem;
    color: var(--text-1);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* ─────────────────────────────────────────────
   REVIEWS
───────────────────────────────────────────── */
.review-cards {
    padding: 0 16px 0;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .15s;
}

.review-card:active {
    background: rgba(124, 58, 237, .04);
}

.review-card .rc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card .rc-name {
    font-size: .82rem;
    font-weight: 700;
}

.review-card .rc-stars {
    font-size: .78rem;
    color: #F59E0B;
}

.review-card .rc-date {
    font-size: .7rem;
    color: var(--text-3);
}

.review-card .rc-text {
    font-size: .8rem;
    color: var(--text-2);
    line-height: 1.5;
    margin-top: 8px;
}

.review-card.rc-collapsed .rc-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card.rc-collapsed .rc-reply {
    display: none;
}

.review-card .rc-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(124, 58, 237, .06);
    border-left: 3px solid var(--purple);
    border-radius: 0 8px 8px 0;
    font-size: .78rem;
    color: var(--text-3);
}

/* ─────────────────────────────────────────────
   MY PAGE CARDS
───────────────────────────────────────────── */
.myinfo-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
}

.myinfo-card .ml {
    font-size: .72rem;
    color: var(--text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.myinfo-card .mv {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
}

.myinfo-card .msb {
    font-size: .78rem;
    color: var(--text-3);
    margin-top: 2px;
}

.cp-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cp-btn {
    background: var(--purple);
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: .82rem;
    font-weight: 700;
    transition: background .2s;
}

.cp-btn:hover {
    background: var(--purple-d);
}

/* ─────────────────────────────────────────────
   SEARCH RESULTS OVERLAY
───────────────────────────────────────────── */
.search-results-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(11, 21, 39, .92);
    padding: 60px 16px 80px;
    overflow-y: auto;
}

.search-results-overlay.active {
    display: block;
}

.search-results-overlay .sr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.search-results-overlay .sr-header h3 {
    font-size: 1.05rem;
    color: var(--text-1);
}

.search-results-overlay .sr-close {
    background: var(--card-bg);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-2);
}

/* ─────────────────────────────────────────────
   RESULT / ORDER ITEM CARDS
───────────────────────────────────────────── */
.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}

.result-card .thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--card-bg-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.result-card .info {
    flex: 1;
}

.result-card .info .name {
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.result-card .info .shop {
    font-size: .78rem;
    color: var(--text-3);
}

.result-card .info .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple-l);
    margin-top: 6px;
}

.result-card .badge-premium {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--badge-kr);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: .3px;
}

.result-card .btn-buy {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: var(--purple);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    transition: background .2s;
}

.result-card .btn-buy:hover {
    background: var(--purple-d);
}

.order-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
}

.order-item .order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-item .order-id {
    font-size: .78rem;
    color: var(--text-3);
}

.order-item .order-status {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.order-item .order-status.pending {
    background: rgba(245, 158, 11, .15);
    color: var(--warning);
}

.order-item .order-status.shipping {
    background: rgba(124, 58, 237, .15);
    color: var(--purple-l);
}

.order-item .order-status.completed {
    background: rgba(16, 185, 129, .15);
    color: var(--success);
}

.order-item .order-name {
    font-size: .9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}

.order-item .order-price {
    font-size: .85rem;
    color: var(--purple-l);
    margin-top: 4px;
}

/* ─────────────────────────────────────────────
   ORDER APPLY FORM
───────────────────────────────────────────── */
.apply-form {
    padding: 20px 16px 100px;
}

.apply-section-title {
    font-size: .72rem;
    color: var(--text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.type-tab {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-3);
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    transition: all .2s;
}

.type-tab.active {
    background: rgba(124, 58, 237, .15);
    border-color: var(--purple);
    color: var(--purple-l);
}

.submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: var(--purple);
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    transition: background .2s, transform .1s;
}

.submit-btn:hover {
    background: var(--purple-d);
}

.submit-btn:active {
    transform: scale(.98);
}

.submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ─────────────────────────────────────────────
   INQUIRY FORM (1:1 문의)
───────────────────────────────────────────── */
.inquiry-list {
    padding: 0 16px;
}

.inquiry-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
}

.inquiry-item .iq-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.inquiry-item .iq-subject {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-1);
}

.inquiry-item .iq-date {
    font-size: .72rem;
    color: var(--text-3);
}

.inquiry-item .iq-status {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    margin-top: 4px;
    display: inline-block;
}

.inquiry-item .iq-status.waiting {
    background: rgba(245, 158, 11, .15);
    color: var(--warning);
}

.inquiry-item .iq-status.replied {
    background: rgba(16, 185, 129, .15);
    color: var(--success);
}