/* ArtVerse — โปรไฟล์ครีเอเตอร์ แก้ไขโปรไฟล์ เข้าสู่ระบบ และหน้าต่างเลือกที่อยู่/ชำระเงิน
   ไฟล์นี้เป็นส่วนหนึ่งของ css/parts/*.css โหลดตามลำดับเลขหน้าไฟล์ (ลำดับมีผล: ไฟล์หลังทับไฟล์ก่อน) */

/* Public creator profile --------------------------------------------------- */
.creator-card-link{color:inherit;text-decoration:none}
.creator-card-link:hover{text-decoration:underline}
body[data-page="creator"]{margin:0;background:#f6f6f6;color:#171717;min-height:100vh}
body[data-page="creator"] .site-header{position:absolute;top:0;left:0;right:0;z-index:30;background:transparent;border:0;box-shadow:none}
body[data-page="creator"] .reference-category-nav,
body[data-page="creator"] .reference-main-nav{display:none!important}
body[data-page="creator"] .reference-topbar{height:66px;border:0;background:transparent;grid-template-columns:auto minmax(0,1fr) auto}
body[data-page="creator"] .reference-actions{grid-column:3;justify-self:end}
body[data-page="creator"] .brand-name,body[data-page="creator"] .reference-main-nav a{color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.28)}
body[data-page="creator"] .brand-mark{box-shadow:0 2px 10px rgba(0,0,0,.18)}
body[data-page="creator"] .reference-actions .pill,body[data-page="creator"] .reference-actions .icon-link,body[data-page="creator"] .reference-actions .profile-drawer-btn{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.2);color:#fff;backdrop-filter:blur(9px);box-shadow:none}
body[data-page="creator"] .reference-actions .profile-drawer-bars{color:#fff}
body[data-page="creator"] .reference-actions .profile-drawer-avatar{background:rgba(255,255,255,.18)}
body[data-page="creator"] .reference-actions .profile-drawer-divider{background:rgba(255,255,255,.35)}
#creatorApp{width:100%;padding:0;margin:0}
.creator-public-hero{height:330px;position:relative;background:#dfe3e7;overflow:hidden}
.creator-public-cover-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center;z-index:0}
.creator-public-hero::after{content:"";position:absolute;z-index:1;inset:auto 0 0;height:90px;background:linear-gradient(transparent,rgba(0,0,0,.22));pointer-events:none}
.creator-public-hero-shade{position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(6,23,26,.12),rgba(5,21,24,.02) 42%,rgba(5,15,20,.16))}
.creator-public-brand{position:absolute;z-index:2;top:18px;left:max(24px,calc((100% - 1160px)/2));display:flex;align-items:center;gap:10px;color:#fff;font-size:18px;text-shadow:0 1px 10px rgba(0,0,0,.28)}
.creator-public-brand-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#ffc526;color:#111;font-weight:900;text-shadow:none}
.creator-public-shell{width:min(1160px,calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:245px minmax(0,1fr);gap:34px;align-items:start}
.creator-public-sidebar{position:relative;padding:0 0 70px;margin-top:-72px;z-index:3}
.creator-public-avatar{width:146px;height:146px;border-radius:50%;overflow:hidden;border:4px solid #fff;background:#eee;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.creator-public-avatar img{width:100%;height:100%;object-fit:cover}
.creator-public-avatar-symbol{width:100%;height:100%;display:grid;place-items:center;background:#d8d8d8;color:#fff;font-size:58px;line-height:1}
.creator-public-sidebar h1{font-size:23px;line-height:1.2;margin:20px 0 2px;font-weight:800}
.creator-handle{margin:0 0 16px;color:#999;font-size:12px}
.creator-public-actions{display:grid;grid-template-columns:1fr 34px;gap:7px;max-width:205px}
.creator-public-actions button,.creator-public-actions a{font:inherit}
.creator-follow-btn,.creator-more-btn,.creator-side-btn{height:34px;border:1px solid #d8d8d8;background:#fff;border-radius:999px;color:#333;display:flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;font-size:11px;transition:.18s ease}
.creator-follow-btn:hover,.creator-more-btn:hover,.creator-side-btn:hover{background:#fafafa;border-color:#c7c7c7}
.creator-follow-btn.active{background:#222;color:#fff;border-color:#222}
.creator-more-btn{width:34px;font-weight:800}
.creator-side-btn{grid-column:1/-1}
.creator-side-btn:first-of-type{color:#d93450}
.creator-follow-stats{display:flex;align-items:center;gap:7px;margin:18px 0 8px;font-size:11px;color:#555}
.creator-follow-stats button{padding:2px 0;border:0;background:transparent;color:#555;font:inherit;cursor:pointer}
.creator-follow-stats button:hover{color:#1976ed;text-decoration:underline}
.creator-follow-stats button:focus-visible{outline:2px solid #1976ed;outline-offset:3px;border-radius:3px}
.creator-follow-stats strong{font-weight:700}
.creator-follow-stats i{font-style:normal;color:#c4c4c4}
.creator-follow-list-backdrop{position:fixed;z-index:6500;inset:0;padding:90px 18px 30px;background:rgba(0,0,0,.52);display:none;align-items:flex-start;justify-content:center;overflow-y:auto}
.creator-follow-list-backdrop.open{display:flex}
.creator-follow-list-dialog{width:min(470px,100%);max-height:min(610px,calc(100vh - 120px));overflow:hidden;border-radius:8px;background:#fff;color:#222;box-shadow:0 22px 65px rgba(0,0,0,.26);display:flex;flex-direction:column}
.creator-follow-list-dialog>header{min-height:56px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ededed;flex:none}
.creator-follow-list-dialog h2{margin:0;font-size:16px;font-weight:800}
.creator-follow-list-dialog header button{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#8a8a8a;font-size:24px;line-height:1;cursor:pointer}
.creator-follow-list-dialog header button:hover{background:#f2f2f2;color:#222}
.creator-follow-list-body{padding:9px 20px 18px;overflow-y:auto;overscroll-behavior:contain}
.creator-follow-list-row{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #f0f0f0}
.creator-follow-list-row:last-child{border-bottom:0}
.creator-follow-list-person{min-width:0;display:flex;align-items:center;gap:12px;color:#222;text-decoration:none}
.creator-follow-list-avatar{width:52px;height:52px;border-radius:50%;overflow:hidden;background:#eee;display:grid;place-items:center;flex:none;font-size:25px;border:1px solid #ececec}
.creator-follow-list-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.creator-follow-list-copy{min-width:0;display:grid;line-height:1.25}
.creator-follow-list-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creator-follow-list-copy small{margin-top:2px;color:#999;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creator-follow-list-copy em{margin-top:5px;color:#666;font-size:10px;font-style:normal;white-space:nowrap}
.creator-follow-list-action{height:31px;padding:0 13px;border-radius:999px;background:#1976f3;color:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:10px;font-weight:700;transition:.18s ease}
.creator-follow-list-action:hover{background:#075fd6;transform:translateY(-1px)}
.creator-follow-list-empty{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#999}
.creator-follow-list-empty>span{width:54px;height:54px;margin-bottom:10px;border-radius:50%;display:grid;place-items:center;background:#f1f3f5;color:#999;font-size:24px}
.creator-follow-list-empty strong{color:#555;font-size:13px}
.creator-follow-list-empty p{margin:4px 0 0;font-size:11px}
.creator-public-bio{font-size:11px;line-height:1.6;color:#555;margin:0 0 12px;max-width:215px}
.creator-about-link{display:flex;align-items:center;justify-content:space-between;max-width:215px;color:#333;text-decoration:none;font-size:11px;font-weight:700;padding:7px 0;border-bottom:1px solid #e4e4e4}
.creator-social-block,.creator-category-block,.creator-supporters{max-width:215px;margin-top:18px}
.creator-social-block h3,.creator-category-block h3,.creator-supporters h3{font-size:11px;margin:0 0 10px;color:#333}
.creator-social-block>div,.creator-category-block>div{display:flex;align-items:center;gap:9px;font-size:10px;margin:8px 0}
.creator-social-block>div>span,.creator-category-block>div>span{width:22px;text-align:center}
.creator-social-block p,.creator-category-block p{margin:0;flex:1}
.creator-social-block small{display:block;color:#aaa;margin-top:2px}
.creator-category-block b{font-size:9px;color:#777}
.creator-supporters div{display:flex}
.creator-supporters i{width:25px;height:25px;margin-right:-5px;border:2px solid #f6f6f6;border-radius:50%;display:grid;place-items:center;background:#fff;font-style:normal;font-size:13px}
.creator-social-block a{color:inherit;text-decoration:none}
.creator-social-block a:hover strong{color:#b76500}
.creator-category-list{display:flex;flex-wrap:wrap;gap:5px}
.creator-category-list b{padding:4px 7px;border-radius:999px;background:#f1f3f5;color:#555;font-size:9px!important;font-weight:700}
.creator-public-main{min-width:0;padding:0 0 80px;background:#fff0}
.creator-public-tabs{height:64px;display:flex;align-items:flex-end;gap:32px;border-bottom:1px solid #e4e4e4;margin:0 0 22px}
.creator-public-tabs button{height:42px;padding:0 2px;border:0;background:transparent;color:#333;font-weight:700;font-size:12px;cursor:pointer;position:relative}
.creator-public-tabs button.active{color:#111}
.creator-public-tabs button.active::after{content:"";height:2px;background:#1976ed;position:absolute;left:0;right:0;bottom:-1px}
.creator-tab-panel{display:none}
.creator-tab-panel.active{display:block}
.creator-section-heading{min-height:42px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 12px}
.creator-section-heading h2{font-size:16px;margin:0;color:#222}
.creator-section-heading h2 span{font-size:11px;color:#aaa;font-weight:600}
.creator-section-heading p{font-size:10px;margin:4px 0 0;color:#999}
.creator-section-heading button{border:0;background:none;font-size:11px;cursor:pointer;color:#555}
.creator-new-work-btn{height:32px;padding:0 13px;border:1px solid #d8d8d8;border-radius:7px;display:inline-flex;align-items:center;background:#fff;color:#333;text-decoration:none;font-size:11px;font-weight:700}
.creator-new-work-btn:hover{border-color:#aaa;background:#fafafa}
.creator-shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.creator-shop-grid .product-card{min-width:0;background:#fff;border:1px solid #ededed;border-radius:6px;overflow:hidden;box-shadow:none}
.creator-shop-grid .product-card .thumb{aspect-ratio:1/1;display:block;overflow:hidden}
.creator-shop-grid .product-card .thumb img{width:100%;height:100%;object-fit:cover}
.creator-shop-grid .product-card .card-body{padding:9px}
.creator-shop-grid .product-card .card-actions{display:none}
.creator-shop-grid .product-card h3{font-size:11px;margin:5px 0 8px;min-height:30px}
.creator-shop-grid .product-card .creator{font-size:8px}
.creator-shop-grid .product-card .price{font-size:12px;color:#ff4f5f}
.creator-shop-grid .product-card .meta{font-size:8px;margin:4px 0}
.creator-shop-grid .product-card .badge{font-size:8px}
.creator-profile-summary{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;border:1px solid #e8e8e8;border-radius:7px;background:#fff;overflow:hidden}
.creator-profile-summary div{padding:17px 10px;text-align:center;border-right:1px solid #eee}
.creator-profile-summary div:last-child{border-right:0}
.creator-profile-summary strong,.creator-profile-summary span{display:block}
.creator-profile-summary strong{font-size:16px}
.creator-profile-summary span{font-size:9px;color:#999;margin-top:4px}
.creator-portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:180px;gap:4px}
.creator-portfolio-tile{position:relative;overflow:hidden;background:#ddd;text-decoration:none}
.creator-portfolio-tile img{width:100%;height:100%;object-fit:cover;filter:saturate(.88);transition:.25s ease}
.creator-portfolio-tile:hover img{transform:scale(1.025);filter:saturate(1)}
.creator-portfolio-tile span{position:absolute;left:9px;right:9px;bottom:8px;color:#fff;font-size:10px;font-weight:700;text-shadow:0 1px 6px #000;opacity:0;transition:.2s}
.creator-portfolio-tile:hover span{opacity:1}
.creator-portfolio-tile.tile-2{grid-column:span 2}
.creator-portfolio-tile.tile-4{grid-column:span 2}
.creator-empty-card{min-height:210px;display:grid;place-items:center;border:1px dashed #d9d9d9;background:#fff;color:#999;font-size:11px;border-radius:7px}
@media(max-width:980px){.creator-public-shell{grid-template-columns:205px minmax(0,1fr);gap:24px}
.creator-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.creator-public-avatar{width:128px;height:128px}
.creator-public-sidebar{margin-top:-62px}}
@media(max-width:760px){body[data-page="creator"] .reference-main-nav{display:none}
.creator-public-hero{height:245px}
.creator-public-shell{width:min(100% - 24px,700px);display:block}
.creator-public-sidebar{margin-top:-55px;padding-bottom:12px}
.creator-public-avatar{width:110px;height:110px}
.creator-public-sidebar h1{margin-top:12px}
.creator-public-actions{max-width:100%;grid-template-columns:1fr 36px}
.creator-public-bio,.creator-about-link,.creator-social-block,.creator-category-block,.creator-supporters{max-width:100%}
.creator-public-main{padding-bottom:50px}
.creator-public-tabs{height:54px;position:sticky;top:0;background:#f6f6f6;z-index:4;margin-left:-12px;margin-right:-12px;padding:0 12px}
.creator-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.creator-portfolio-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:145px}
.creator-portfolio-tile.tile-2,.creator-portfolio-tile.tile-4{grid-column:span 1}
.creator-public-brand{left:16px;top:14px}}
body[data-page="creator"]{background:#fff}
.creator-public-brand{top:76px}
/* Creator public profile — empty shop/portfolio states */
body[data-page="creator"] .creator-empty-card{
  min-height:350px;
  border:1px solid #ececec;
  border-radius:7px;
  background:#fff;
  color:#aaa;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:12px;
  box-shadow:none;
}
body[data-page="creator"] .creator-empty-card p{margin:0;color:#a7a7a7}
body[data-page="creator"] .creator-empty-illustration{width:82px;height:70px;display:grid;place-items:center}
body[data-page="creator"] .creator-empty-illustration svg{width:82px;height:70px;display:block}
/* After removing support/contact buttons, keep follow + more aligned on one row. */
body[data-page="creator"] .creator-public-actions{grid-template-columns:minmax(0,1fr) 34px;align-items:center}
@media(max-width:700px){body[data-page="creator"] .creator-empty-card{min-height:290px}
.creator-follow-list-backdrop{padding:66px 10px 18px}
.creator-follow-list-dialog{max-height:calc(100vh - 84px)}
.creator-follow-list-body{padding-inline:14px}
.creator-follow-list-row{gap:9px}
.creator-follow-list-avatar{width:46px;height:46px}
.creator-follow-list-action{padding-inline:10px}
.creator-follow-list-copy em{font-size:9px}}
/* ===== Profile editor ===== */
.drawer-avatar img,.account-avatar img,.friendii-ref-seller-avatar img,.friendii-ref-creator-avatar img,.artist-store-avatar img,.buyer-order-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.profile-edit-backdrop{position:fixed;inset:0;z-index:1500;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.58);backdrop-filter:blur(3px)}
.profile-edit-backdrop.open{display:flex}
.profile-editor-modal{width:min(520px,100%);max-height:min(92vh,860px);overflow:auto;border:1px solid #dedede;border-radius:10px;background:#fff;color:#202020;box-shadow:0 28px 90px rgba(0,0,0,.3)}
.profile-editor-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #ededed}
.profile-editor-head h2{margin:0;font-size:16px;color:#202020}
.profile-editor-head button{width:32px;height:32px;border:0;background:transparent;color:#888;font-size:22px;cursor:pointer;border-radius:50%}
.profile-editor-head button:hover{background:#f1f1f1;color:#222}
.username-editor-dialog header button{width:32px;height:32px;border:0;background:transparent;color:#aaa;font-size:22px;cursor:pointer;border-radius:50%}
.username-editor-dialog header button:hover{background:#333;color:#fff}
.profile-editor-form{display:grid;gap:18px;padding:18px 22px 22px}
.profile-media-editor{position:relative;padding-bottom:18px;border-bottom:1px solid #ededed}
.profile-cover-preview{height:122px;border:1px solid #e2e2e2;border-radius:8px;background-color:#eee;background-position:center;background-size:cover;background-repeat:no-repeat;position:relative;overflow:hidden}
.profile-cover-actions{position:absolute;right:10px;top:10px;display:flex;gap:8px}
.profile-cover-actions button{width:32px;height:32px;display:grid;place-items:center;border:1px solid #e1e1e1;border-radius:50%;background:#fff;color:#333;box-shadow:0 1px 5px rgba(0,0,0,.12);cursor:pointer;font-size:16px;line-height:1}
.profile-cover-actions button:hover{background:#f6f6f6;border-color:#c9c9c9}
.profile-avatar-preview-wrap{position:absolute;left:12px;top:60px;width:88px;height:88px;z-index:2}
.profile-avatar-preview{width:86px;height:86px;border:1px solid #fff;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#c9c9c9;color:#fff;font-size:36px;box-shadow:0 0 0 1px #777}
.profile-avatar-preview img{width:100%;height:100%;object-fit:cover}
.profile-avatar-overlay-btn{position:absolute;right:-1px;bottom:-2px;width:30px;height:30px;border:2px solid #fff;border-radius:50%;display:grid;place-items:center;background:#fff;color:#333;box-shadow:0 1px 5px rgba(0,0,0,.16);cursor:pointer;font-size:13px}
.profile-avatar-overlay-btn:hover{background:#f4f4f4;border-color:#fff}
.profile-media-help{min-height:30px;margin:12px 4px 0 112px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#949494;font-size:10px}
.profile-media-help small{font-size:10px;line-height:1.45}
.profile-media-help span{flex:none;border:1px solid #dedede;border-radius:14px;padding:4px 8px;color:#555;background:#fff}
.profile-editor-field{display:grid;gap:7px}
.profile-editor-field>span,.profile-social-editor>div:first-child strong{font-size:11px;color:#444}
.profile-editor-field>span i{color:#ff5d5d;font-style:normal}
.profile-editor-field input,.profile-editor-field textarea,.profile-editor-field select,.profile-social-row input,.profile-social-row select{width:100%;border:1px solid #d7d7d7;border-radius:5px;background:#fff;color:#222;outline:0;font:inherit;font-size:12px}
.profile-editor-field input,.profile-editor-field select,.profile-social-row input,.profile-social-row select{height:38px;padding:0 11px}
.profile-editor-field textarea{min-height:96px;padding:11px;resize:vertical;line-height:1.55}
.profile-editor-field input:focus,.profile-editor-field textarea:focus,.profile-editor-field select:focus,.profile-social-row input:focus,.profile-social-row select:focus{border-color:#e58b00;box-shadow:0 0 0 2px rgba(229,139,0,.12)}
.profile-category-multiselect{position:relative}
.profile-category-trigger{min-height:44px;width:100%;padding:5px 34px 5px 5px;border:1px solid #d7d7d7;border-radius:6px;background:#fff;color:#222;display:flex;align-items:center;cursor:pointer;position:relative;outline:none}
.profile-category-trigger:focus,.profile-category-multiselect.open .profile-category-trigger{border-color:#1976f3;box-shadow:0 0 0 2px rgba(25,118,243,.12)}
.profile-category-chips{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.profile-category-chips>em{padding-left:6px;color:#aaa;font-size:11px;font-style:normal}
.profile-category-chip{min-height:28px;padding:4px 5px 4px 9px;border-radius:5px;background:#ececec;color:#3e3e3e;display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.2}
.profile-category-chip>button{width:18px;height:18px;padding:0;border:0;border-radius:50%;background:transparent;color:#999;display:grid;place-items:center;cursor:pointer;font-size:14px;line-height:1}
.profile-category-chip>button:hover{background:#d6d6d6;color:#333}
.profile-category-search{position:absolute;right:10px;top:50%;transform:translateY(-50%) rotate(-15deg);color:#aaa;font-size:16px}
.profile-category-dropdown{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 5px);max-height:235px;padding:4px;border:1px solid #dedede;border-radius:6px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.16);overflow-y:auto;display:none}
.profile-category-multiselect.open .profile-category-dropdown{display:block}
.profile-category-dropdown>button{width:100%;min-height:34px;padding:7px 10px;border:0;border-radius:3px;background:#fff;color:#333;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;font:inherit;font-size:11px}
.profile-category-dropdown>button:hover{background:#f2f7fb}
.profile-category-dropdown>button.selected{background:#dceeff;font-weight:700}
.profile-category-dropdown>button>b{visibility:hidden;color:#1976f3;font-size:14px}
.profile-category-dropdown>button.selected>b{visibility:visible}
.profile-counted-input{position:relative}
.profile-counted-input input{padding-right:58px}
.profile-counted-input textarea{padding-bottom:27px}
.profile-counted-input small{position:absolute;right:10px;bottom:8px;color:#999;font-size:10px}
.profile-editor-input-action{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:8px}
.profile-editor-input-action>button{border:1px solid #d7d7d7;border-radius:5px;background:#fff;color:#444;cursor:pointer}
.profile-editor-input-action>button:hover{background:#f5f5f5}
.profile-username-display{height:38px;display:grid;grid-template-columns:23px 1fr;align-items:center;border:1px solid #d7d7d7;border-radius:5px;background:#f7f7f7;padding:0 8px}
.profile-username-display b{color:#777}
.profile-username-display input{height:34px!important;border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;color:#aaa!important}
.profile-social-editor{display:grid;gap:10px}
.profile-social-editor>div:first-child{display:grid;gap:4px}
.profile-social-editor>div:first-child small{color:#888;font-size:10px}
#profileSocialRows{display:grid;gap:8px}
.profile-social-row{display:grid;grid-template-columns:116px minmax(0,1fr) 44px;gap:7px}
.profile-social-row button{border:1px solid #d7d7d7;border-radius:5px;background:#fff;color:#777;cursor:pointer;font-size:10px}
.profile-social-row button:hover{color:#d74d4d;border-color:#e8a5a5}
#addProfileSocialBtn{height:38px;border:1px solid #d7d7d7;border-radius:20px;background:#fff;color:#444;cursor:pointer;font-weight:700;font-size:11px}
#addProfileSocialBtn:hover{background:#f5f5f5}
.profile-editor-save{height:43px;border:0;border-radius:22px;background:#e98b00;color:#fff;cursor:pointer;font-weight:800;font-size:13px}
.profile-editor-save:hover{background:#f39a12}
.profile-editor-save:disabled{opacity:.65;cursor:wait}
.username-edit-layer{position:fixed;inset:0;z-index:1510;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.58)}
.username-edit-layer.open{display:flex}
.username-editor-dialog{width:min(520px,100%);border:1px solid rgba(255,255,255,.08);border-radius:9px;background:#242424;color:#eee;padding:20px 26px;box-shadow:0 25px 80px rgba(0,0,0,.6)}
.username-editor-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.username-editor-dialog h3{margin:0;font-size:16px}
.username-editor-dialog label{display:grid;gap:8px;font-size:12px}
.username-editor-dialog label span i{color:#ff6565;font-style:normal}
.username-editor-input{height:42px;display:grid;grid-template-columns:22px minmax(0,1fr) 52px;align-items:center;border:1px solid #444;border-radius:5px;background:#191919;padding:0 11px}
.username-editor-input b{color:#eee}
.username-editor-input input{height:38px;border:0;background:transparent;color:#eee;outline:0;font:inherit}
.username-editor-input small{color:#c9c9c9;font-size:11px;text-align:right}
.username-editor-dialog>p{margin:22px 0 14px;color:#969696;font-size:11px}
.username-editor-actions{display:flex;justify-content:flex-end;gap:9px}
.username-editor-actions button{height:36px;padding:0 18px;border:1px solid #3e3e3e;border-radius:6px;background:#1d1d1d;color:#ddd;cursor:pointer;font-weight:700}
.username-editor-actions button:last-child{border-color:#e98b00;background:#e98b00;color:#fff}
@media(max-width:600px){.profile-edit-backdrop{padding:0;align-items:stretch}
.profile-editor-modal{width:100%;max-height:100vh;border-radius:0}
.profile-editor-form{padding:16px}
.profile-editor-head{padding:0 16px}
.profile-cover-preview{height:112px}
.profile-avatar-preview-wrap{left:10px;top:56px;width:80px;height:80px}
.profile-avatar-preview{width:78px;height:78px}
.profile-media-help{margin-left:100px}
.profile-social-row{grid-template-columns:100px minmax(0,1fr) 40px}
.username-editor-dialog{padding:18px}}
/* ===== Friendii-style guest authentication flow ===== */
.guest-login-btn{height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 18px;border-radius:999px;background:#1f79ee;color:#fff!important;font-weight:800;font-size:13px;box-shadow:none;border:1px solid #1f79ee;white-space:nowrap}
.guest-login-btn:hover{background:#1469d8}
.guest-language{background:#fff!important;color:#1c1c1c!important;border-color:#ddd!important;box-shadow:none!important;font-weight:700}
.guest-currency{background:#fff!important;color:#1c1c1c!important;border-color:#ddd!important;box-shadow:none!important}
body[data-page="login"],body[data-page="signup"],body[data-page="forgot-password"],body[data-page="reset-password"]{background:#f5f5f5;color:#171717;min-height:100vh}
body[data-page="login"] .site-header,body[data-page="signup"] .site-header,body[data-page="forgot-password"] .site-header,body[data-page="reset-password"] .site-header{background:#fff;color:#171717;border-color:#e5e5e5;box-shadow:none;position:relative;z-index:30}
body[data-page="login"] .brand,body[data-page="signup"] .brand,body[data-page="forgot-password"] .brand,body[data-page="reset-password"] .brand,
body[data-page="login"] .main-nav,body[data-page="signup"] .main-nav,body[data-page="forgot-password"] .main-nav,body[data-page="reset-password"] .main-nav{color:#171717}
body[data-page="signup"] .category-nav,body[data-page="forgot-password"] .category-nav,body[data-page="reset-password"] .category-nav{display:none}
body[data-page="login"] .reference-category-nav{background:#fff;color:#171717;border-top:1px solid #eee;border-bottom:1px solid #eee}
.auth-page-underlay{min-height:calc(100vh - 120px);background:#f3f3f3;padding:16px 0 80px}
.auth-underlay-banner{width:min(1360px,calc(100% - 64px));height:330px;margin:auto;border-radius:10px;overflow:hidden;background:#ddd}
.auth-underlay-banner img{width:100%;height:100%;object-fit:cover;display:block}
/* When login.html?next=index.html is opened, show the real index page behind
   the login modal instead of a placeholder banner. */
body.login-index-preview{overflow:hidden}
body.login-index-preview>.site-header{display:none}
.auth-page-underlay.auth-live-underlay{position:fixed;inset:0;z-index:1;min-height:0;padding:0;background:#f6f6f6;overflow:hidden}
.auth-live-frame{display:block;width:100%;height:100%;border:0;background:#f6f6f6;pointer-events:none}
.auth-modal-screen{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.46);display:grid;place-items:center;padding:20px}
.auth-login-modal{position:relative;width:min(390px,calc(100vw - 36px));background:#fff;color:#171717;border-radius:8px;box-shadow:0 18px 55px rgba(0,0,0,.28);padding:24px 28px 28px}
.auth-login-modal h1{margin:0 0 22px;font-size:18px;line-height:1.3;font-weight:800}
.auth-modal-close{position:absolute;right:17px;top:12px;font-size:26px;color:#888;font-weight:300;line-height:1}
.friendii-auth-form{display:grid;gap:12px}
.auth-input-wrap{height:40px;border:1px solid #d8d8d8;border-radius:6px;display:flex;align-items:center;padding:0 11px;background:#fff}
.auth-input-wrap:focus-within{border-color:#7db2f3;box-shadow:0 0 0 2px rgba(31,121,238,.08)}
.auth-field-icon{width:23px;color:#666;font-size:16px}
.auth-input-wrap input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:#222;outline:0;font-size:13px}
.auth-input-wrap input::placeholder{color:#b2b2b2}
.auth-eye{background:transparent;color:#aaa;cursor:pointer;font-size:15px;padding:4px}
.auth-inline-links{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:12px;margin:3px 0 5px}
.auth-inline-links a{color:#1675ef;font-weight:700}
.auth-inline-links span{color:#555}
.auth-primary-btn{min-height:42px;border:0;border-radius:6px;background:#1f79ee;color:#fff!important;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;cursor:pointer;text-align:center}
.auth-primary-btn:hover{background:#1469d8}
.auth-or{display:flex;align-items:center;justify-content:center;margin:18px 0 16px;color:#333;font-size:12px}
.auth-or:before,.auth-or:after{content:"";height:1px;background:#e3e3e3;flex:1}
.auth-or span{padding:0 12px}
.simple-auth-shell{min-height:calc(100vh - 68px);display:flex;justify-content:center;align-items:flex-start;padding:82px 20px 100px;background:#f5f5f5}
.simple-auth-card{width:min(350px,100%);color:#171717}
.simple-auth-card h1{font-size:17px;margin:0 0 20px;font-weight:800}
.simple-auth-lead{font-size:13px;margin:-10px 0 22px;color:#333}
.simple-auth-form{display:grid;gap:20px}
.simple-auth-form>label{display:grid;gap:8px}
.simple-auth-form label>span{font-size:13px}
.simple-auth-form label>span i{font-style:normal;color:#ff4d4f}
.simple-auth-form input{width:100%;height:38px;border:1px solid #d3d3d3;border-radius:5px;background:#fff;color:#222;padding:0 11px;outline:0}
.simple-auth-form input:focus{border-color:#7db2f3;box-shadow:0 0 0 2px rgba(31,121,238,.07)}
.simple-password-wrap{position:relative}
.simple-password-wrap input{padding-right:42px}
.simple-password-wrap button{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:32px;height:30px;background:transparent;color:#999;cursor:pointer}
.simple-submit-btn{height:41px;border-radius:6px;border:1px solid #d2d2d2;background:#eee;color:#b4b4b4;font-weight:800;cursor:pointer;margin-top:2px}
.simple-auth-form:valid .simple-submit-btn{background:#1f79ee;border-color:#1f79ee;color:#fff}
.simple-submit-btn:hover{filter:brightness(.98)}
.simple-auth-bottom{text-align:center;margin:22px 0 0;font-size:12px}
.simple-auth-bottom a{color:#1675ef;font-weight:700}
.reset-mail-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e8f2ff;color:#1f79ee;font-size:25px;margin:0 auto 16px}
.reset-demo-message{margin-top:22px;border:1px solid #d9e7fb;background:#fff;border-radius:8px;padding:16px;display:grid;gap:10px;text-align:left}
.reset-demo-message strong{font-size:13px}
.reset-demo-message span{font-size:12px;color:#666}
.reset-demo-message .auth-primary-btn{margin-top:4px}
@media(max-width:720px){.guest-language{display:none}
.guest-login-btn{height:36px;padding:0 14px}
.auth-underlay-banner{width:calc(100% - 28px);height:220px}
.auth-login-modal{padding:22px 20px 24px}
.simple-auth-shell{padding-top:50px}}
/* Checkout address & payment selector modals */
.payment-option{grid-template-columns:24px minmax(0,1fr) auto}
.payment-option-copy{display:grid;gap:2px;text-align:left}
.payment-option-copy strong{font-size:12px!important}
.payment-option-copy small{font-size:9px;color:#999;font-weight:400}
.payment-mini-icon,.payment-method-icon{display:grid;place-items:center;font-weight:800;line-height:1}
.payment-mini-icon{width:22px;height:22px;border-radius:50%;background:#ffd334;color:#7f6500;font-size:12px}
.checkout-selector-dialog{width:min(520px,100%);padding:0;gap:0;overflow:hidden}
.checkout-selector-dialog .checkout-address-head{padding:20px 24px 12px}
.checkout-selector-dialog .checkout-address-head h2{font-size:17px;font-weight:800;color:#222}
.checkout-address-choice-list{display:grid;padding:0 24px;max-height:360px;overflow:auto}
.checkout-address-choice{position:relative!important;display:grid!important;grid-template-columns:20px 1fr auto;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid #e7e7e7;cursor:pointer;font-weight:400!important;color:#222!important}
.checkout-address-choice:last-child{border-bottom:0}
.checkout-address-choice>input{position:absolute;opacity:0;pointer-events:none;width:0!important;height:0;padding:0!important;border:0!important}
.checkout-radio-dot{width:16px;height:16px;border:1.5px solid #cfcfcf;border-radius:50%;position:relative;background:#fff}
.checkout-address-choice>input:checked+.checkout-radio-dot{border-color:#287cff}
.checkout-address-choice>input:checked+.checkout-radio-dot:after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#287cff;inset:50% auto auto 50%;transform:translate(-50%,-50%)}
.checkout-address-choice-copy{display:grid;gap:6px;min-width:0}
.checkout-address-person{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.checkout-address-person strong{font-size:13px;color:#222}
.checkout-address-person em{font-style:normal;font-size:12px;color:#999;font-weight:400}
.checkout-address-text{font-size:12px;line-height:1.55;color:#555;font-weight:400}
.checkout-address-choice-copy small{justify-self:start;background:#fff1ee;color:#ff6b63;border-radius:3px;padding:3px 7px;font-size:9px;font-weight:500}
.checkout-address-edit{align-self:start;color:#2277ee;font-size:11px;text-decoration:none;white-space:nowrap}
.checkout-add-address-link{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 24px;padding:18px 0;border-top:1px solid #e7e7e7;color:#2378ee;font-size:12px;text-decoration:none}
.checkout-add-address-link span{font-size:18px}
.checkout-selector-empty{display:grid;place-items:center;min-height:160px;color:#aaa;gap:6px}
.checkout-selector-empty span{font-size:34px;color:#ddd}
.checkout-selector-empty p{margin:0;font-size:12px}
.checkout-selector-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 24px 18px}
.checkout-selector-actions .reference-secondary-btn,.checkout-selector-actions .reference-primary-btn{width:auto;min-width:68px;min-height:34px;padding:0 18px;font-size:11px}
.checkout-payment-dialog{width:min(500px,100%);padding:0;gap:0;overflow:hidden}
.checkout-payment-dialog .checkout-address-head{padding:20px 24px 12px}
.checkout-payment-list{display:grid;padding:4px 24px 0;max-height:560px;overflow:auto}
.checkout-payment-choice{position:relative!important;display:grid!important;grid-template-columns:18px 34px minmax(0,1fr);align-items:center;gap:12px;padding:10px 0;cursor:pointer;font-weight:400!important;color:#222!important}
.checkout-payment-choice>input{position:absolute;opacity:0;pointer-events:none;width:0!important;height:0;padding:0!important;border:0!important}
.checkout-payment-choice>input:checked+.checkout-radio-dot{border-color:#287cff}
.checkout-payment-choice>input:checked+.checkout-radio-dot:after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#287cff;inset:50% auto auto 50%;transform:translate(-50%,-50%)}
.checkout-payment-choice.disabled{opacity:.45;cursor:not-allowed}
.payment-method-icon{width:30px;height:30px;border-radius:7px;font-size:9px;background:#f2f3f5;color:#333}
.payment-method-icon.coin{border-radius:50%;background:#ffd334;color:#8a6a00;font-size:14px}
.payment-method-icon.promptpay{background:#173f68;color:#fff}
.payment-method-icon.truemoney{background:#ff7c16;color:#fff}
.payment-method-icon.linepay{background:#20c86b;color:#fff;font-size:7px}
.payment-method-icon.kplus{background:#1faa68;color:#fff}
.payment-method-icon.scb{background:#4c1f86;color:#fff;font-size:7px}
.payment-method-icon.kma{background:#6c5b20;color:#ffd634;font-size:7px}
.payment-method-icon.bbl{background:#1168e8;color:#fff}
.payment-method-icon.ktb{background:#20a5d8;color:#fff;font-size:7px}
.payment-method-icon.card{background:#f4f4f4;color:#333;border:1px solid #ddd}
.payment-method-copy{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.payment-method-copy strong{font-size:12px;font-weight:700;color:#222}
.payment-method-copy small{font-size:9px;color:#aaa;font-weight:400}
.payment-topup-link{font-size:9px;color:#555;text-decoration:underline}
.payment-balance{margin-left:auto}
.payment-card-logos{display:flex;justify-content:center;gap:12px;padding:8px 24px 2px;font-weight:800;font-size:11px;color:#244399}
@media(max-width:640px){.checkout-selector-dialog,.checkout-payment-dialog{width:100%;max-height:calc(100vh - 24px);border-radius:10px}
.checkout-address-choice-list{max-height:48vh}
.checkout-payment-list{max-height:58vh}
.checkout-selector-dialog .checkout-address-head,.checkout-payment-dialog .checkout-address-head{padding:16px 18px 10px}
.checkout-address-choice-list,.checkout-payment-list{padding-left:18px;padding-right:18px}
.checkout-add-address-link{margin-left:18px;margin-right:18px}
.checkout-selector-actions{padding-left:18px;padding-right:18px}}
