/* VENUS ONLINE - tema (altin / kirmizi / siyah; playvenusonline.com ile ayni dil) */
:root{ --v-gold:#d4af37; --v-gold-hi:#f4dc8a; --v-red:#c41e3a; --v-bg:#0a0a0a; }
.center-screen{
  background:
    radial-gradient(ellipse 60% 45% at 50% 18%, rgba(212,175,55,.16), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 105%, rgba(196,30,58,.16), transparent 70%),
    var(--v-bg);
  font-family:Inter,system-ui,sans-serif;
}
.center-screen .panel{
  width:400px; max-width:calc(100vw - 32px); padding:38px 36px 30px;
  background:linear-gradient(160deg, rgba(26,20,11,.95), rgba(10,9,7,.97));
  border:1px solid rgba(212,175,55,.38); border-radius:8px;
  box-shadow:0 24px 70px rgba(0,0,0,.75), 0 0 48px rgba(212,175,55,.08), inset 0 1px 0 rgba(255,255,255,.05);
  position:relative;
}
.center-screen .panel::before{
  content:""; position:absolute; left:18%; right:18%; top:0; height:2px;
  background:linear-gradient(90deg, transparent, var(--v-gold), var(--v-red), transparent);
}
.center-screen .panel h1{
  font-family:Cinzel,Georgia,serif; font-weight:900; font-size:32px; line-height:1.1;
  letter-spacing:4px; text-align:center; margin:0 0 6px;
  background:linear-gradient(180deg,#fff3bd 0%, var(--v-gold) 55%, #8a6d1f 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
  filter:drop-shadow(0 0 16px rgba(212,175,55,.35));
}
.center-screen .panel .sub{
  font-family:Inter,system-ui,sans-serif; text-transform:uppercase; letter-spacing:3px;
  font-size:11px; font-weight:500; color:#c9a43a; margin:0 0 18px;
}
.center-screen .panel input[type=text],.center-screen .panel input[type=password],.center-screen .panel input[type=email],.center-screen .panel select{
  background:rgba(255,255,255,.04)!important; color:#f0e9d6!important;
  border:1px solid rgba(212,175,55,.25)!important; border-radius:6px!important;
  padding:10px 12px!important; font-family:Inter,system-ui,sans-serif; transition:border-color .2s, box-shadow .2s;
}
.center-screen .panel input::placeholder{ color:#8d856f; }
.center-screen .panel input:focus,.center-screen .panel select:focus{
  outline:none; border-color:var(--v-gold)!important; box-shadow:0 0 0 3px rgba(212,175,55,.18);
}
.center-screen .panel input:-webkit-autofill{ -webkit-box-shadow:0 0 0 40px #1a150c inset!important; -webkit-text-fill-color:#f0e9d6!important; }
.center-screen .panel button[type=submit]{
  background:linear-gradient(135deg, #e6c24e, #b8901f)!important; color:#14110a!important;
  border:0!important; border-radius:6px!important; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  box-shadow:0 6px 20px rgba(212,175,55,.25); transition:transform .15s, box-shadow .15s, filter .15s;
}
.center-screen .panel button[type=submit]:hover:not(:disabled){ transform:translateY(-1px); filter:brightness(1.08); box-shadow:0 10px 26px rgba(212,175,55,.35); }
.center-screen .panel button[type=button]{
  background:rgba(255,255,255,.03)!important; color:var(--v-gold-hi)!important;
  border:1px solid rgba(212,175,55,.35)!important; border-radius:6px!important; letter-spacing:1px;
}
.center-screen .panel button[type=button]:hover{ background:rgba(212,175,55,.1)!important; }
.center-screen .panel a.meta{ color:#b9a25c; }
.center-screen .panel a.meta:hover{ color:var(--v-gold-hi); }
.center-screen .panel .error{ color:#ff6b7f; }
.center-screen .panel label[for=login-language]{display:none}

/* ---- v2: the SAME Venus Online gold identity (login screen, mobile touch buttons) applied to the in-game UI
 * itself - desktop AND mobile, everywhere, all the time. This is a PALETTE SWAP ONLY: the game's whole UI kit
 * (buttons, windows, tabs, bars, text) already gets its colors from these three CSS variables and nothing else
 * here changes - no position, no size, no shape, no spacing (--k-sp-*), no font. Window-frame corner accents
 * (--k-frame-src, an inline SVG) get the same gold swap; the frame's bronze border/background are untouched. */
:root{
  --k-gold-hi:#f4dc8a !important;
  --k-gold:#d4af37 !important;
  --k-gold-dim:#c9a43a !important;
  --k-frame-src:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"96\" height=\"96\"><rect x=\"2\" y=\"2\" width=\"92\" height=\"92\" fill=\"%23120f0a\" fill-opacity=\"0.94\"/><rect x=\"3\" y=\"3\" width=\"90\" height=\"90\" fill=\"none\" stroke=\"%236a5a35\" stroke-width=\"2\"/><rect x=\"7\" y=\"7\" width=\"82\" height=\"82\" fill=\"none\" stroke=\"%233a3325\" stroke-width=\"1\"/><path d=\"M3 17 L3 3 L17 3\" fill=\"none\" stroke=\"%23d4af37\" stroke-width=\"3\"/><path d=\"M79 3 L93 3 L93 17\" fill=\"none\" stroke=\"%23d4af37\" stroke-width=\"3\"/><path d=\"M93 79 L93 93 L79 93\" fill=\"none\" stroke=\"%23d4af37\" stroke-width=\"3\"/><path d=\"M17 93 L3 93 L3 79\" fill=\"none\" stroke=\"%23d4af37\" stroke-width=\"3\"/></svg>") !important;
}


/* ===== v4: INVENTORY / BAG / STORAGE - visual only (no size, position or logic changes) ===== */
.bag-grid{gap:6px !important;padding:8px !important;background:rgba(10,8,5,.55);border:1px solid rgba(212,175,55,.18);border-radius:10px}
.inv-slot{position:relative;border-radius:9px !important;border:1px solid rgba(212,175,55,.38) !important;
  background-color:#15110a !important;background-repeat:no-repeat !important;background-position:center !important;
  background-size:78% !important;box-shadow:inset 0 0 10px rgba(0,0,0,.75),0 1px 0 rgba(255,236,170,.06);
  transition:border-color .15s,box-shadow .15s}
.inv-slot:hover{border-color:#f4dc8a !important;box-shadow:inset 0 0 10px rgba(0,0,0,.6),0 0 10px rgba(212,175,55,.45)}
.inv-slot.empty{border-style:dashed !important;border-color:rgba(212,175,55,.16) !important;background-color:#0d0a06 !important;box-shadow:inset 0 0 8px rgba(0,0,0,.85)}
.inv-slot.empty:hover{border-color:rgba(212,175,55,.45) !important}
.inv-worn{border-color:#d4af37 !important;box-shadow:inset 0 0 10px rgba(0,0,0,.6),0 0 8px rgba(212,175,55,.5) !important}
.inv-broken{border-color:#c9564f !important;box-shadow:inset 0 0 12px rgba(201,86,79,.35) !important}
.inv-slot .k-slot-qty,.inv-slot .k-slot-plus{font-weight:700;text-shadow:0 0 3px #000,0 0 3px #000}
.inv-slot .k-slot-qty{position:absolute;right:3px;bottom:2px;font-size:11px;color:#fff}
.inv-slot .k-slot-plus{position:absolute;left:3px;top:2px;font-size:11px;color:#ffd97a}
.bag-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.bag-tabs>*{border:1px solid rgba(212,175,55,.35) !important;border-radius:999px !important;background:rgba(20,16,10,.85) !important;color:#c9b27a}
.bag-tabs>.active,.bag-tabs>[aria-selected="true"]{background:linear-gradient(180deg,#f4dc8a,#c9a43a) !important;color:#1a1408 !important;border-color:#f4dc8a !important}
.inv-footer{display:flex;gap:6px;align-items:center;margin-top:8px}
.inv-footer button{flex:1;border-radius:8px !important;border:1px solid #c9a43a !important;background:linear-gradient(180deg,#e9c766,#a88420) !important;color:#1a1408 !important;font-weight:700;letter-spacing:.02em}
.inv-footer button:hover{filter:brightness(1.08);box-shadow:0 0 10px rgba(212,175,55,.45)}

/* ==========================================================================================
   VENUS ONLINE - ARABIC READING ORDER (RTL)                                    2026-10-06
   ------------------------------------------------------------------------------------------
   WHY THIS SHAPE AND NOT A GLOBAL `dir="rtl"`:
   the in-game UI is a mouse-era, absolutely-positioned window kit (windows are placed with
   left/top, slots/tooltips are offset from their cell, the paper-doll, the minimap, the
   hotbar and the touch overlay all use hard-coded px coordinates). Flipping the whole
   document with `direction:rtl` would mirror every flex row and move every absolutely
   positioned element, i.e. it would redesign the game, not translate it.
   So RTL is applied to TEXT ONLY: reading order + alignment for letters, numbers stay
   left-to-right (correct Arabic typography anyway), and not one box, size or coordinate
   is touched. Nothing here can break a layout - it can only change which side a sentence
   starts from.
   SCOPE: text-bearing classes only, and only while the page is in an Arabic language
   (html[lang="ar"], which the client sets from mmo.settings.v1.language).
   REVERT: delete this block, or set html dir="ltr".
   ========================================================================================== */
html[lang="ar"] .k-window-title,
html[lang="ar"] .k-field-label,
html[lang="ar"] .k-field-hint,
html[lang="ar"] .k-stat-label,
html[lang="ar"] .k-tab,
html[lang="ar"] .meta,
html[lang="ar"] .sub,
html[lang="ar"] .k-window p,
html[lang="ar"] .k-window h1,
html[lang="ar"] .k-window h2,
html[lang="ar"] .k-window h3,
html[lang="ar"] .k-window label,
html[lang="ar"] .k-window small,
html[lang="ar"] .k-window li,
html[lang="ar"] .k-window td,
html[lang="ar"] .k-window th,
html[lang="ar"] .k-window span:not(.k-stat-value):not(.lvl):not(.k-icon) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;   /* a line that starts with a number or Latin keeps sensible order */
}
/* values, counters and keycaps stay left-to-right so digits and short codes never jumble */
html[lang="ar"] .k-stat-value,
html[lang="ar"] .k-stat-hint,
html[lang="ar"] .lvl,
html[lang="ar"] .k-keycap,
html[lang="ar"] code,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  direction: ltr;
  text-align: left;
}
/* our own injected helpers follow the same rule */
html[lang="ar"] #tc-tip,
html[lang="ar"] #venus-save span,
html[lang="ar"] #venus-reload,
html[lang="ar"] #venus-cancel {
  direction: rtl;
  text-align: right;
}
/* tooltips are anchored to their cell: keep the anchor, only flip the text inside */
html[lang="ar"] .k-tooltip,
html[lang="ar"] .item-tooltip,
html[lang="ar"] .skill-tooltip,
html[lang="ar"] .unique-tooltip {
  direction: rtl;
  text-align: right;
}
/* inputs the player types Arabic into must start from the right */
html[lang="ar"] .chat-input,
html[lang="ar"] input[type="text"],
html[lang="ar"] input[type="password"],
html[lang="ar"] input[type="email"] {
  direction: rtl;
  text-align: right;
}