/*
Theme Name: KIGA Glass
Theme URI: https://dev.kigaping.com
Description: Premium Multilingual Glassmorphism Theme for KIGA Bots
Version: 3.0.0
Author: KIGA
Text Domain: kiga-glass
*/

/* ===== CSS VARIABLES ===== */
:root {
  --bg: #050b1a;
  --bg2: #0a1628;
  --bg3: #0f1f36;
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --glass: rgba(255,255,255,0.05);
  --glass-hover: rgba(255,255,255,0.09);
  --glass-border: rgba(255,255,255,0.1);
  --glass-border-hover: rgba(0,212,255,0.3);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --shadow-glow: 0 8px 32px rgba(0,212,255,0.15);
  --shadow-glow-lg: 0 16px 48px rgba(0,212,255,0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font-base: 'Inter', 'Vazirmatn', -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-h: 70px;
}

[data-theme="light"] {
  --bg: #f4f7fc;
  --bg2: #e8eef8;
  --bg3: #dae5f5;
  --glass: rgba(255,255,255,0.8);
  --glass-hover: rgba(255,255,255,0.95);
  --glass-border: rgba(30,58,95,0.12);
  --glass-border-hover: rgba(0,153,204,0.4);
  --text: #0f172a;
  --text-muted: #475569;
  --shadow-glow: 0 8px 32px rgba(0,153,204,0.12);
  --shadow-glow-lg: 0 16px 48px rgba(0,153,204,0.2);
}

/* ===== RESET & TYPOGRAPHY ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  overflow-x: hidden;
  line-height: 1.7;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); opacity: 0.9; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%; transition: width 0.1s linear;
}

/* ===== TOP ANNOUNCEMENT TICKER ===== */
.announce-bar {
  background: linear-gradient(90deg, var(--secondary), var(--primary-dark), var(--secondary));
  background-size: 200% 100%;
  animation: barGlow 8s linear infinite;
  padding: 8px 0; text-align: center; font-size: 13px; color: #fff; overflow: hidden;
  position: relative; z-index: 1001; font-weight: 500;
}
@keyframes barGlow { 0%{background-position:0%} 100%{background-position:200%} }
.announce-bar .ticker {
  display: inline-flex; gap: 40px; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.announce-bar span { margin: 0 4px; }

/* ===== STICKY HEADER (ALIGNED & POLISHED) ===== */
#site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(5,11,26,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
[data-theme="light"] #site-header {
  background: rgba(244,247,252,0.85);
}
#site-header.scrolled {
  background: rgba(5,11,26,0.95);
  box-shadow: 0 4px 20px rgba(0,212,255,0.1);
  height: 62px;
}
[data-theme="light"] #site-header.scrolled {
  background: rgba(244,247,252,0.98);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo {
  height: 42px; display: flex; align-items: center;
  font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  white-space: nowrap; flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.5));
}
.primary-nav {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.primary-nav a {
  height: 40px; display: inline-flex; align-items: center;
  padding: 0 14px; border-radius: var(--radius-xs); font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: var(--transition); white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--text); background: var(--glass); box-shadow: var(--shadow-glow);
}
.header-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.header-btn {
  height: 40px; width: 40px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.header-btn:hover {
  color: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-glow);
}
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  background: var(--primary); color: #000; border-radius: 50%;
  font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center;
}
.cart-count.has-items { display: flex; }

