/* Digitaler Bierdeckel — Professional Dark Theme v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0f1117;
  --bg2: #161923;
  --bg3: #1e2233;
  --card: #1a1e2e;
  --card-hover: #212640;
  --text: #e8e9ed;
  --text2: #8b8fa3;
  --text3: #5c6078;
  --primary: #f5c518;
  --primary-dark: #d4a800;
  --primary-glow: rgba(245, 197, 24, 0.15);
  --accent: #333333;
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 4px 16px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --glass-bg: rgba(22, 25, 35, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: 0.2s ease-out;
}

/* Light Theme */
body.theme-light {
  --bg: #f5f6fa;
  --bg2: #ffffff;
  --bg3: #e8eaf0;
  --card: #ffffff;
  --card-hover: #f0f1f5;
  --text: #1a1a2e;
  --text2: #5c5e70;
  --text3: #9a9cb0;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --primary-glow: rgba(245, 197, 24, 0.2);
  --danger-bg: rgba(239, 68, 68, 0.08);
  --success-bg: rgba(34, 197, 94, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.header h1 { font-size: 1.15rem; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.header .btn-sm { font-size: 0.82rem; padding: 6px 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); touch-action: manipulation;
  min-height: 48px; position: relative; overflow: hidden;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.97); transition-duration: 0.08s; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #111; box-shadow: var(--shadow-sm), 0 0 0 0 var(--primary-glow);
}
.btn-primary:hover { box-shadow: var(--shadow), var(--shadow-glow); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97) translateY(0); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }

.btn-ghost {
  background: transparent; color: var(--text2); border: 1px solid var(--border-light);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: var(--card); color: var(--text); border-color: var(--text3); }

.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Cards ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-light); }

/* ===== Landing Page ===== */
.landing {
  text-align: center; padding: 0 16px;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 197, 24, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(100, 100, 255, 0.04) 0%, transparent 50%),
    var(--bg);
  position: relative;
}
.landing::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.landing-icon {
  width: 120px; height: 120px; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; box-shadow: 0 8px 40px rgba(245, 197, 24, 0.25);
  animation: float 3s ease-in-out infinite;
  position: relative;
}
.landing-icon::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid rgba(245, 197, 24, 0.2);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.landing h1 {
  font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), #ffd866);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.landing .claim {
  color: var(--text2); font-size: 1.15rem; margin-bottom: 48px;
  font-weight: 400; max-width: 400px;
}

.club-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; max-width: 640px; width: 100%; position: relative; z-index: 1;
}
.club-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; cursor: pointer;
  transition: all var(--transition); text-align: left;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--text);
}
.club-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--primary); background: var(--card-hover);
}
.club-card:active { transform: scale(0.98); }
.club-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-glow); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.club-card-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.club-card-info .meta { font-size: 0.82rem; color: var(--text2); }

