* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0f;
  --surface: rgba(18, 18, 26, 0.8);
  --surface2: rgba(26, 26, 40, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ed;
  --text2: #8888a0;
  --primary: #7c3aed;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

@keyframes rgbShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes rgbText {
  0% { color: #ff006e; }
  20% { color: #ff6b6b; }
  40% { color: #7c3aed; }
  60% { color: #00f5d4; }
  80% { color: #3a86ff; }
  100% { color: #ff006e; }
}
@keyframes rgbBorder {
  0% { border-color: #ff006e; box-shadow: 0 0 15px rgba(255,0,110,0.3); }
  25% { border-color: #00f5d4; box-shadow: 0 0 15px rgba(0,245,212,0.3); }
  50% { border-color: #7c3aed; box-shadow: 0 0 15px rgba(124,58,237,0.3); }
  75% { border-color: #ff006e; box-shadow: 0 0 15px rgba(255,0,110,0.3); }
  100% { border-color: #00f5d4; box-shadow: 0 0 15px rgba(0,245,212,0.3); }
}
@keyframes rgbGlow {
  0% { text-shadow: 0 0 10px #ff006e, 0 0 20px #ff006e; }
  33% { text-shadow: 0 0 10px #7c3aed, 0 0 20px #7c3aed; }
  66% { text-shadow: 0 0 10px #00f5d4, 0 0 20px #00f5d4; }
  100% { text-shadow: 0 0 10px #ff006e, 0 0 20px #ff006e; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0,245,212,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(255,0,110,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
#app { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }

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

.taskbar {
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 6px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.8);
  transition: transform 0.3s ease;
  overflow: visible;
}
.taskbar.hidden {
  transform: translateY(-100%);
}
.taskbar-left { display: flex; align-items: center; flex-shrink: 0; }
.start-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; font-size: 16px; font-weight: 700;
  cursor: pointer; padding: 6px 10px; border-radius: var(--radius);
  color: #fff; letter-spacing: 2px;
  animation: rgbGlow 3s linear infinite; white-space: nowrap;
}
.start-btn svg { animation: rgbShift 4s linear infinite; }
.start-btn:hover { background: rgba(124,58,237,0.15); }
.taskbar-center { display: flex; justify-content: center; flex-shrink: 0; }
.search-bar {
  display: flex; align-items: center;
  background: rgba(26, 26, 40, 0.6);
  border-radius: 20px; padding: 4px;
  max-width: 300px; width: 100%;
  border: 1px solid rgba(124,58,237,0.2);
  transition: all 0.3s;
}
.search-bar:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
}
.search-bar input {
  flex: 1; border: none; background: none; padding: 5px 10px; font-size: 13px;
  outline: none; color: var(--text); min-width: 0;
}
.search-bar input::placeholder { color: var(--text2); }
.search-bar button {
  background: none; border: none; padding: 5px 8px; cursor: pointer; color: var(--text2);
  border-radius: 50%; display: flex; align-items: center; transition: all 0.3s; flex-shrink: 0;
}
.search-bar button:hover { background: rgba(124,58,237,0.2); color: #7c3aed; }

.hamburger {
  display: none; background: none; border: none; color: #fff; font-size: 22px;
  cursor: pointer; padding: 4px 8px; border-radius: 8px; flex-shrink: 0;
}
.hamburger:hover { background: rgba(124,58,237,0.15); }

.taskbar-links {
  display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; overflow: hidden;
}
.taskbar-links a {
  text-decoration: none; color: var(--text2); font-size: 13px; padding: 6px 10px;
  border-radius: 8px; transition: all 0.2s; white-space: nowrap;
}
.taskbar-links a:hover { background: rgba(124,58,237,0.1); color: #fff; }

.taskbar-right { display: flex; align-items: center; gap: 10px; position: relative; flex-shrink: 0; }
.taskbar-right a { text-decoration: none; color: var(--text2); font-size: 13px; transition: color 0.3s; white-space: nowrap; }
.taskbar-right a:hover { color: #fff; }

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #ff006e);
  color: white !important; padding: 10px 24px;
  border-radius: 50px; text-decoration: none; font-size: 14px;
  border: none; cursor: pointer; transition: all 0.3s;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(124,58,237,0.4); }

.btn-secondary {
  background: transparent; color: #fff; padding: 10px 24px;
  border-radius: 50px; text-decoration: none; font-size: 14px;
  border: 2px solid rgba(124,58,237,0.5); cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.btn-secondary:hover { background: rgba(124,58,237,0.15); border-color: #7c3aed; box-shadow: 0 0 25px rgba(124,58,237,0.3); transform: translateY(-2px); }
.btn-large { padding: 14px 36px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-danger:hover { box-shadow: 0 0 30px rgba(239,68,68,0.4); }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.btn-success:hover { box-shadow: 0 0 30px rgba(34,197,94,0.4); }
.btn-glow {
  animation: rgbBorder 2s linear infinite;
}
.btn-paypal {
  background: linear-gradient(135deg, #0070ba, #1546a0);
  color: white; padding: 14px 32px; border-radius: 50px; border: none;
  font-size: 16px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.3s; width: 100%; justify-content: center;
}
.btn-paypal:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,112,186,0.5); }

.user-menu {
  display: none; position: absolute; top: 100%; right: 0;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(124,58,237,0.3); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  min-width: 120px; padding: 6px; z-index: 200;
  backdrop-filter: blur(20px);
}
.user-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--text) !important; font-size: 13px; transition: all 0.2s; text-align: center;
}
.user-menu a:hover { background: rgba(124,58,237,0.15); color: #fff !important; }
.logout-link { color: var(--danger) !important; }
.logout-link:hover { background: rgba(239,68,68,0.15) !important; }
.taskbar-right:hover .user-menu { display: block; }
.taskbar-right:focus-within .user-menu { display: block; }
#userDisplay { font-weight: 500; font-size: 14px; cursor: pointer; color: #fff; padding: 4px 8px; border-radius: 8px; }
#userDisplay:hover { background: rgba(124,58,237,0.1); }

.content { flex: 1; padding-top: 60px; }
.page { display: none; padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%; }
.page.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(0,245,212,0.1), rgba(255,0,110,0.15));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 20px; padding: 80px 40px; margin-bottom: 40px;
  color: white; text-align: center;
  position: relative; overflow: hidden;
  animation: rgbBorder 4s linear infinite;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #ff006e, #00f5d4, transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: 56px; margin-bottom: 16px; font-weight: 800; letter-spacing: 4px;
  animation: rgbGlow 3s linear infinite;
}
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.8); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn-primary { background: linear-gradient(135deg, #fff, #e8e8ed); color: #7c3aed !important; }
.hero-buttons .btn-primary:hover { box-shadow: 0 0 40px rgba(255,255,255,0.3); }
.hero-buttons .btn-secondary { border-color: rgba(255,255,255,0.4); color: white; }
.hero-buttons .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; }

.section { margin-bottom: 50px; }
.section h2 {
  font-size: 28px; margin-bottom: 24px;
  background: linear-gradient(90deg, #7c3aed, #ff006e, #00f5d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 28px 24px; text-align: center; cursor: pointer;
  transition: all 0.3s; backdrop-filter: blur(10px);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: #7c3aed;
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
}
.category-icon { margin-bottom: 12px; color: #7c3aed; transition: all 0.3s; }
.category-card:hover .category-icon { animation: rgbShift 2s linear infinite; }
.category-card h3 { font-size: 16px; color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 24px; transition: all 0.3s; backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #ff006e, transparent);
  transition: left 0.5s;
}
.product-card:hover::before { left: 100%; }
.product-card:hover {
  transform: translateY(-6px);
  border-color: #7c3aed;
  box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.product-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.product-card .product-brand { font-size: 13px; color: #7c3aed; margin-bottom: 8px; font-weight: 500; }
.product-card .product-desc { font-size: 14px; color: var(--text2); margin-bottom: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.product-card .product-price { font-size: 22px; font-weight: 700; background: linear-gradient(90deg, #7c3aed, #ff006e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.product-card .product-category { font-size: 12px; background: rgba(124,58,237,0.1); padding: 4px 12px; border-radius: 20px; color: #7c3aed; border: 1px solid rgba(124,58,237,0.2); }

.auth-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.auth-card {
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(124,58,237,0.2); border-radius: 20px;
  padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 0 60px rgba(124,58,237,0.1);
  backdrop-filter: blur(20px);
}
.auth-card h2 { font-size: 28px; margin-bottom: 4px; background: linear-gradient(90deg, #7c3aed, #ff006e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-subtitle { color: var(--text2); margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text2); }
.auth-footer a { color: #7c3aed; text-decoration: none; transition: all 0.3s; }
.auth-footer a:hover { text-shadow: 0 0 10px rgba(124,58,237,0.5); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(124,58,237,0.15); border-radius: 12px;
  font-size: 14px; background: rgba(26, 26, 40, 0.4);
  color: var(--text); transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #7c3aed; box-shadow: 0 0 20px rgba(124,58,237,0.15); }
.form-group textarea { resize: vertical; min-height: 100px; }

.dashboard { display: flex; gap: 24px; min-height: 80vh; }
.dashboard-sidebar { width: 260px; flex-shrink: 0; }
.user-profile-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 28px 24px; text-align: center; margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.avatar, .profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ff006e);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 600; margin: 0 auto 12px;
  animation: rgbBorder 3s linear infinite;
}
.user-profile-card h3 { font-size: 16px; margin-bottom: 4px; color: #fff; }
.user-profile-card p { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.role-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.role-badge[data-role="owner"] { background: rgba(124,58,237,0.2); color: #7c3aed; border: 1px solid rgba(124,58,237,0.3); }
.role-badge[data-role="admin"] { background: rgba(0,245,212,0.1); color: #00f5d4; border: 1px solid rgba(0,245,212,0.2); }
.role-badge[data-role="user"] { background: rgba(255,255,255,0.05); color: var(--text2); border: 1px solid rgba(255,255,255,0.1); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  text-decoration: none; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; color: var(--text); transition: all 0.3s;
  border: 1px solid transparent;
}
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.2);
  color: #fff;
}
.dashboard-content { flex: 1; }
.dash-tab { display: none; }
.dash-tab.active { display: block; }

.support-container, .shop-container, .profile-container, .admin-container, .owner-container { max-width: 900px; margin: 0 auto; }
.shop-subtitle { color: var(--text2); margin-bottom: 24px; }
.support-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.support-form, .support-tickets {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 24px; backdrop-filter: blur(10px);
}

.ticket-card {
  background: rgba(26, 26, 40, 0.4); border-radius: 12px; padding: 16px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ticket-card h4 { font-size: 14px; margin-bottom: 4px; color: #fff; }
.ticket-card .ticket-meta { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.ticket-card .ticket-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.ticket-card .ticket-status.open { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.ticket-card .ticket-status.closed { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.ticket-card .ticket-response { margin-top: 8px; padding: 12px; background: rgba(18, 18, 26, 0.4); border-radius: 8px; font-size: 13px; border: 1px solid rgba(255,255,255,0.06); }

.profile-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 20px;
  padding: 40px; text-align: center; max-width: 400px; margin: 40px auto;
  backdrop-filter: blur(10px);
}
.profile-card h2 { margin: 16px 0 4px; color: #fff; }
.profile-card p { color: var(--text2); margin-bottom: 8px; }
.profile-date { font-size: 13px; margin-top: 12px; }

.admin-tabs, .owner-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button, .owner-tabs button {
  padding: 10px 20px; background: rgba(26, 26, 40, 0.4); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50px; cursor: pointer; font-size: 13px; color: var(--text2);
  transition: all 0.3s;
}
.admin-tabs button.active, .owner-tabs button.active {
  background: rgba(124,58,237,0.2); color: #fff; border-color: #7c3aed;
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
}
.admin-tabs button:hover, .owner-tabs button:hover { color: #fff; background: rgba(124,58,237,0.1); }
.admin-toolbar { margin-bottom: 16px; }
.admin-toolbar input {
  width: 100%; padding: 10px 16px; border: 1px solid rgba(124,58,237,0.15);
  border-radius: 12px; font-size: 14px; background: rgba(26, 26, 40, 0.4); color: var(--text);
  transition: all 0.3s; outline: none;
}
.admin-toolbar input:focus { border-color: #7c3aed; box-shadow: 0 0 20px rgba(124,58,237,0.15); }

.admin-content {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 24px; backdrop-filter: blur(10px);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 600; color: var(--text2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.data-table tr:hover { background: rgba(124,58,237,0.05); }
.data-table .user-banned { opacity: 0.3; }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.data-table .actions button {
  padding: 5px 10px; font-size: 11px; border: none; border-radius: 6px; cursor: pointer;
  white-space: nowrap; font-weight: 500; transition: all 0.2s;
}
.data-table .actions .btn-sm-primary { background: rgba(124,58,237,0.2); color: #7c3aed; border: 1px solid rgba(124,58,237,0.2); }
.data-table .actions .btn-sm-primary:hover { background: rgba(124,58,237,0.3); }
.data-table .actions .btn-sm-danger { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.data-table .actions .btn-sm-danger:hover { background: rgba(239,68,68,0.25); }
.data-table .actions .btn-sm-success { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.data-table .actions .btn-sm-success:hover { background: rgba(34,197,94,0.25); }
.data-table .actions .btn-sm-warning { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }

.owner-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px;
}
.stat-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 20px; text-align: center; backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.stat-card:hover { border-color: #7c3aed; transform: translateY(-2px); box-shadow: 0 0 20px rgba(124,58,237,0.1); }
.stat-card .stat-number { font-size: 32px; font-weight: 700; background: linear-gradient(90deg, #7c3aed, #ff006e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-card .stat-label { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.loading { text-align: center; padding: 40px; color: var(--text2); }

.toast {
  position: fixed; bottom: 24px; right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  padding: 14px 28px;
  border-radius: 12px; color: white; font-size: 14px; z-index: 9999;
  display: none; animation: slideIn 0.3s ease;
  backdrop-filter: blur(20px); font-weight: 500;
}
.toast.success { background: rgba(5,46,22,0.9); border: 1px solid rgba(34,197,94,0.3); box-shadow: 0 0 30px rgba(34,197,94,0.2); }
.toast.error { background: rgba(69,10,10,0.9); border: 1px solid rgba(239,68,68,0.3); box-shadow: 0 0 30px rgba(239,68,68,0.2); }
.toast.info { background: rgba(30,27,75,0.9); border: 1px solid rgba(124,58,237,0.3); box-shadow: 0 0 30px rgba(124,58,237,0.2); }
.toast.show { display: block; }

.order-card {
  background: rgba(26, 26, 40, 0.4); border-radius: 12px; padding: 20px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06); transition: all 0.3s;
}
.order-card:hover { border-color: rgba(124,58,237,0.2); }
.order-card h4 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.order-card .order-meta { font-size: 13px; color: var(--text2); margin-bottom: 10px; }
.order-card .order-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.order-card .order-status.pending { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.order-card .order-status.in_progress { background: rgba(96,165,250,0.1); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.order-card .order-status.completed { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.order-card .order-status.cancelled { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }

.empty-state { text-align: center; padding: 60px 40px; color: var(--text2); }
.empty-state svg { margin-bottom: 16px; color: rgba(124,58,237,0.3); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pagination button {
  padding: 8px 14px; background: rgba(18, 18, 26, 0.6); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text);
  transition: all 0.3s;
}
.pagination button:hover { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.2); }
.pagination button.active { background: rgba(124,58,237,0.2); color: #fff; border-color: #7c3aed; }

.product-form-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(10px);
}
.product-form-modal.show { display: flex; }
.product-form-content {
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(124,58,237,0.2); border-radius: 20px;
  padding: 36px; width: 100%; max-width: 500px;
  box-shadow: 0 0 60px rgba(124,58,237,0.15);
  animation: fadeIn 0.3s ease;
}

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.feature-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 32px 24px; text-align: center;
  backdrop-filter: blur(10px); transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #7c3aed;
  box-shadow: 0 0 30px rgba(124,58,237,0.15);
}
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

.stats-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
}
.stat-item {
  text-align: center; padding: 24px;
}
.stat-item .stat-number { font-size: 42px; font-weight: 800; margin-bottom: 4px; }
.stat-item .stat-label { font-size: 14px; color: var(--text2); }

.contact-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
  margin-top: 24px;
}
.forgot-link {
  color: #7c3aed; text-decoration: none; font-size: 13px; transition: all 0.3s;
}
.forgot-link:hover { text-shadow: 0 0 10px rgba(124,58,237,0.5); }
.contact-card {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(124,58,237,0.15); border-radius: 16px;
  padding: 28px 24px; text-align: center;
  backdrop-filter: blur(10px); transition: all 0.3s;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: #7c3aed;
  box-shadow: 0 0 30px rgba(124,58,237,0.15);
}
.contact-card .contact-icon { font-size: 36px; }
.contact-card h3 { font-size: 16px; color: #fff; }
.contact-card p { font-size: 13px; color: var(--text2); }

.payment-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center;
  z-index: 2000; backdrop-filter: blur(12px);
}
.payment-modal.show { display: flex; }
.payment-content {
  background: rgba(18, 18, 26, 0.97);
  border: 1px solid rgba(124,58,237,0.2); border-radius: 24px;
  padding: 40px; width: 100%; max-width: 480px;
  box-shadow: 0 0 80px rgba(124,58,237,0.15);
  animation: fadeIn 0.3s ease; text-align: center;
}
.payment-content h2 { font-size: 24px; margin-bottom: 8px; }
.payment-content .pay-amount { font-size: 42px; font-weight: 800; margin: 20px 0; background: linear-gradient(90deg, #7c3aed, #ff006e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.payment-content .pay-product { color: var(--text2); margin-bottom: 24px; }
.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-options .btn-paypal { padding: 16px 32px; font-size: 18px; }
.payment-options .btn-secondary { width: 100%; justify-content: center; display: flex; }
.payment-divider {
  display: flex; align-items: center; gap: 16px; margin: 16px 0; color: var(--text2); font-size: 13px;
}
.payment-divider::before, .payment-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06);
}
.payment-powered { font-size: 12px; color: var(--text2); margin-top: 20px; }

.product-media-thumb {
  width: 100%; height: 180px; border-radius: 12px; overflow: hidden;
  margin-bottom: 12px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
}
.product-media-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.product-media-thumb:hover img { transform: scale(1.05); }
.product-media-thumb.video-thumb {
  font-size: 48px; background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(0,245,212,0.1));
}
.product-media-thumb.pdf-thumb {
  font-size: 48px; background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(255,0,110,0.1));
}

.media-gallery-item {
  margin-bottom: 12px;
}
.media-gallery-item img {
  width: 100%; max-height: 400px; object-fit: contain;
  border-radius: 8px; background: var(--surface2);
}
.media-gallery-item video {
  width: 100%; max-height: 400px; border-radius: 8px;
}

.product-detail-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(16px); padding: 24px;
}
.product-detail-modal {
  background: var(--surface); border: 1px solid rgba(124,58,237,0.2);
  border-radius: 20px; max-width: 1000px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 0 80px rgba(124,58,237,0.2);
}
.detail-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text2);
  font-size: 32px; cursor: pointer; z-index: 10;
  transition: color 0.3s;
}
.detail-close:hover { color: #fff; }
.detail-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.detail-media {
  padding: 24px; background: rgba(0,0,0,0.3);
  border-right: 1px solid rgba(124,58,237,0.1);
  max-height: 80vh; overflow-y: auto;
}
.detail-info {
  padding: 32px; display: flex; flex-direction: column;
}
.detail-info h2 { font-size: 28px; margin-bottom: 8px; }
.detail-no-media {
  display: flex; align-items: center; justify-content: center;
  height: 200px; color: var(--text2);
}

.plan-preview-list .plan-preview-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  font-size: 13px; margin-bottom: 6px;
}
.detail-plans { margin: 16px 0; }
.plan-option { transition: all 0.2s; }
.plan-option:hover { border-color: var(--primary) !important; background: rgba(124,58,237,0.05) !important; }

.media-preview-list .media-preview-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px;
  font-size: 12px;
}

.livechat-container, .supportchat-container { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 160px); }
.livechat-header { margin-bottom: 16px; }
.livechat-messages, .supportchat-conv-messages { flex: 1; overflow-y: auto; padding: 16px; background: rgba(18,18,26,0.4); border: 1px solid rgba(124,58,237,0.15); border-radius: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.livechat-message { display: flex; }
.livechat-message.user, .livechat-message.support { justify-content: flex-start; }
.livechat-bubble { max-width: 80%; padding: 10px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.livechat-message.user .livechat-bubble { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3); border-bottom-left-radius: 4px; }
.livechat-message.support .livechat-bubble { background: rgba(0,245,212,0.15); border: 1px solid rgba(0,245,212,0.2); border-bottom-right-radius: 4px; }
.livechat-input-bar, .supportchat-conv-header { display: flex; gap: 8px; align-items: center; }
.livechat-input-bar input, .supportchat-conv-header input { flex: 1; padding: 12px 16px; border: 1px solid rgba(124,58,237,0.15); border-radius: 12px; font-size: 14px; background: rgba(26,26,40,0.4); color: var(--text); outline: none; }
.livechat-input-bar input:focus, .supportchat-conv-header input:focus { border-color: #7c3aed; box-shadow: 0 0 20px rgba(124,58,237,0.15); }
.supportchat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 200px); }
.supportchat-list { background: rgba(18,18,26,0.6); border: 1px solid rgba(124,58,237,0.15); border-radius: 16px; padding: 12px; overflow-y: auto; }
.schat-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; margin-bottom: 6px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; }
.schat-item:hover { background: rgba(124,58,237,0.1); }
.schat-item.active { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3); }
.schat-info { flex: 1; min-width: 0; }
.schat-info strong { font-size: 13px; }
.schat-last { font-size: 11px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schat-actions { display: flex; gap: 4px; flex-shrink: 0; }
.schat-actions button { font-size: 10px; padding: 4px 8px; }
.supportchat-conversation { background: rgba(18,18,26,0.6); border: 1px solid rgba(124,58,237,0.15); border-radius: 16px; display: flex; flex-direction: column; }
.supportchat-conv-header { padding: 12px; border-bottom: 1px solid rgba(124,58,237,0.1); }
.supportchat-conv-messages { flex: 1; overflow-y: auto; padding: 12px; border-radius: 0 0 16px 16px; }

.community-container { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 160px); }
.community-header { margin-bottom: 16px; }
.community-messages { flex: 1; overflow-y: auto; padding: 16px; background: rgba(18,18,26,0.4); border: 1px solid rgba(124,58,237,0.15); border-radius: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.community-msg { display: flex; gap: 10px; padding: 8px 12px; border-radius: 12px; transition: background 0.2s; }
.community-msg:hover { background: rgba(124,58,237,0.05); }
.community-msg.own { flex-direction: row-reverse; }
.community-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, #7c3aed, #ff006e); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; }
.community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-msg-body { display: flex; flex-direction: column; gap: 2px; max-width: 70%; }
.community-msg.own .community-msg-body { align-items: flex-end; }
.community-msg-user { font-size: 12px; font-weight: 600; color: #3b82f6; }
.community-msg-user.is-admin { color: #ef4444; }
.community-msg-user.is-owner { animation: rgbText 3s linear infinite; }
.community-msg.own .community-msg-user { color: #00f5d4; }
.community-msg.own .community-msg-user.is-admin { color: #ef4444; }
.community-msg.own .community-msg-user.is-owner { animation: rgbText 3s linear infinite; }
.community-msg-text { font-size: 14px; color: var(--text); line-height: 1.5; word-wrap: break-word; padding: 8px 12px; background: rgba(26,26,40,0.6); border-radius: 12px 12px 12px 4px; border: 1px solid rgba(255,255,255,0.06); }
.community-msg.own .community-msg-text { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3); border-radius: 12px 12px 4px 12px; }
.community-msg-time { font-size: 10px; color: var(--text2); margin-top: 2px; }
.community-msg.own .community-msg-time { text-align: right; }
.community-input-bar { display: flex; gap: 8px; }
.community-input-bar input { flex: 1; padding: 12px 16px; border: 1px solid rgba(124,58,237,0.15); border-radius: 12px; font-size: 14px; background: rgba(26,26,40,0.4); color: var(--text); outline: none; transition: all 0.3s; }
.community-input-bar input:focus { border-color: #7c3aed; box-shadow: 0 0 20px rgba(124,58,237,0.15); }
.community-input-bar button { white-space: nowrap; }
.community-msg { position: relative; }
.community-delete-btn {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(239,68,68,0.2); color: #ef4444; font-size: 14px; line-height: 1;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}
.community-msg:hover .community-delete-btn { display: flex; }
.community-delete-btn:hover { background: rgba(239,68,68,0.4); }

.notif-bell { position: relative; display: inline-flex; align-items: center; padding: 6px; color: var(--text2); text-decoration: none; transition: color 0.3s; }
.notif-bell:hover { color: #fff; }
.notif-count {
  position: absolute; top: 0; right: -2px; min-width: 16px; height: 16px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1; border: 2px solid var(--bg);
}

.notif-container { max-width: 600px; margin: 0 auto; }
.notif-item {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.2s; cursor: pointer; align-items: flex-start;
}
.notif-item:hover { border-color: rgba(124,58,237,0.3); }
.notif-item.unread { border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.08); }
.notif-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 14px; color: var(--text); margin-bottom: 4px; line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--text2); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; flex-shrink: 0; margin-top: 6px; }

@media (max-width: 768px) {
  .supportchat-layout { grid-template-columns: 1fr; }
  .supportchat-list { max-height: 200px; }
  .livechat-container, .supportchat-container { height: calc(100vh - 140px); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { border-right: none; border-bottom: 1px solid rgba(124,58,237,0.1); max-height: 40vh; }
  .detail-info { padding: 24px; }
  .detail-info h2 { font-size: 22px; }
  .product-detail-overlay { padding: 12px; }
  .product-media-thumb { height: 140px; }
}

.chat-container { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 160px); }
.chat-header { margin-bottom: 16px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: rgba(18,18,26,0.4); border: 1px solid rgba(124,58,237,0.15); border-radius: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { display: flex; }
.chat-message.user { justify-content: flex-end; }
.chat-message.ai { justify-content: flex-start; }
.chat-bubble { max-width: 80%; padding: 12px 18px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.chat-message.user .chat-bubble { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3); border-bottom-right-radius: 4px; }
.chat-message.ai .chat-bubble { background: rgba(26,26,40,0.6); border: 1px solid rgba(255,255,255,0.06); border-bottom-left-radius: 4px; }
.chat-message .chat-time { font-size: 10px; color: var(--text2); margin-top: 4px; }
.chat-input-bar { display: flex; gap: 8px; }
.chat-input-bar input { flex: 1; padding: 12px 16px; border: 1px solid rgba(124,58,237,0.15); border-radius: 12px; font-size: 14px; background: rgba(26,26,40,0.4); color: var(--text); outline: none; transition: all 0.3s; }
.chat-input-bar input:focus { border-color: #7c3aed; box-shadow: 0 0 20px rgba(124,58,237,0.15); }
.chat-input-bar button { white-space: nowrap; }

@media (max-width: 1024px) {
  .page { padding: 20px; }
  .hero h1 { font-size: 42px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .data-table { font-size: 12px; }
}

@media (max-width: 900px) {
  .hamburger { display: block; }
  .taskbar-links {
    display: none; position: fixed; top: 52px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    border-bottom: 1px solid rgba(124,58,237,0.2);
    flex-direction: column; padding: 8px 16px; gap: 4px;
    z-index: 99; backdrop-filter: blur(24px);
  }
  .taskbar-links.open { display: flex; }
  .taskbar-links a { font-size: 15px; padding: 10px 14px; width: 100%; text-align: center; border-radius: 8px; }
  .taskbar-links a:hover { background: rgba(124,58,237,0.1); }
  .taskbar-center { display: none; }
  .search-bar { max-width: 100%; }
}

@media (max-width: 768px) {
  .taskbar { padding: 6px 10px; gap: 6px; }
  .taskbar-links { top: 48px; }
  .taskbar-right { gap: 6px; }
  .taskbar-right a { font-size: 12px; }
  .btn-primary, .btn-secondary { padding: 8px 16px; font-size: 12px; }
  .start-btn { font-size: 14px; padding: 4px 8px; }
  .start-btn img { height: 22px !important; }
  .hero { padding: 32px 16px; margin-bottom: 24px; border-radius: 14px; }
  .hero h1 { font-size: 28px; letter-spacing: 2px; }
  .hero p { font-size: 15px; }
  .hero img { height: 56px !important; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-large { padding: 12px 24px; font-size: 14px; }
  .page { padding: 16px; }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 20px 16px; }
  .category-card h3 { font-size: 14px; }
  .section h2 { font-size: 22px; }
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card { padding: 18px; }
  .product-card h3 { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 24px 18px; }
  .auth-card { padding: 28px 20px; margin: 0 8px; }
  .auth-card h2 { font-size: 24px; }
  .dashboard { flex-direction: column; }
  .dashboard-sidebar { width: 100%; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .dash-nav a { flex: 1; text-align: center; padding: 10px 8px; font-size: 12px; }
  .support-layout { grid-template-columns: 1fr; gap: 16px; }
  .owner-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item .stat-number { font-size: 30px; }
  .contact-links { grid-template-columns: 1fr; gap: 14px; }
  .admin-tabs, .owner-tabs { gap: 4px; }
  .admin-tabs button, .owner-tabs button { padding: 8px 14px; font-size: 12px; }
  .admin-content { padding: 16px; }
  .data-table { font-size: 11px; }
  .data-table th, .data-table td { padding: 8px 6px; }
  .data-table .actions { flex-direction: column; gap: 4px; }
  .data-table .actions button { font-size: 10px; padding: 4px 8px; }
  .product-form-content { padding: 24px 20px; margin: 0 12px; }
  .payment-content { padding: 28px 20px; margin: 0 12px; }
  .payment-content h2 { font-size: 20px; }
  .payment-content .pay-amount { font-size: 32px; }
  .community-container { height: calc(100vh - 140px); }
  .chat-container { height: calc(100vh - 140px); }
  .chat-messages { padding: 12px; }
  .chat-bubble { max-width: 90%; font-size: 13px; }
  .profile-card { padding: 28px 20px; margin: 24px 12px; }
  .profile-container { padding: 0 12px; }
  .toast { left: 16px; right: 16px; bottom: 16px; text-align: center; }
  .order-card { padding: 16px; }
  .support-form, .support-tickets { padding: 18px; }
  .ticket-card { padding: 12px; }
  .owner-content { padding: 16px; }
  .stats-row { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-number { font-size: 26px; }
}

@media (max-width: 480px) {
  .page { padding: 12px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .hero-buttons .btn-large { padding: 10px 20px; font-size: 13px; }
  .categories { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-card { padding: 16px 12px; }
  .taskbar { padding: 4px 6px; gap: 4px; }
  .taskbar-links { top: 44px; }
  .taskbar-links a { font-size: 14px; padding: 8px 12px; }
  .taskbar-right a { font-size: 11px; }
  .btn-primary, .btn-secondary { padding: 6px 12px; font-size: 11px; }
  .start-btn { font-size: 12px; letter-spacing: 1px; }
  .start-btn img { height: 18px !important; }
  .section h2 { font-size: 20px; }
  .auth-card { padding: 24px 16px; }
  .auth-card h2 { font-size: 22px; }
  .owner-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-tabs button, .owner-tabs button { padding: 6px 10px; font-size: 11px; }
  .dashboard-sidebar { width: 100%; }
  .profile-card { padding: 24px 16px; }
  .payment-content { padding: 24px 16px; }
  .payment-content .pay-amount { font-size: 28px; }
  .contact-links { grid-template-columns: 1fr; }
  .form-group label { font-size: 12px; }
  .form-group input, .form-group select, .form-group textarea { padding: 10px 14px; font-size: 13px; }
}

@media (min-width: 1200px) {
  .page { max-width: 1400px; padding: 32px 40px; }
  .hero { padding: 100px 60px; border-radius: 24px; }
  .hero h1 { font-size: 64px; }
  .hero p { font-size: 20px; max-width: 700px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
  .categories { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .features-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
  .auth-card { padding: 48px; max-width: 480px; }
  .product-card { padding: 28px; }
  .community-container { max-width: 800px; }
  .chat-container { max-width: 800px; }
  .contact-links { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (min-width: 1600px) {
  .page { max-width: 1600px; padding: 40px 60px; }
  .hero h1 { font-size: 72px; }
  .hero p { font-size: 22px; }
  .auth-card { max-width: 520px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }
}

@media (min-height: 800px) and (min-width: 1200px) {
  .hero { padding: 120px 60px; }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero { padding: 50px 30px; }
  .hero h1 { font-size: 36px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (hover: none) and (pointer: coarse) {
  .product-card:hover, .category-card:hover, .feature-card:hover, .contact-card:hover { transform: none; }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
  .user-menu { display: none; }
  .taskbar-right:active .user-menu,
  .taskbar-right:focus-within .user-menu { display: block; }
  .taskbar-links a:hover { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero::after, .product-card::before { animation: none !important; display: none; }
}