/* ===== LANGUAGE SELECTOR DROPDOWN ===== */
.lang-selector-wrap { position: relative; }
.lang-btn {
  height: 40px; padding: 0 12px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 170px;
  background: var(--bg2); border: 1px solid var(--glass-border); border-radius: var(--radius-xs);
  padding: 6px; box-shadow: var(--shadow-glow-lg); display: none; flex-direction: column;
  gap: 2px; z-index: 2000; backdrop-filter: blur(16px);
}
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.open { display: flex; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.lang-opt {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px;
  background: none; border: none; color: var(--text-muted); font-size: 13px;
  border-radius: 6px; cursor: pointer; text-align: left; transition: var(--transition);
}
[dir="rtl"] .lang-opt { text-align: right; }
.lang-opt:hover, .lang-opt.active { background: var(--glass-hover); color: var(--primary); }
.opt-flag { font-size: 16px; }

/* ===== THEME TOGGLE BUTTON (PERFECT PILL SLIDER) ===== */
.theme-toggle-btn {
  height: 34px; width: 62px; border-radius: 17px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-border);
  cursor: pointer; position: relative; padding: 2px;
  transition: var(--transition); display: flex; align-items: center;
  flex-shrink: 0; outline: none; overflow: hidden;
}
.theme-toggle-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.toggle-slider {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); color: #fff;
  transform: translateX(0);
}
.sun-icon { display: none; }
.moon-icon { display: flex; align-items: center; justify-content: center; }

/* Light Mode state */
.theme-toggle-btn.light-active {
  background: rgba(0, 212, 255, 0.15); border-color: var(--primary);
}
.theme-toggle-btn.light-active .toggle-slider {
  transform: translateX(28px);
  background: linear-gradient(135deg, #f59e0b, #e11d48);
}
.theme-toggle-btn.light-active .moon-icon { display: none; }
.theme-toggle-btn.light-active .sun-icon { display: flex; align-items: center; justify-content: center; }

/* Auth Buttons */
.btn-login, .btn-register {
  height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: var(--radius-xs); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-login { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.btn-login:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); color: var(--primary); }
.btn-login.user-pill { gap: 8px; border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.06); }
.btn-register { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: none; }
.btn-register:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-lg); color: #fff; }

.hamburger {
  height: 40px; width: 40px; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--glass-border); border-radius: var(--radius-xs);
  background: var(--glass); color: var(--text);
}
.hamburger span { display: block; width: 20px; height: 2px; background: currentColor; transition: var(--transition); border-radius: 2px; }

/* ===== BODY WRAP ===== */
.body-wrap { min-height: 100vh; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  overflow: hidden; padding: 60px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; background-image: url(assets/images/hero-bg.jpg);
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,11,26,0.94) 0%, rgba(5,11,26,0.75) 50%, rgba(124,58,237,0.25) 100%);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(135deg, rgba(244,247,252,0.94) 0%, rgba(244,247,252,0.8) 50%, rgba(0,212,255,0.15) 100%);
}
#particles-canvas { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.35);
  padding: 6px 18px; border-radius: 20px; font-size: 13px; color: var(--primary);
  margin-bottom: 24px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(30px, 5.5vw, 56px); font-weight: 900; line-height: 1.2;
  margin-bottom: 20px; color: var(--text);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-float-icons {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; z-index: 2;
}
[dir="rtl"] .hero-float-icons { right: auto; left: 6%; }
.hero-icon-card {
  width: 80px; height: 80px; border-radius: 20px; background: var(--glass);
  border: 1px solid var(--glass-border); display: flex; align-items: center;
  justify-content: center; font-size: 36px; backdrop-filter: blur(12px);
  animation: floatIcon 4s ease-in-out infinite;
}
.hero-icon-card:nth-child(2){animation-delay:1s} .hero-icon-card:nth-child(3){animation-delay:2s} .hero-icon-card:nth-child(4){animation-delay:3s}
@keyframes floatIcon { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-card { text-align: center; padding: 28px 20px; }
.stat-number { font-size: clamp(28px,4vw,44px); font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text-muted); }
.stat-icon { font-size: 32px; margin-bottom: 8px; }