/* ===== Group Selection ===== */
.group-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; padding: 16px 0;
}
.group-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; cursor: pointer; transition: all var(--transition);
  min-height: 130px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; position: relative;
  overflow: hidden;
}
.group-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0.06; transition: opacity var(--transition);
  border-radius: var(--radius);
}
.group-card:nth-child(6n+1)::before { background: linear-gradient(135deg, #f5c518, #ff8c00); }
.group-card:nth-child(6n+2)::before { background: linear-gradient(135deg, #4c6ef5, #15aabf); }
.group-card:nth-child(6n+3)::before { background: linear-gradient(135deg, #22c55e, #06b6d4); }
.group-card:nth-child(6n+4)::before { background: linear-gradient(135deg, #e91e63, #9c27b0); }
.group-card:nth-child(6n+5)::before { background: linear-gradient(135deg, #ff6b6b, #ffa500); }
.group-card:nth-child(6n+6)::before { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }

.group-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg); border-color: var(--primary);
}
.group-card:hover::before { opacity: 0.12; }
.group-card:active { transform: scale(0.98); }

.group-card h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; position: relative; }
.group-card .count {
  color: var(--text2); font-size: 0.82rem; font-weight: 500; position: relative;
  background: var(--bg); padding: 2px 12px; border-radius: var(--radius-pill);
  display: inline-block; margin-top: 4px;
}

/* ===== POS Layout ===== */
.pos-layout {
  display: flex; height: calc(100vh - 56px); overflow: hidden;
}
.pos-members {
  width: 320px; min-width: 280px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; background: var(--bg2);
  position: relative;
}
/* Scroll shadow indicators */
.pos-members::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(transparent, var(--bg2));
  pointer-events: none; z-index: 1;
}
.pos-content { flex: 1; overflow-y: auto; padding: 24px; }

/* Search */
.search-box { padding: 12px 12px 8px; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 0.95rem; outline: none; transition: all var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b8fa3' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.44.956a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* Member List */
.member-list { flex: 1; overflow-y: auto; padding-bottom: 40px; }
.member-item {
  padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border);
  transition: all 0.12s ease-out; display: flex; align-items: center; gap: 12px;
}
.member-item:hover { background: var(--bg3); }
.member-item.active {
  background: var(--primary-glow);
  border-left: 3px solid var(--primary);
  box-shadow: inset 0 0 20px var(--primary-glow);
}
.member-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff; flex-shrink: 0;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.member-item .member-info { flex: 1; min-width: 0; }
.member-item .name { font-size: 0.95rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-item .info { font-size: 0.75rem; color: var(--text2); }

/* ===== Product Grid ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.product-btn {
  border: none; border-radius: var(--radius); padding: 16px 12px;
  cursor: pointer; text-align: center; transition: all var(--transition);
  min-height: 100px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  touch-action: manipulation; position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.1);
}
.product-btn:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.15);
}
.product-btn:active { transform: scale(0.97); transition-duration: 0.08s; }
.product-btn .emoji { font-size: 2.5rem; line-height: 1; }
.product-btn .pname { font-size: 0.88rem; font-weight: 600; color: inherit; }
.product-btn .price {
  font-size: 0.78rem; opacity: 0.85;
  background: rgba(0,0,0,0.15); padding: 2px 10px;
  border-radius: var(--radius-pill); margin-top: 2px;
}

/* ===== Deckel / Tab Section ===== */
.tab-section {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; margin-top: 20px; border: 1px solid var(--border);
}
.tab-section h3 { color: var(--text2); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tab-total {
  font-size: 2rem; font-weight: 800; text-align: center; margin: 12px 0;
  background: linear-gradient(135deg, var(--primary), #ffd866);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.order-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.order-item:last-child { border-bottom: none; }
.order-item .time { color: var(--text3); font-size: 0.78rem; }
.order-item .delete-btn {
  background: none; border: none; color: var(--danger); cursor: pointer;
  font-size: 1rem; padding: 4px 8px; opacity: 0.5; transition: all var(--transition);
  border-radius: var(--radius-sm);
}
.order-item .delete-btn:hover { opacity: 1; background: var(--danger-bg); }

/* Settle section */
.settle-section { text-align: center; margin-top: 16px; }
.settle-section .btn {
  font-size: 1.05rem; padding: 14px 32px; min-height: 56px;
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff; border-radius: var(--radius); font-weight: 700;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}
.settle-section .btn:hover { box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4); transform: translateY(-1px); }

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: var(--card); color: var(--text); padding: 14px 24px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  animation: toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}
.toast .undo-btn {
  background: transparent; border: 1.5px solid var(--text3); color: var(--text);
  padding: 5px 14px; border-radius: var(--radius-pill); cursor: pointer;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  transition: all var(--transition);
}
.toast .undo-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
@keyframes toast-in {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Admin Panel ===== */
.admin-tabs {
  display: flex; gap: 6px; margin-bottom: 24px;
  background: var(--bg); border-radius: var(--radius-pill); padding: 4px;
  border: 1px solid var(--border);
}
.admin-tab {
  flex: 1; padding: 10px 16px; text-align: center; cursor: pointer;
  background: transparent; border: none; color: var(--text2);
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition); border-radius: var(--radius-pill);
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: #111; background: var(--primary);
  box-shadow: var(--shadow-sm); font-weight: 600;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px; font-size: 0.82rem;
  font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 0.95rem; outline: none; transition: all var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left; padding: 12px 16px; color: var(--text2);
  border-bottom: 2px solid var(--border); font-weight: 600;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--bg2);
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
tr:nth-child(even) { background: rgba(255,255,255,0.015); }
tr:hover { background: rgba(255,255,255,0.04); }

body.theme-light tr:nth-child(even) { background: rgba(0,0,0,0.015); }
body.theme-light tr:hover { background: rgba(0,0,0,0.04); }

/* ===== Checkbox Groups ===== */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-group label {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: var(--bg); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.9rem; border: 1px solid var(--border); transition: all var(--transition);
}
.checkbox-group label:hover { border-color: var(--primary); }
.checkbox-group input[type=checkbox] { accent-color: var(--primary); }

/* ===== Reporting ===== */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  text-align: center; border: 1px solid var(--border); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0.06;
}
.stat-card:nth-child(1)::before { background: linear-gradient(135deg, #f5c518, #ff8c00); }
.stat-card:nth-child(2)::before { background: linear-gradient(135deg, #4c6ef5, #15aabf); }
.stat-card:nth-child(3)::before { background: linear-gradient(135deg, #22c55e, #06b6d4); }

.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stat-card .value {
  font-size: 2rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.02em; position: relative;
}
.stat-card .label { font-size: 0.82rem; color: var(--text2); margin-top: 4px; font-weight: 500; position: relative; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 500;
  animation: modal-bg-in 0.2s ease;
}
.modal {
  background: var(--card); border-radius: 16px; padding: 28px;
  width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  animation: modal-slide-up 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.modal h2 { margin-bottom: 20px; font-size: 1.2rem; font-weight: 700; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

@keyframes modal-bg-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modal-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== List Items (Admin) ===== */
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--card); border-radius: var(--radius);
  margin-bottom: 8px; border: 1px solid var(--border); transition: all var(--transition);
}
.list-item:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.list-item .actions { display: flex; gap: 6px; }

/* ===== No Selection ===== */
.no-selection {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text3); font-size: 1.05rem;
  flex-direction: column; gap: 12px;
}
.no-selection .icon { font-size: 4rem; opacity: 0.4; }
.no-selection div:last-child { font-weight: 500; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--text3);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state .message { font-size: 1rem; margin-bottom: 16px; }

/* ===== Color Input ===== */
input[type=color] {
  width: 48px; height: 48px; border: 2px solid var(--border); padding: 2px;
  border-radius: var(--radius-sm); cursor: pointer; background: transparent;
}
input[type=color]:hover { border-color: var(--primary); }

/* ===== Login ===== */
.login-box {
  max-width: 360px; margin: 80px auto; text-align: center;
}
.login-box h2 { margin-bottom: 24px; color: var(--primary); }

/* ===== View transitions ===== */
#app { animation: view-fade-in 0.15s ease-out; }
@keyframes view-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

/* ===== Color Presets ===== */
.color-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.color-preset {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--border); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative;
}
.color-preset:hover { transform: scale(1.15); border-color: var(--text2); }
.color-preset.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.color-preset-inner {
  width: 100%; height: 100%; display: flex;
}
.color-preset-inner span { flex: 1; }

/* ===== Theme Preview ===== */
.theme-preview {
  border-radius: var(--radius); padding: 16px; margin-top: 12px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 16px;
}
.theme-preview-swatch {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.theme-toggle {
  display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-pill);
  padding: 3px; border: 1px solid var(--border);
}
.theme-toggle button {
  padding: 8px 18px; border: none; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.88rem; cursor: pointer;
  background: transparent; color: var(--text2); font-weight: 500; transition: all var(--transition);
}
.theme-toggle button.active { background: var(--primary); color: #111; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .pos-layout { flex-direction: column; }
  .pos-members {
    width: 100%; min-width: auto; max-height: 40vh;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .pos-content { overflow-y: auto; padding: 16px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .group-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .form-row { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .landing h1 { font-size: 2rem; }
  .club-grid { grid-template-columns: 1fr; }
  .container { padding: 16px; }
}
