/* فاز 3B: هیرو، استوری، برندها، فوتر، منوی کاربر، نظرات، تماس، کیف پول ... */
:root { --gold: #c9a15a; }

/* ===== هیرو اسلایدر ===== */
.hero-slider { margin-bottom: 0; }
.hero-slide { min-height: 440px; }
.hero-slide.no-img { background: linear-gradient(120deg, var(--navy) 0%, #24385a 100%); justify-content: space-between; }
.hero-slide.no-img::before { display: none; }
.hero-copy { max-width: 1240px; }
.hero-copy > * { max-width: 560px; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(28px, 4.2vw, 48px); line-height: 1.35; font-weight: 800; margin-bottom: 0; }
.hero-copy .lead { margin-block: 18px 26px; color: #e3e8ef; font-size: 16px; }
.hero-slide .hero-mark { position: relative; width: 260px; height: 260px; margin-inline: 40px; flex: none; }
.s-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(23, 38, 60, .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.s-arrow:hover { background: var(--red); }
.s-prev { inset-inline-start: 14px; } .s-next { inset-inline-end: 14px; }
.s-prev .icon { transform: scaleX(-1); }
.dots { z-index: 3; }

/* ===== نوار برندها ===== */
.brand-strip { background: var(--navy); overflow: hidden; padding-block: 18px; direction: rtl; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { display: flex; width: max-content; gap: 56px; animation: marquee 40s linear infinite; padding-inline-end: 56px; }
.brand-strip:hover .brand-track { animation-play-state: paused; }
.brand-item { display: flex; align-items: center; height: 36px; color: #8a9bb3; font-weight: 800; font-size: 20px; letter-spacing: .03em; white-space: nowrap; transition: color .2s; }
.brand-item:hover { color: #fff; }
.brand-item img { height: 100%; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .8; }
.brand-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; } .brand-strip { overflow-x: auto; } }

/* ===== استوری ===== */
.stories { margin-top: 28px; }
.story-row { display: flex; gap: 18px; overflow-x: auto; padding-block: 6px 10px; scrollbar-width: none; }
.story-row::-webkit-scrollbar { display: none; }
.story-bubble { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; border: 0; background: none; font: inherit; cursor: pointer; color: var(--navy); }
.story-bubble .ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f9a825, #e52535, #c2185b); }
.story-bubble.seen .ring { background: #cfd6e2; }
.story-bubble .cover { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; overflow: hidden; background: var(--soft); }
.story-bubble .cover img { width: 100%; height: 100%; object-fit: cover; }
.story-bubble .name { font-size: 12px; font-weight: 600; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; }
.sv.is-open { display: flex; }
.sv-box { position: relative; width: min(420px, 100vw); height: min(100dvh, 760px); background: #000; border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.sv-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sv-bars { position: absolute; top: 10px; inset-inline: 10px; display: flex; gap: 4px; z-index: 3; direction: rtl; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { position: absolute; top: 22px; inset-inline: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; text-shadow: 0 1px 3px #000; }
.sv-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sv-close { margin-inline-start: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.sv-zone { position: absolute; top: 60px; bottom: 90px; z-index: 2; }
.sv-zone.prev { inset-inline-end: 0; width: 33%; } .sv-zone.next { inset-inline-start: 0; width: 67%; }
.sv-foot { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; padding: 40px 16px 20px; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.sv-foot p { margin-bottom: 10px; }
@media (max-width: 480px) { .sv-box { border-radius: 0; height: 100dvh; } }

/* ===== دسته‌بندی‌ها: وسط‌چین وقتی کم می‌شوند ===== */
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cat-grid li { flex: 0 0 calc((100% - 98px) / 8); min-width: 110px; }
.cat-card { height: 100%; }
.cat-img { width: 64px; height: 64px; object-fit: contain; }
@media (max-width: 1100px) { .cat-grid li { flex-basis: calc((100% - 42px) / 4); } }
@media (max-width: 560px) { .cat-grid li { flex-basis: calc((100% - 14px) / 2); } }

/* ===== بنرها با تصویر ===== */
.promo.has-img { position: relative; overflow: hidden; background-size: cover; background-position: center; min-height: 190px; }
.promo.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10, 20, 36, .8), rgba(10, 20, 36, .15)); }
.promo.has-img > * { position: relative; }
.page-banner { margin-bottom: 8px; background: var(--navy); }
.page-banner img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.strip-banner { display: block; margin-block: 8px 34px; border-radius: var(--radius); overflow: hidden; }
.strip-banner img { display: block; width: 100%; height: 120px; object-fit: cover; }
@media (max-width: 640px) { .strip-banner img { height: 84px; } .hero-slide { min-height: 360px; } .hero-slide .hero-mark { display: none; } }

/* ===== کاروسل محصولات مشابه ===== */
.carousel { position: relative; }
.c-view { overflow: hidden; direction: rtl; }
.c-track { --n: 4; --i: 0; display: flex; transition: transform .45s ease; transform: translateX(calc(var(--i) * 100% / var(--n))); }
.c-item { flex: 0 0 calc(100% / var(--n)); padding-inline: 8px; min-width: 0; }
.carousel .s-arrow { top: 42%; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.carousel .s-arrow:hover { background: var(--red); color: #fff; }
.carousel .s-prev { inset-inline-start: -6px; } .carousel .s-next { inset-inline-end: -6px; }
@media (prefers-reduced-motion: reduce) { .c-track { transition: none; } }

/* ===== ستاره و نظرات ===== */
.stars { --v: 0%; display: inline-block; position: relative; width: 5.2em; height: 1em; font-size: 14px; line-height: 1; vertical-align: -2px;
    background: linear-gradient(90deg, #f5a623 var(--v), #d5dbe5 var(--v)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='20' viewBox='0 0 104 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M10 1l2.6 5.5 6 .8-4.4 4.2 1.1 6L10 14.5 4.7 17.5l1.1-6L1.4 7.3l6-.8z'/%3E%3Cuse href='%23s' x='21'/%3E%3Cuse href='%23s' x='42'/%3E%3Cuse href='%23s' x='63'/%3E%3Cuse href='%23s' x='84'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='104' height='20' viewBox='0 0 104 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M10 1l2.6 5.5 6 .8-4.4 4.2 1.1 6L10 14.5 4.7 17.5l1.1-6L1.4 7.3l6-.8z'/%3E%3Cuse href='%23s' x='21'/%3E%3Cuse href='%23s' x='42'/%3E%3Cuse href='%23s' x='63'/%3E%3Cuse href='%23s' x='84'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.stars-line { display: flex; align-items: center; gap: 6px; justify-content: center; margin-block: 2px; color: var(--muted); font-size: 12px; }
.pd-info .stars-line { justify-content: flex-start; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .review time { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.review-form { margin-top: 20px; max-width: 560px; }

/* ===== منوی کاربر (بالا-چپ) ===== */
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 10px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--soft); }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: none; }
.av-text { background: linear-gradient(135deg, var(--red), #a4121f); color: #fff; font-weight: 800; }
.um-caret { transform: rotate(-90deg); width: 14px; height: 14px; }
.um-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 200px; background: #fff; color: var(--navy); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(23, 38, 60, .18); padding: 6px; z-index: 60; }
.um-pop a, .um-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; text-align: start; color: inherit; }
.um-pop a:hover, .um-pop button:hover { background: var(--soft); }
@media (max-width: 720px) { .um-name, .um-caret { display: none; } }

/* ===== فوتر ===== */
.site-footer { margin-top: 72px; background: #0f1b2d; color: #b9c5d8; position: relative; }
.f-cta { position: relative; top: -36px; margin-bottom: -4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 32px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--red) 0%, #a4121f 100%); box-shadow: 0 18px 40px rgba(229, 37, 53, .28); }
.f-cta h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #fff; } .f-cta p { margin: 0; color: #ffe1e4; font-size: 14px; }
.f-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--red); border: 0; font-weight: 700; } .btn-white:hover { background: #ffe9eb; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-block: 24px 40px; }
.f-col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.f-col h2 { color: #fff; font-size: 16px; font-weight: 800; margin: 0 0 6px; position: relative; padding-bottom: 12px; }
.f-col h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--red); }
nav.f-col a { color: #b9c5d8; transition: color .15s, padding .15s; } nav.f-col a:hover { color: #fff; padding-inline-start: 6px; }
.f-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 19px; } .f-brand img { height: 56px; width: auto; display: block; }
.f-about p { margin: 0; line-height: 2; font-size: 13px; }
.f-socials { display: flex; gap: 10px; margin-top: 4px; }
.f-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, transform .2s; }
.f-socials a:hover { background: var(--red); transform: translateY(-3px); }
.f-contact a, .f-contact p { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: #b9c5d8; line-height: 1.8; } .f-contact a:hover { color: #fff; }
.f-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #ff8a93; flex: none; }
.f-ic .icon { width: 16px; height: 16px; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: #0a1422; }
.f-bottom-in { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 16px; text-align: center; font-size: 13px; }
.f-bottom-in p { margin: 0; }
.f-logo { display: inline-flex; } .f-logo img { height: 40px; width: auto; display: block; } /* خود لوگو، بدون پس‌زمینه و تغییر */
.to-top { position: fixed; bottom: 22px; inset-inline-end: 20px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; box-shadow: 0 6px 18px rgba(229, 37, 53, .4); z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .f-bottom-in { flex-direction: column; } .f-cta { padding: 20px; } }

/* ===== تیکت (مشتری) ===== */
.st-open { background: #fff4e5; color: #b54708; } .st-answered { background: #e8f7ee; color: #14803c; } .st-customer_reply { background: #e7f0ff; color: #1d4ed8; } .st-closed { background: #eef1f6; color: #667085; }
.thread { display: flex; flex-direction: column; gap: 12px; margin-block: 14px; }
.msg { border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; background: #fff; max-width: 90%; align-self: flex-start; }
.msg-staff { background: #eef5ff; border-color: #cfe0ff; align-self: flex-end; }
.msg header { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.msg p { word-break: break-word; }
.files { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; } .files a { color: var(--red); }

/* ===== پنل مشتری: بنر خوش‌آمد، آمار، کیف پول، آدرس ===== */
.acc-hero.has-img { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.acc-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10, 20, 36, .8), rgba(10, 20, 36, .1)); }
.acc-hero.has-img > * { position: relative; }
.acc-stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .acc-stats.four { grid-template-columns: 1fr 1fr; } }
.avatar { object-fit: cover; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; } .avatar-edit .avatar { margin: 0; width: 72px; height: 72px; font-size: 28px; border-color: var(--border); }
.wallet-card { background: linear-gradient(120deg, #0f1b2d, #24385a); color: #fff; border-radius: 16px; padding: 24px; margin-bottom: 18px; }
.wallet-card strong { display: block; font-size: 32px; margin-top: 4px; }
.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.addr { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff; }
.addr.is-default { border-color: var(--red); }
.addr h3 { font-size: 15px; margin-bottom: 4px; } .addr p { font-size: 13px; color: var(--muted); }
.addr-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .addr-actions form { margin: 0; }
@media (max-width: 700px) { .addr-grid { grid-template-columns: 1fr; } }

/* ===== تماس با ما ===== */
.ct-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #0f1b2d, #1f3350); border: 1px solid rgba(255, 255, 255, .08); }
.ct-hero h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; }
.ct-hero p { color: #cfd8e6; line-height: 2; }
.ct-points { margin-block: 14px; display: grid; gap: 8px; } .ct-points li { display: flex; gap: 8px; align-items: flex-start; color: #e3e8ef; font-size: 14px; } .ct-points .icon { color: #4ade80; margin-top: 4px; width: 16px; height: 16px; }
.ct-hero img { width: 100%; border-radius: 14px; max-height: 280px; object-fit: cover; }
.ct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ct-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 22px; align-items: start; }
.ct-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.ct-form h2 { font-size: 20px; margin-bottom: 4px; } .ct-form .muted { margin-bottom: 16px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-info { display: grid; gap: 12px; }
.ct-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.ct-card .f-ic { background: #fdeaec; color: var(--red); width: 42px; height: 42px; border-radius: 12px; } .ct-card .f-ic .icon { width: 20px; height: 20px; }
.ct-card small { display: block; color: var(--muted); font-size: 12px; } .ct-card strong { font-size: 14px; }
.faq { margin-top: 36px; max-width: 860px; margin-inline: auto; }
.faq h2 { text-align: center; font-size: 20px; margin-bottom: 16px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: "+"; font-size: 22px; color: var(--red); } .faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); line-height: 2; }
@media (max-width: 860px) { .ct-hero, .ct-grid, .ct-row { grid-template-columns: 1fr; } }
.alert-ok { background: #e8f7ee; color: #14803c; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.pay-box { margin-block: 16px; }

/* ===== فرم‌ها: select و ورودی‌ها در همهٔ سایت ===== */
.field select, .ct-form select, .filter-group select {
    font: inherit; width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--border); border-radius: 10px; color: inherit; cursor: pointer;
    -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center;
}
.field select:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.field input, .field textarea { width: 100%; }
.field input[type=file] { padding: 8px; background: var(--soft); }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .fg .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fg { grid-template-columns: 1fr; } }

/* ===== هدر: فشردگی وقتی کاربر وارد شده ===== */
.header-row { gap: 16px; }
.main-nav { gap: 16px; white-space: nowrap; }
.search { width: auto; flex: 0 1 230px; min-width: 120px; }
.um-name, .user-menu .um-caret { display: none; }
.user-menu summary { padding: 3px; }
@media (max-width: 1180px) { .brand-text small { display: none; } .main-nav { gap: 12px; font-size: 14px; } }
@media (max-width: 720px) {
    .um-pop { position: fixed; top: 68px; inset-inline: 12px; min-width: 0; }
}
/* سایدبار پنل کاربر: اگر بلندتر از صفحه بود، داخل خودش اسکرول می‌شود */
.acc-side { align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; }
@media (max-width: 860px) { .acc-side { position: static; max-height: none; overflow: visible; } }
.bale-btn { background: #2bb673; border-color: #2bb673; } .bale-btn:hover { background: #239a61; }

/* ===== اجزای حرفه‌ای پنل کاربر (تیکت، پروفایل، آدرس) ===== */
.pc-head { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 16px; color: #fff; background: linear-gradient(110deg, #0f1b2d 0%, #24385a 70%, #8c1420 150%); margin-bottom: 18px; }
.pc-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .12); flex: none; } .pc-ico .icon { width: 28px; height: 28px; }
.pc-head h1 { margin: 0; font-size: 22px; font-weight: 800; } .pc-head p { margin: 2px 0 0; color: #cfd8e6; font-size: 13px; }
.pc-head .btn { margin-inline-start: auto; }
.pc-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.pc-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.pc-card > h2, .pc-card .pc-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 16px; font-weight: 800; }
.pc-card > h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--red); }
.pc-side .pc-card { background: var(--soft); border-color: transparent; }
.pc-side li { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); } .pc-side li .icon { color: var(--red); width: 16px; height: 16px; margin-top: 4px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s; }
.choice span .icon { color: var(--muted); }
.choice input:checked + span { border-color: var(--red); background: #fff5f6; } .choice input:checked + span .icon { color: var(--red); }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg .choice span { border: 0; padding: 7px 18px; border-radius: 9px; justify-content: center; } .seg .choice input:checked + span { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); color: var(--red); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #c5cdda; border-radius: 14px; text-align: center; color: var(--muted); cursor: pointer; font-size: 13px; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-within { border-color: var(--red); background: #fff9f9; } .drop .icon { width: 28px; height: 28px; color: var(--red); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-list { margin: 8px 0 0; font-size: 12px; color: var(--navy); }
.char-count { align-self: flex-end; font-size: 12px; color: var(--muted); }
.pc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-lg { padding: 12px 28px; }
.t-list { display: grid; gap: 12px; }
.t-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.t-row:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(23, 38, 60, .08); }
.t-row .pc-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--red); } .t-row .pc-ico .icon { width: 22px; height: 22px; }
.t-main { flex: 1; min-width: 0; } .t-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .t-main small { color: var(--muted); }
.avatar-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-hero .avatar { width: 96px; height: 96px; margin: 0; font-size: 38px; border-color: var(--border); }
.avatar-hero .field { flex: 1; min-width: 220px; }
.addr-grid { grid-template-columns: repeat(2, 1fr); }
.addr { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--border); border-radius: 16px; background: #fff; transition: box-shadow .15s; }
.addr:hover { box-shadow: 0 8px 22px rgba(23, 38, 60, .08); }
.addr.is-default { border-color: var(--red); background: linear-gradient(180deg, #fff7f8, #fff 60%); }
.addr-top { display: flex; align-items: center; gap: 10px; } .addr-top .pc-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--red); } .addr-top .pc-ico .icon { width: 20px; height: 20px; }
.addr h3 { margin: 0; font-size: 16px; } .addr .tag { margin-inline-start: auto; }
.addr p { margin: 0; color: var(--navy); font-size: 13px; line-height: 1.9; } .addr .meta { color: var(--muted); }
.addr-actions { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); }
@media (max-width: 900px) { .pc-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .choices, .addr-grid { grid-template-columns: 1fr; } .pc-head { flex-wrap: wrap; } .pc-head .btn { margin-inline-start: 0; } }

.to-top.show { opacity: 1; visibility: visible; transform: none; } .to-top:hover { background: var(--red-dark); }