/* ===== BOTS SHOWCASE (ویترین ربات‌ها) ===== */
.bot-category-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px;
}
.bot-tab-btn {
  padding: 10px 22px; border-radius: 30px; font-size: 14px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.bot-tab-btn:hover, .bot-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-glow);
}
.bots-showcase-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.bot-showcase-card {
  padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--radius); transition: var(--transition);
}
.bot-showcase-card:hover {
  border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow-lg);
}
.bot-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.bot-badge-type {
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  background: rgba(0,212,255,0.15); color: var(--primary);
}
.bot-username {
  font-size: 12px; font-weight: 600; color: var(--text-muted); direction: ltr;
  background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: var(--radius-xs);
}
.bot-card-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.bot-avatar {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border: 1px solid var(--glass-border); display: flex; align-items: center;
  justify-content: center; font-size: 28px; flex-shrink: 0;
}
.bot-card-header h3 { font-size: 18px; margin-bottom: 4px; }
.bot-subtitle { font-size: 12px; color: var(--text-muted); }
.bot-description {
  font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px;
}
.bot-features-list {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--text);
}
.bot-tech-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.bot-tech-tags span {
  font-size: 11px; padding: 3px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  color: var(--text-muted);
}
.bot-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--glass-border);
}
.bot-price-tag .price-val {
  font-size: 18px; font-weight: 900; color: var(--primary); display: block;
}
.bot-price-tag .price-type {
  font-size: 11px; color: var(--text-muted);
}

