@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;800&display=swap');

/* =========================================================
 * 1. استایل‌های داشبورد کاشی‌ای (طرح خودت)
 * ========================================================= */
body:has(.wm-root) { margin: 0; padding: 0; overflow-x: hidden; }
.wm-root, .wm-root *, .wm-root *::before, .wm-root *::after { box-sizing: border-box; }
.wm-root {
  --wm-gap: 16px; position: relative; display: flex; flex-direction: column; width: 100%; max-width: 100vw; min-height: 100vh; overflow: hidden; direction: rtl; text-align: right; font-family: "Vazirmatn", Tahoma, sans-serif; padding: 32px clamp(16px, 3vw, 48px) 24px; background: radial-gradient(circle at 15% 10%, rgba(255,255,255,.18), transparent 40%), linear-gradient(135deg, #6a3df0 0%, #3b82f6 48%, #ec4899 100%); isolation: isolate;
}
.wm-bubble { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; z-index: 0; animation: wm-float 18s ease-in-out infinite; }
.wm-bubble--1 { width: 320px; height: 320px; top: -90px; right: -70px; background: #f9a8d4; }
.wm-bubble--2 { width: 280px; height: 280px; bottom: -80px; left: -60px; background: #67e8f9; }
.wm-bubble--3 { width: 200px; height: 200px; top: 40%; left: 8%; background: #c4b5fd; opacity: .4; }
.wm-bubble--4 { width: 220px; height: 220px; bottom: 12%; right: 6%; background: #fde68a; opacity: .35; }
.wm-bubble--5 { width: 160px; height: 160px; top: 8%; left: 30%; background: #93c5fd; opacity: .45; }
@keyframes wm-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -26px) scale(1.05); } }
.wm-grid { position: relative; z-index: 1; flex: 1 1 auto; width: 100%; max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(130px, 1fr)); gap: var(--wm-gap); }
.wm-tile { --wm-a: #3b82f6; --wm-b: #1d4ed8; --wm-glow: rgba(59,130,246,.7); position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 20px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none !important; background: linear-gradient(135deg, var(--wm-a), var(--wm-b)); box-shadow: 0 8px 20px rgba(20,10,60,.25), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .3s ease, box-shadow .3s ease; opacity: 0; animation: wm-enter .7s ease forwards; animation-delay: calc(var(--wm-i, 0) * 50ms); }
.wm-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 45%); pointer-events: none; }
.wm-tile:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 38px rgba(20,10,60,.4), 0 0 28px 4px var(--wm-glow); z-index: 3; color: #fff; }
@keyframes wm-enter { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.wm-tile--large { grid-column: span 2; grid-row: span 3; padding: 28px; }
.wm-ico { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.wm-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wm-tile--large .wm-ico { width: 76px; height: 76px; border-radius: 22px; }
.wm-tile--large .wm-ico svg { width: 46px; height: 46px; }
.wm-text { position: relative; display: block; }
.wm-title { display: block; font-size: 18px; font-weight: 700; }
.wm-tile--large .wm-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; }
.wm-c-profile { --wm-a: #8b5cf6; --wm-b: #5b21b6; --wm-glow: #8b5cf6b3; }
.wm-c-security { --wm-a: #16a34a; --wm-b: #14532d; --wm-glow: #16a34ab3; }
.wm-c-login { --wm-a: #f97316; --wm-b: #c2410c; --wm-glow: #f97316b3; }
.wm-c-support { color: #2b2100; --wm-a: #facc15; --wm-b: #ca8a04; --wm-glow: #facc15b3; }
.wm-c-messages { --wm-a: #f472b6; --wm-b: #db2777; --wm-glow: #f472b6b3; }
.wm-c-resume { --wm-a: #818cf8; --wm-b: #4338ca; --wm-glow: #818cf8b3; }
.wm-c-ads { --wm-a: #14b8a6; --wm-b: #0f766e; --wm-glow: #14b8a6b3; }
.wm-c-alerts { --wm-a: #fb7185; --wm-b: #be123c; --wm-glow: #fb7185b3; }
.wm-c-pistachio { color: #2b3d0a; --wm-a: #b5ce89; --wm-b: #7a9b47; --wm-glow: #b5ce89b3; }
.wm-c-invoices { --wm-a: #38bdf8; --wm-b: #0369a1; --wm-glow: #38bdf8b3; }
.wm-c-categories { --wm-a: #a855f7; --wm-b: #7e22ce; --wm-glow: #a855f7b3; }
.wm-c-reviews { --wm-a: #fbbf24; --wm-b: #b45309; --wm-glow: #fbbf24b3; }
.wm-locked { cursor: not-allowed !important; pointer-events: none; animation: none !important; opacity: 1 !important; }
.wm-locked::before { background: rgba(15, 23, 42, 0.4) !important; z-index: 5; border-radius: 16px; }
.wm-locked .wm-ico, .wm-locked .wm-text { opacity: 0.3; position: relative; z-index: 6; }
.wm-lock-badge { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: 64px !important; height: 64px !important; background: rgba(15, 23, 42, 0.9) !important; border: 2px solid rgba(255, 255, 255, 0.4) !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 32px !important; z-index: 10 !important; box-shadow: 0 8px 20px rgba(0,0,0,0.5) !important; color: #fff !important; }
.wm-profile { cursor: default; justify-content: flex-end; align-items: flex-start; --wm-a: #6366f1; --wm-b: #4338ca; }
.wm-profile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(10,5,40,.6), transparent); pointer-events: none; }
.wm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.wm-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.wm-placeholder svg { width: 46%; max-width: 180px; fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.2; }
.wm-profile.wm-has-photo .wm-placeholder { display: none; }
.wm-upload { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); }
.wm-upload svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wm-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wm-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; color: #fff; }
.wm-flag { width: 72px; height: 48px; flex: none; }
.wm-flag img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.wm-credit { margin: 0; font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; text-shadow: 0 2px 10px rgba(20,10,60,.5); }
@media (max-width: 1024px) { .wm-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; } }
@media (max-width: 640px) { .wm-root { padding: 20px 10px; } .wm-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; } .wm-tile { padding: 14px; } .wm-tile--large { grid-column: span 2; grid-row: span 3; padding: 14px; } .wm-title { font-size: 15px; } .wm-footer { flex-direction: column; } }

/* =========================================================
 * 2. استایل‌های صفحه ورود و ثبت‌نام (طرح دو ستونه خودت)
 * با قدرت !important تا قالب سایت خرابش نکنه
 * ========================================================= */
.hooshko-auth-login {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 30px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    direction: rtl !important;
    background: radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.08), transparent 28%), radial-gradient(circle at 85% 80%, rgba(45, 212, 191, 0.08), transparent 28%) !important;
    box-sizing: border-box !important;
}

.hooshko-auth-preview {
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    display: block !important;
}

.hooshko-auth-card {
    width: 100% !important;
    min-height: 390px !important;
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(45, 212, 191, 0.2) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08) !important;
    direction: ltr !important;
    position: relative !important;
}

.hooshko-auth-promo {
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
    background: linear-gradient(145deg, #20cdb9 0%, #11a99a 52%, #0d968b 100%) !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
}

.hooshko-auth-promo-content { position: relative !important; z-index: 2 !important; width: 100% !important; max-width: 320px !important; }
.hooshko-auth-promo h2 { margin: 0 0 10px !important; color: #ffffff !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1.5 !important; }
.hooshko-auth-promo p { margin: 0 auto !important; color: rgba(255, 255, 255, 0.92) !important; font-size: 13px !important; line-height: 2 !important; }
.hooshko-auth-promo-items { margin-top: 16px !important; }
.hooshko-auth-promo-item { margin-top: 7px !important; padding: 8px 11px !important; border: 1px solid rgba(255, 255, 255, 0.18) !important; border-radius: 9px !important; background: rgba(255, 255, 255, 0.08) !important; color: rgba(255, 255, 255, 0.94) !important; font-size: 11px !important; line-height: 1.7 !important; }
.hooshko-auth-afghanistan { margin-top: 15px !important; color: rgba(255, 255, 255, 0.96) !important; font-size: 11px !important; font-weight: 700 !important; }

.hooshko-auth-form-side {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    direction: rtl !important;
}

.hooshko-auth-form-inner {
    width: 100% !important;
    padding: 22px 34px !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

.hooshko-auth-form h2 { margin: 0 0 7px !important; text-align: center !important; color: #173f3b !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1.4 !important; }
.hooshko-auth-form-description { margin: 0 0 14px !important; text-align: center !important; color: #71808a !important; font-size: 13px !important; line-height: 1.8 !important; }

.hooshko-auth-field { width: 100% !important; margin-bottom: 12px !important; }
.hooshko-auth-field label { display: block !important; margin-bottom: 5px !important; color: #31514d !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.6 !important; }
.hooshko-auth-field input {
    width: 100% !important; min-height: 42px !important; margin: 0 !important; padding: 9px 12px !important;
    border: 1px solid #d8e5e3 !important; border-radius: 10px !important; outline: none !important;
    background: #ffffff !important; color: #173f3b !important; font-family: inherit !important; font-size: 13px !important;
    line-height: 1.6 !important; box-sizing: border-box !important; transition: border-color 0.2s ease !important;
}
.hooshko-auth-field input:focus { border-color: #2dd4bf !important; box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.10) !important; }

.hooshko-auth-two-fields { width: 100% !important; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

.hooshko-auth-button {
    width: 100% !important; min-height: 44px !important; margin-top: 5px !important; padding: 9px 16px !important;
    border: 0 !important; border-radius: 11px !important;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6) !important; color: #ffffff !important;
    font-family: inherit !important; font-size: 13px !important; font-weight: 800 !important; cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(20, 184, 166, 0.18) !important; transition: transform 0.2s !important;
}
.hooshko-auth-button:hover { transform: translateY(-1px) !important; }

.hooshko-auth-switch { margin: 13px 0 0 !important; text-align: center !important; color: #71808a !important; font-size: 12px !important; line-height: 1.8 !important; }
.hooshko-auth-switch a { color: #159e91 !important; text-decoration: none !important; font-weight: 800 !important; }
.hooshko-auth-switch a:hover { text-decoration: underline !important; }

.hooshko-auth-message { width: 100% !important; margin: 0 0 13px !important; padding: 10px 12px !important; border-radius: 10px !important; box-sizing: border-box !important; font-size: 11px !important; line-height: 1.9 !important; text-align: center !important; }
.hooshko-auth-error { border: 1px solid rgba(220, 80, 80, 0.18) !important; background: rgba(220, 80, 80, 0.06) !important; color: #9b4141 !important; }
.hooshko-auth-success { border: 1px solid rgba(20, 184, 166, 0.20) !important; background: rgba(45, 212, 191, 0.08) !important; color: #17665e !important; }

@media (max-width: 768px) {
    .hooshko-auth-card { grid-template-columns: 1fr !important; }
    .hooshko-auth-two-fields { grid-template-columns: 1fr !important; gap: 0 !important; }
}
/* =========================================================
 * پالت رنگ‌های تم داشبورد
 * ========================================================= */
.theme-ocean .wm-tile { --wm-a: #0ea5e9 !important; --wm-b: #0284c7 !important; }
.theme-sunset .wm-tile { --wm-a: #f97316 !important; --wm-b: #ea580c !important; }
.theme-forest .wm-tile { --wm-a: #10b981 !important; --wm-b: #047857 !important; }
.theme-dark .wm-tile { --wm-a: #334155 !important; --wm-b: #0f172a !important; }
.theme-dark .wm-root { background: #0f172a !important; }
