/* TailorCore — واجهة تطبيق الجوال (RTL) */
:root{--tc-main:#7C3AED;--tc-main2:#A855F7;--tc-bg:#F8F9FA;--tc-text:#1F2433;--tc-muted:#7a7f90;--tc-line:#ececf2;--tc-title:#4C1D95;--tc-grad:linear-gradient(135deg,var(--tc-main),var(--tc-main2))}
.tc-home,.tc-hlist,.tc-dir,.tc-form,.tc-orders,.tc-profile,.tc-box,.tc-hero,.tc-section-title,.tc-empty{direction:rtl;color:var(--tc-text);font-family:inherit}
body.tc-app{-webkit-tap-highlight-color:transparent}
body.tc-app :not(input):not(textarea):not([contenteditable]){-webkit-user-select:none;user-select:none}
body.tc-app input,body.tc-app textarea{-webkit-user-select:text;user-select:text}
body.tc-app{overflow-x:hidden}
body.tc-app img{max-width:100%;height:auto}
.tc-box{background:#fff;border:0;border-radius:20px;padding:16px;margin:0 0 14px;box-shadow:0 2px 14px rgba(30,20,60,.06)}
.tc-center{text-align:center}.tc-muted{color:var(--tc-muted);font-size:.88em}.tc-empty{text-align:center;color:var(--tc-muted);padding:28px 0}
.tc-note{background:#f3edff;color:var(--tc-main);border-radius:12px;padding:8px 12px;font-size:.9rem;margin:10px 0 0}
.tc-btn{display:inline-block;background:var(--tc-grad);color:#fff!important;border:0;border-radius:999px;padding:12px 22px;font-size:1rem;font-weight:700;text-align:center;text-decoration:none!important;cursor:pointer;line-height:1.2;font-family:inherit}
.tc-btn:disabled{opacity:.6}
.tc-btn-block{display:block;width:100%;margin-top:12px;box-sizing:border-box}
.tc-btn-sm{padding:9px 16px;font-size:.88rem}
.tc-btn-ghost{background:#fff;color:var(--tc-main)!important;border:1.5px solid var(--tc-main)}
.tc-btn-wa{background:#25D366}
.tc-link{background:none;border:0;color:var(--tc-main);cursor:pointer;padding:8px;width:100%;font-family:inherit}
/* hero + titles */
.tc-hero{background:var(--tc-grad);border-radius:20px;padding:22px 20px;margin:4px 0 18px;color:#fff;box-shadow:0 8px 22px rgba(124,58,237,.28)}
.tc-hero h2{color:#fff;margin:0 0 6px;font-size:1.45rem;font-weight:800}.tc-hero p{margin:0;color:rgba(255,255,255,.88);font-size:.95rem;line-height:1.6}
.tc-section-title{margin:6px 2px 12px;font-size:1.1rem;font-weight:800}
/* chips */
.tc-chips{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.tc-chips::-webkit-scrollbar{display:none}
.tc-chip{flex:0 0 auto;border:0;background:#fff;color:var(--tc-text);border-radius:999px;padding:9px 18px;cursor:pointer;white-space:nowrap;box-shadow:0 1px 6px rgba(30,20,60,.08);font-family:inherit}
.tc-chip.active{background:var(--tc-grad);color:#fff}
/* grid */
.tc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.tc-card-img{position:relative;border-radius:18px;overflow:hidden;background:#ece8f5;aspect-ratio:3/4}
.tc-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.tc-tag-req{position:absolute;bottom:8px;right:8px;background:rgba(255,255,255,.96);color:var(--tc-main)!important;border-radius:999px;padding:6px 12px;font-size:.8rem;font-weight:800;text-decoration:none!important;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.tc-grid.loading{opacity:.5;pointer-events:none}
/* horizontal cards (طلبات) */
.tc-hlist{display:grid;gap:12px}
.tc-hcard{background:#fff;border-radius:20px;padding:12px;margin-bottom:12px;box-shadow:0 2px 14px rgba(30,20,60,.06)}
.tc-hlist .tc-hcard{margin-bottom:0}
.tc-hcard-row{display:flex;gap:12px;align-items:center}
.tc-hcard-img{flex:0 0 96px;height:112px;border-radius:16px;background:#ece8f5;overflow:hidden}
.tc-hcard-img img{width:100%;height:100%;object-fit:cover;display:block}
.tc-hcard-info{flex:1;min-width:0;display:grid;gap:4px}
.tc-hcard-info strong{font-size:.98rem}
.tc-status{display:inline-block;margin-right:6px;font-size:.72rem;padding:2px 10px;border-radius:999px;background:#eee;font-weight:600}
.tc-s-open{background:#e8f1ff;color:#0b6bcb}.tc-s-in_progress{background:#fff4e0;color:#b36b00}.tc-s-completed{background:#e6f7ec;color:#1a7f37}.tc-s-expired{background:#f1f1f1;color:#777}
.tc-bid{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px dashed var(--tc-line);margin-top:10px;padding-top:10px}
.tc-bid-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.tc-bid-form[hidden]{display:none}
.tc-bid-form input{padding:11px;border:1.5px solid var(--tc-line);border-radius:12px;font-size:1rem;width:100%;box-sizing:border-box;font-family:inherit}
.tc-bid-form button{width:100%}
.tc-actions{display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}
/* directory */
.tc-dir{display:grid;gap:12px}
.tc-tailor{background:#fff;border-radius:20px;padding:14px;box-shadow:0 2px 14px rgba(30,20,60,.06)}
.tc-tailor-head{display:flex;gap:12px;align-items:center}.tc-tailor-head h3{margin:0 0 2px;font-size:1.05rem}
.tc-avatar{width:60px;height:60px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.tc-verified{display:inline-block;background:var(--tc-main);color:#fff;border-radius:50%;width:18px;height:18px;line-height:18px;text-align:center;font-size:.7rem;vertical-align:middle}
.tc-verified-badge{display:inline-block;background:#e6f7ec;color:#1a7f37;border-radius:999px;padding:3px 12px;font-size:.82rem;font-weight:700}
.tc-me{display:flex;gap:14px;align-items:center}.tc-me h2{margin:0 0 2px;font-size:1.15rem}.tc-me p{margin:0 0 6px}
.tc-stars{color:#f5a623;letter-spacing:2px}
.tc-mini-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0 0}
.tc-mini-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block}
.tc-work{position:relative}.tc-del{position:absolute;top:2px;left:2px;background:rgba(0,0,0,.65);color:#fff;border:0;border-radius:50%;width:22px;height:22px;cursor:pointer}
/* forms */
.tc-form label{display:block;margin:10px 0;font-size:.92rem}
.tc-form input[type=text],.tc-form input[type=number],.tc-form input[type=email],.tc-form input[type=password],.tc-form select,.tc-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:12px;border:1.5px solid var(--tc-line);border-radius:14px;font-size:1rem;background:#fff;font-family:inherit}
.tc-form input:focus,.tc-form select:focus,.tc-form textarea:focus{outline:0;border-color:var(--tc-main)}
.tc-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tc-check{display:flex!important;align-items:center;gap:8px}.tc-check input{width:auto!important;margin:0!important}
.tc-file{border:2px dashed #d9cffa;border-radius:16px;padding:14px;text-align:center;cursor:pointer;color:var(--tc-main)}
.tc-file input{display:block;margin:8px auto 0;max-width:100%}
.tc-preview img{width:100%;max-height:320px;object-fit:cover;border-radius:16px}
/* tabs */
.tc-tabs{display:flex;background:#ebe7f5;border-radius:999px;padding:4px;margin-bottom:14px;gap:2px}
.tc-tab{flex:1;border:0;background:transparent;padding:10px 4px;border-radius:999px;cursor:pointer;font-size:.82rem;font-family:inherit;color:var(--tc-text)}
.tc-tab.active{background:#fff;color:var(--tc-main);font-weight:800;box-shadow:0 1px 4px rgba(0,0,0,.1)}
/* toast */
.tc-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(100px + env(safe-area-inset-bottom));background:#222;color:#fff;padding:11px 20px;border-radius:999px;z-index:100003;font-size:.95rem;max-width:90%;text-align:center}
.tc-toast.err{background:#c0392b}
/* modal */
.tc-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center;direction:rtl}
.tc-modal[hidden]{display:none}
.tc-modal-bg{position:absolute;inset:0;background:rgba(20,10,40,.55)}
.tc-modal-box{position:relative;background:#fff;width:100%;max-width:420px;border-radius:26px 26px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));max-height:92vh;overflow:auto}
@media(min-width:700px){.tc-modal{align-items:center}.tc-modal-box{border-radius:26px}}
.tc-modal-x{position:absolute;top:10px;left:12px;border:0;background:none;font-size:28px;cursor:pointer}
.tc-modal-box h3{margin:0 0 6px;text-align:center;color:var(--tc-title)}
.tc-or{text-align:center;margin:14px 0;color:var(--tc-muted);position:relative;font-size:.85rem}
.tc-or:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:1px solid var(--tc-line)}.tc-or span{position:relative;background:#fff;padding:0 10px}
#tc-google-btn{display:inline-block;min-height:44px}
/* chat */
.tc-chat{position:fixed;inset:0;z-index:100002;background:#f6f4fb;display:flex;flex-direction:column;direction:rtl}
.tc-chat[hidden]{display:none}
.tc-chat-head{display:flex;align-items:center;gap:12px;background:var(--tc-grad);color:#fff;padding:calc(12px + env(safe-area-inset-top)) 14px 12px}
.tc-chat-head button{background:none;border:0;color:#fff;font-size:22px;cursor:pointer}
.tc-chat-msgs{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.tc-msg{max-width:80%;padding:9px 13px;border-radius:16px;background:#fff;align-self:flex-start;word-break:break-word;white-space:pre-wrap;box-shadow:0 1px 4px rgba(0,0,0,.05);user-select:text}
.tc-msg.me{background:var(--tc-grad);color:#fff;align-self:flex-end}
.tc-msg img{max-width:100%;border-radius:12px;display:block}
.tc-chat-form{display:flex;gap:8px;align-items:center;padding:10px 10px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--tc-line)}
.tc-chat-form input[type=text]{flex:1;padding:11px 14px;border:1.5px solid var(--tc-line);border-radius:999px;font-size:1rem;font-family:inherit}
.tc-chat-form button{background:var(--tc-grad);color:#fff;border:0;border-radius:999px;padding:11px 18px;cursor:pointer;font-family:inherit}
.tc-chat-img{font-size:22px;cursor:pointer}
/* header / nav / notifications: الجوال فقط */
.tc-app-header,.tc-bottom-nav,.tc-notif-panel{display:none}
@media(max-width:782px){
 body.tc-app{background:var(--tc-bg);padding-top:calc(70px + env(safe-area-inset-top));padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 body.tc-app .tc-home,body.tc-app .tc-hlist,body.tc-app .tc-dir,body.tc-app .tc-orders,body.tc-app .tc-profile,body.tc-app .tc-hero,body.tc-app .tc-section-title,body.tc-app .tc-box,body.tc-app .tc-form{max-width:640px;margin-left:auto;margin-right:auto}
 body.tc-app .entry-content,body.tc-app .site-content,body.tc-app main{padding-left:16px;padding-right:16px;max-width:100%}
 body.tc-hide-theme .site-header,body.tc-hide-theme #masthead,body.tc-hide-theme header.wp-block-template-part,body.tc-hide-theme .site-footer,body.tc-hide-theme #colophon,body.tc-hide-theme footer.wp-block-template-part,body.tc-hide-theme.page .entry-title,body.tc-hide-theme.page .wp-block-post-title,body.tc-hide-theme.page .page-header{display:none!important}
 .tc-app-header{display:flex;direction:rtl;align-items:center;justify-content:space-between;position:fixed;top:0;right:0;left:0;z-index:99998;background:#fff;border-radius:0 0 24px 24px;box-shadow:0 4px 18px rgba(30,20,60,.07);padding:calc(12px + env(safe-area-inset-top)) 20px 12px;box-sizing:border-box;min-height:62px}
 .tc-app-title{margin:0;font-size:1.3rem;font-weight:800;color:var(--tc-title);line-height:1.2}
 .tc-bell{position:relative;width:42px;height:42px;border-radius:50%;border:0;background:#f1f3f5;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
 .tc-bell svg{width:22px;height:22px;fill:none;stroke:#555b6b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .tc-dot{position:absolute;top:-3px;left:-3px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;background:#e53935;color:#fff;border-radius:999px;font-size:.68rem;font-style:normal;line-height:18px;text-align:center;border:2px solid #fff;box-sizing:content-box}
 .tc-dot[hidden]{display:none}
 .tc-notif-panel{display:block;position:fixed;inset:0;z-index:99999;direction:rtl}
 .tc-notif-panel[hidden]{display:none}
 .tc-notif-bg{position:absolute;inset:0;background:rgba(20,10,40,.4)}
 .tc-notif-box{position:absolute;top:0;right:0;left:0;background:#fff;border-radius:0 0 24px 24px;max-height:75vh;overflow:auto;padding:calc(14px + env(safe-area-inset-top)) 16px 16px}
 .tc-notif-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.tc-notif-top button{border:0;background:none;font-size:26px;cursor:pointer}
 .tc-notif{display:block;padding:12px;border-radius:14px;margin-bottom:6px;background:#faf9fd;text-decoration:none!important;color:var(--tc-text)!important}
 .tc-notif.unread{background:#f1eaff;border-right:4px solid var(--tc-main)}
 .tc-notif b{display:block;margin-bottom:2px}.tc-notif span{color:var(--tc-muted);font-size:.85rem}.tc-notif small{display:block;color:#a0a4b2;margin-top:3px}
 .tc-bottom-nav{display:flex;direction:rtl;position:fixed;right:0;left:0;bottom:0;z-index:99997;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -4px 18px rgba(30,20,60,.08);padding:8px 6px calc(8px + env(safe-area-inset-bottom));align-items:flex-end;justify-content:space-around}
 .tc-nav-item{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 0;color:#9a9eae!important;text-decoration:none!important;font-size:.72rem}
 .tc-nav-item svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .tc-nav-item.active{color:var(--tc-main)!important;font-weight:800}
 .tc-nav-item.active svg{fill:rgba(124,58,237,.14)}
 .tc-nav-center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-decoration:none!important;color:#fff!important;width:66px;height:66px;flex:0 0 66px;border-radius:50%;background:var(--tc-grad);transform:translateY(-16px);box-shadow:0 8px 18px rgba(124,58,237,.45);border:4px solid #fff;box-sizing:border-box}
 .tc-nav-center em{font-style:normal;font-size:1.9rem;line-height:1;font-weight:300}
 .tc-nav-center b{font-size:.68rem;line-height:1;margin-top:-1px}
 .tc-nav-center.active{filter:brightness(.93)}
}
@media(min-width:783px){.tc-grid{grid-template-columns:repeat(4,1fr)}}