/* ===== ANDROID APPS ===== */
.android-apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.android-app-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.android-app-card:hover { border-color: var(--primary); box-shadow: var(--shadow-glow-lg); }
.android-app-header {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(124,58,237,0.1));
  padding: 24px; display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--glass-border);
}
.app-icon-placeholder { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg,var(--primary),var(--secondary)); display:flex; align-items:center; justify-content:center; font-size:32px; flex-shrink: 0; }
.app-header-info h3 { font-size: 19px; margin-bottom: 4px; }
.app-rating { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; }
.app-price { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.app-price strong { color: var(--primary); font-size: 16px; }
.android-app-body { padding: 24px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.app-screenshot { width: 100%; border-radius: var(--radius-sm); margin-bottom: 20px; aspect-ratio: 16/10; object-fit: cover; }
.app-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.app-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.app-feature .icon { color: var(--primary); flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.app-protocols { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.protocol-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; border: 1px solid;
}
.protocol-badge.wireguard { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #10b981; }
.protocol-badge.openvpn { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.3); color: var(--primary); }
.protocol-badge.sstp { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--accent); }
.protocol-badge.ssh { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--danger); }
.protocol-badge.http { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); color: var(--secondary); }
.protocol-badge.socks5 { background: rgba(236,72,153,0.1); border-color: rgba(236,72,153,0.3); color: #ec4899; }
.protocol-badge.mtproto { background: rgba(0,212,255,0.15); border-color: rgba(0,212,255,0.4); color: var(--primary); }
.app-download-btn {
  padding: 13px 20px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: var(--radius-xs); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.app-download-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-lg); color: #fff; }
.android-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(61,220,132,0.15); border: 1px solid rgba(61,220,132,0.35); color: #3ddc84; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 6px; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.product-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); position: relative;
}
.product-card:hover { border-color: var(--glass-border-hover); transform: translateY(-6px); box-shadow: var(--shadow-glow-lg); }
.product-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08)); display: flex; align-items: center; justify-content: center; }
.product-thumb-icon { font-size: 56px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-badges { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
[dir="rtl"] .product-badges { right: auto; left: 12px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge.sale { background: rgba(239,68,68,0.9); color: #fff; }
.badge.new { background: rgba(16,185,129,0.9); color: #fff; }
.badge.android { background: rgba(61,220,132,0.9); color: #000; }
.product-body { padding: 20px; }
.product-cat { font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.product-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { display: flex; flex-direction: column; }
.price-regular { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }
.price-sale { font-size: 18px; font-weight: 900; color: var(--primary); }
.price-unit { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.add-to-cart {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
  border: none; padding: 10px 18px; border-radius: var(--radius-xs); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.add-to-cart:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* Category Pills */
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.cat-pill {
  padding: 9px 20px; border-radius: 30px; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
  border-color: transparent; box-shadow: var(--shadow-glow);
}

/* ===== BLOG SECTION & ARTICLE CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card {
  overflow: hidden; border-radius: var(--radius); transition: var(--transition);
  display: flex; flex-direction: column; justify-content: space-between;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08)); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 20px; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.blog-cat { background: rgba(0,212,255,0.12); color: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.blog-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.blog-footer { padding: 14px 20px; border-top: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; }
.read-more { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ===== MY ACCOUNT MODERN DASHBOARD ===== */
.myaccount-wrapper { padding: 40px 24px 80px; }
.user-profile-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08));
}
.myaccount-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start;
}
.woocommerce-MyAccount-navigation ul {
  display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; list-style: none;
}
.woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--radius-xs); font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: var(--transition); text-decoration: none;
}
.woocommerce-MyAccount-navigation li.is-active a {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important; font-weight: 700 !important; box-shadow: var(--shadow-glow);
}
.woocommerce-MyAccount-navigation li a:hover {
  background: var(--glass-hover); color: var(--primary);
}

/* ===== UTILITIES & GENERAL ===== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }
.glass-card {
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius); transition: var(--transition);
}
.section-title { font-size: clamp(22px,4vw,34px); font-weight: 900; margin-bottom: 10px; }
.section-title span { background: linear-gradient(135deg,var(--primary),var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 36px; max-width: 620px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; padding: 12px 26px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-lg); color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); padding: 12px 26px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); color: var(--primary); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--primary);
  color: var(--primary); padding: 10px 22px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #000; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.cta-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(0,212,255,0.2); border-radius: var(--radius);
  padding: 50px 30px; text-align: center;
}
.cta-card h2 { font-size: clamp(22px,4vw,36px); margin-bottom: 14px; }
.cta-card p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.site-footer { background: var(--bg2); border-top: 1px solid var(--glass-border); padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-size: 24px; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 14px; display: block; }
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: var(--transition); }
.social-icon:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 11px 14px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: var(--radius-xs); color: var(--text); font-size: 14px; outline: none; }
.newsletter-form button { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: none; padding: 11px 18px; border-radius: var(--radius-xs); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: var(--text-muted); }

.back-to-top {
  position: fixed; bottom: 30px; left: 30px; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition); z-index: 100;
  box-shadow: var(--shadow-glow);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--bg2); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 14px 20px; font-size: 14px; display: flex; align-items: center; gap: 10px;
  min-width: 260px; box-shadow: var(--shadow-glow);
}
.toast.success { border-inline-start: 3px solid var(--success); }
.toast.error { border-inline-start: 3px solid var(--danger); }

/* Search & Auth Modals */
#search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,11,26,0.95); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 80px; opacity: 0; pointer-events: none; transition: var(--transition);
}
#search-overlay.open { opacity: 1; pointer-events: auto; }
.search-wrap { width: 100%; max-width: 680px; padding: 0 20px; }
.search-field-wrap { position: relative; margin-bottom: 24px; }
.search-field-wrap input {
  width: 100%; padding: 18px 60px 18px 24px; font-size: 18px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border);
  border-radius: var(--radius); color: var(--text); outline: none;
}
.search-close-btn {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px;
}
[dir="rtl"] .search-close-btn { right: auto; left: 16px; }
.search-result-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer;
}
.search-result-item:hover { border-color: var(--primary); background: var(--glass-hover); }

#auth-modal {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(5,11,26,0.8); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
#auth-modal.open { opacity: 1; pointer-events: auto; }
.auth-box {
  background: var(--bg2); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 36px; width: 100%; max-width: 440px;
  position: relative; box-shadow: var(--shadow-glow-lg);
}
.auth-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
[dir="rtl"] .auth-close { right: auto; left: 16px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--glass-border); margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 12px; text-align: center; cursor: pointer;
  color: var(--text-muted); font-weight: 600; font-size: 15px;
  background: none; border: none; border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 14px; font-size: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs); color: var(--text); outline: none;
}
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 16px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
.form-success { font-size: 13px; color: var(--success); margin-top: 5px; display: none; }
.auth-submit {
  width: 100%; padding: 13px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: var(--radius-xs); font-size: 15px; font-weight: 700; cursor: pointer;
}
.auth-footer { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bots-showcase-grid { grid-template-columns: 1fr; }
  .android-apps-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-float-icons { display: none; }
  .myaccount-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
