/* ===== DESIGN SYSTEM ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #222845;
  --bg-input: #141928;
  --border: #2a3050;
  --border-focus: #6366f1;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99,102,241,0.3);
  --gradient-1: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-2: linear-gradient(135deg, #3b82f6, #6366f1);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 50%, #0a0e1a 100%);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 20px; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 8px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none; padding: 8px 16px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-auth { display: flex; align-items: center; gap: 8px; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.user-name { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-1); color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); }
.btn-primary-sm { background: var(--gradient-1); color: #fff; padding: 8px 16px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--bg-card); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-warning { background: var(--warning); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-info { background: var(--info); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ===== VIEWS ===== */
.view { display: none; padding-top: 64px; min-height: 100vh; }
.view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  padding: 80px 0 100px;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: float 12s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: #6366f1; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #a855f7; bottom: -50px; left: -50px; animation-delay: -4s; }
.shape-3 { width: 200px; height: 200px; background: #3b82f6; top: 50%; left: 50%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent-hover); font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.gradient-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }
.sticker-showcase { display: flex; gap: 20px; justify-content: center; perspective: 600px; }
.sticker-card {
  width: 120px; height: 120px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; transition: var(--transition);
  box-shadow: var(--shadow);
  animation: cardFloat 4s ease-in-out infinite;
}
.sticker-card.s2 { animation-delay: -1.3s; transform: translateY(-10px); }
.sticker-card.s3 { animation-delay: -2.6s; }
.sticker-card:hover { transform: translateY(-8px) rotateY(10deg); }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== FEATURES ===== */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 8px 30px var(--accent-glow); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent-hover); font-size: 14px; font-weight: 500;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-secondary); font-size: 16px; }

/* ===== CALCULATOR ===== */
.calculator-section { padding: 80px 0 100px; background: var(--bg-secondary); }
.calculator-wrapper { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.calc-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.calc-group { margin-bottom: 28px; }
.calc-group:last-child { margin-bottom: 0; }
.calc-label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.size-presets, .qty-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.preset-btn {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-secondary); font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); }
.preset-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.size-inputs { display: flex; align-items: end; gap: 12px; }
.size-x { font-size: 20px; font-weight: 700; color: var(--text-muted); padding-bottom: 8px; }
.input-group { flex: 1; }
.input-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.input-group.full { max-width: 300px; }
.input-group { position: relative; }
.input-group input {
  width: 100%; padding: 10px 40px 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font); font-size: 15px;
  transition: var(--transition);
}
.input-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-group .unit {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.material-options, .cut-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.option-card {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition); text-align: center;
}
.option-card:hover { border-color: var(--accent); }
.option-card.active { background: rgba(99,102,241,0.1); border-color: var(--accent); color: var(--accent); }
.option-card .opt-name { font-size: 13px; font-weight: 600; }
.option-card .opt-price { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ===== PRICE PANEL ===== */
.price-panel { position: sticky; top: 88px; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg);
}
.price-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.price-card-header h3 { font-size: 18px; font-weight: 800; }
.price-badge {
  padding: 4px 12px; border-radius: 100px;
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3);
  color: var(--success); font-size: 12px; font-weight: 600;
}
.price-breakdown { margin-bottom: 20px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-row span:last-child { font-weight: 600; color: var(--text-primary); }
.price-row.total { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; font-size: 15px; }
.price-row.total span { color: var(--text-primary); font-weight: 700; }
.price-row.vat { font-size: 13px; }
.price-row.grand-total {
  border-top: 2px solid var(--accent); padding-top: 12px; margin-top: 8px;
  font-size: 20px;
}
.price-row.grand-total span { font-weight: 900; }
.price-row.grand-total span:last-child { color: var(--accent-hover); }
.production-time {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(99,102,241,0.08); border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 14px; color: var(--text-secondary);
}
.production-time strong { color: var(--accent-hover); }

/* ===== AUTH ===== */
.auth-container {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card-wide { max-width: 640px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .logo-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.auth-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-header p { color: var(--text-secondary); font-size: 14px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font); font-size: 14px;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-divider {
  text-align: center; margin: 24px 0 16px;
  position: relative;
}
.form-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--border);
}
.form-divider span {
  position: relative; z-index: 1;
  background: var(--bg-card); padding: 0 16px;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.checkbox-label {
  display: flex !important; align-items: center; gap: 10px;
  cursor: pointer; font-weight: 500 !important; color: var(--text-primary) !important;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer;
}

/* ===== STEPS BAR ===== */
.steps-bar {
  display: flex; justify-content: center; gap: 4px; margin-bottom: 40px;
  padding: 8px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.step {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-muted); transition: var(--transition);
}
.step.active { background: var(--accent); color: #fff; }
.step.done { color: var(--success); }
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.step.active .step-num { background: rgba(255,255,255,0.25); }
.step-label { font-weight: 600; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease; }
.form-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.form-actions { display: flex; justify-content: space-between; margin-top: 32px; }

/* ===== ORDER FORM WRAPPER ===== */
.order-form-wrapper {
  max-width: 700px; margin: 0 auto; padding: 40px 0;
}

/* ===== ORDER SUMMARY CARD ===== */
.order-summary-card {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  font-size: 14px; color: var(--text-secondary);
}
.summary-row span:last-child { font-weight: 600; color: var(--text-primary); }
.summary-row.highlight { color: var(--accent-hover); font-size: 16px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.summary-row.highlight span { color: var(--accent-hover); font-weight: 800; }

/* ===== SUCCESS ===== */
.success-card {
  max-width: 500px; margin: 60px auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.success-card p { color: var(--text-secondary); margin-bottom: 8px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

/* ===== ORDERS LIST ===== */
.orders-list { padding: 20px 0; }
.order-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 12px; cursor: pointer; transition: var(--transition);
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 20px; align-items: center;
}
.order-item:hover { border-color: var(--accent); transform: translateX(4px); }
.order-id { font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.order-info { font-size: 14px; color: var(--text-secondary); }
.order-info strong { color: var(--text-primary); }
.order-total { font-size: 16px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.status-badge {
  padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.status-quoted { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }
.status-confirmed { background: rgba(99,102,241,0.15); color: var(--accent); border: 1px solid rgba(99,102,241,0.3); }
.status-producing { background: rgba(168,85,247,0.15); color: #a855f7; border: 1px solid rgba(168,85,247,0.3); }
.status-shipping { background: rgba(20,184,166,0.15); color: #14b8a6; border: 1px solid rgba(20,184,166,0.3); }
.status-completed { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.status-cancelled { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }

/* ===== ORDER DETAIL ===== */
.detail-header {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.detail-header h2 { font-size: 28px; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.detail-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.detail-card h4 { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.detail-row span:first-child { color: var(--text-secondary); }
.detail-row span:last-child { font-weight: 600; }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ===== QR PAYMENT ===== */
.qr-section {
  text-align: center; padding: 32px;
}
.qr-code {
  width: 200px; height: 200px; margin: 20px auto;
  background: #fff; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.qr-code img { width: 100%; height: 100%; object-fit: contain; }
.qr-info { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.qr-amount { font-size: 28px; font-weight: 900; color: var(--accent-hover); margin: 8px 0; }

/* ===== ADMIN ===== */
.admin-header { padding: 32px 0 24px; }
.admin-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.admin-tabs { display: flex; gap: 4px; background: var(--bg-card); border-radius: var(--radius); padding: 4px; border: 1px solid var(--border); display: inline-flex; }
.tab-btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: transparent; border: none; color: var(--text-muted);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.tab-btn.active { background: var(--accent); color: #fff; }
.tab-btn:hover:not(.active) { color: var(--text-primary); }
.admin-tab-content { display: none; padding: 24px 0; }
.admin-tab-content.active { display: block; }
.admin-filters { margin-bottom: 20px; }
.admin-filters select {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font); font-size: 14px;
  cursor: pointer;
}
.admin-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.admin-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pricing-item { display: flex; flex-direction: column; gap: 4px; }
.pricing-item label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.pricing-item input {
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font); font-size: 14px;
}
.pricing-item input:focus { outline: none; border-color: var(--accent); }
.discount-table table {
  width: 100%; border-collapse: collapse;
}
.discount-table th, .discount-table td {
  padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.discount-table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.discount-table input {
  width: 80px; padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font); font-size: 14px; text-align: center;
}
.discount-table input:focus { outline: none; border-color: var(--accent); }
.admin-orders-table .order-item { cursor: pointer; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 16px;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.modal-body { padding: 32px; }
.modal-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

/* ===== EMAIL PREVIEW ===== */
.email-preview {
  background: #fff; color: #333; border-radius: var(--radius);
  padding: 24px; font-size: 14px; line-height: 1.8;
  max-height: 400px; overflow-y: auto;
}
.email-preview h4 { color: #111; margin-bottom: 12px; }
.email-preview .email-header { border-bottom: 2px solid #6366f1; padding-bottom: 12px; margin-bottom: 16px; }
.email-preview .email-logo { font-size: 24px; font-weight: 800; color: #6366f1; }
.email-preview table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.email-preview td { padding: 6px 8px; border-bottom: 1px solid #eee; font-size: 13px; }
.email-preview td:first-child { color: #666; }
.email-preview .email-total { font-size: 18px; font-weight: 800; color: #6366f1; }
.email-preview .email-footer { border-top: 1px solid #eee; padding-top: 12px; margin-top: 16px; font-size: 12px; color: #999; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: #fff;
  box-shadow: var(--shadow); animation: toastIn 0.4s ease;
  min-width: 280px; max-width: 400px;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 16px; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-input);
  text-align: center;
  position: relative;
}
.upload-zone:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.05);
}
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(99,102,241,0.1);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: scale(1.01);
}
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-text { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.upload-hint { font-size: 13px; color: var(--text-muted); }
.upload-formats { font-size: 11px; color: var(--text-muted); margin-top: 6px; opacity: 0.7; }

.upload-preview {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.upload-thumb {
  position: relative;
  width: 100px; height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}
.upload-thumb:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}
.upload-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.upload-thumb .thumb-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--danger);
  border: none;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.upload-thumb:hover .thumb-remove { opacity: 1; }
.upload-thumb .thumb-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff; font-size: 9px;
  padding: 2px 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.upload-add-more {
  width: 100px; height: 100px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.upload-add-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.upload-count {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 36px; }
  .hero-desc { margin: 0 auto 24px; }
  .sticker-showcase { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .calculator-wrapper { grid-template-columns: 1fr; }
  .price-panel { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .order-item { grid-template-columns: 1fr; gap: 8px; }
  .steps-bar { flex-wrap: wrap; }
  .step-label { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .material-options, .cut-options { grid-template-columns: 1fr 1fr; }
}

/* ===== NEW AUTH STYLES ===== */
.auth-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.auth-decoration {
  position: absolute; top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: var(--gradient-1); border-radius: 50%;
  filter: blur(40px); opacity: 0.15; pointer-events: none;
}
.auth-logo-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-input); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 32px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.input-with-icon {
  position: relative;
}
.input-icon {
  position: absolute; left: 14px; top: 12px;
  font-size: 16px; color: var(--text-muted);
}
.input-with-icon input {
  padding-left: 44px !important;
}
.auth-options {
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0; font-size: 13px;
}
.forgot-password { color: var(--text-muted); text-decoration: none; }
.forgot-password:hover { color: var(--accent); }
.btn-auth { gap: 12px; font-size: 15px; padding: 12px 24px; }
.auth-divider {
  text-align: center; margin: 24px 0;
  position: relative;
}
.auth-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--border);
}
.auth-divider span {
  position: relative; z-index: 1;
  background: var(--bg-card); padding: 0 12px;
  font-size: 12px; color: var(--text-muted);
}
.admin-entry { margin-top: 32px; opacity: 0.5; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; font-size: 10px; text-align: center; display: block; }
.admin-entry:hover { opacity: 1; }

.checkbox-container {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--text-secondary);
}

/* ===== ADMIN DASHBOARD STYLES ===== */
.view-admin-dashboard {
  padding-top: 0 !important; background: #070a13;
}
.container-admin {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 32px 0; position: sticky; top: 0; height: 100vh;
}
.sidebar-header {
  padding: 0 24px 40px; border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.sidebar-nav { flex: 1; padding: 0 16px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: transparent; border: none; color: var(--text-secondary);
  font-family: var(--font); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: var(--transition); text-align: left;
}
.sidebar-btn:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); }
.sidebar-btn.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px var(--accent-glow); }
.sib-icon { font-size: 18px; }
.sidebar-sidebar-footer { padding: 24px 16px; border-top: 1px solid rgba(255,255,255,0.05); }

.admin-main { padding: 32px 40px; overflow-y: auto; }
.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.admin-topbar h2 { font-size: 24px; font-weight: 800; }
.admin-user-info { display: flex; align-items: center; gap: 12px; }
.admin-name { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* Stats Cards */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  margin-bottom: 32px;
}
.stats-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.stats-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.stats-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.stats-value { font-size: 22px; font-weight: 900; margin-bottom: 4px; color: var(--text-primary); }
.stats-trend { font-size: 11px; font-weight: 600; }
.stats-trend.positive { color: var(--success); }
.stats-trend.warning { color: var(--warning); }
.stats-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.stats-icon.rev { background: rgba(34,197,94,0.1); color: var(--success); }
.stats-icon.ord { background: rgba(59,130,246,0.1); color: var(--info); }
.stats-icon.pending { background: rgba(245,158,11,0.1); color: var(--warning); }
.stats-icon.user { background: rgba(99,102,241,0.1); color: var(--accent); }

.admin-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 24px; }
.admin-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h3 { font-size: 16px; font-weight: 700; }

.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition); cursor: pointer;
}
.recent-item:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.1); }
.recent-marker { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid var(--border); }

.chart-mock {
  height: 220px; width: 100%; border-radius: var(--radius);
  background: linear-gradient(0deg, rgba(99,102,241,0.1) 0%, transparent 100%);
  position: relative; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: space-around; padding: 20px;
}

/* Data Table */
.admin-table-wrapper { overflow-x: auto; margin-top: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.data-table th {
  text-align: left; padding: 14px 20px; background: rgba(255,255,255,0.03);
  color: var(--text-muted); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; vertical-align: middle; }
.data-table tr:hover { background: rgba(255,255,255,0.01); }

.search-box { flex: 1; position: relative; }
.search-box input {
  width: 100%; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font); font-size: 14px;
  transition: var(--transition);
}
.search-box input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }

.admin-filters { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }

.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-actions { margin-top: 32px; display: flex; justify-content: flex-end; }

.discount-table-wrapper { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* Custom pricing table styling */
.discount-edit-table td { padding: 12px 10px; }
.input-with-label {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-label input {
  background: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 12px !important;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  text-align: right;
  transition: var(--transition);
}
.input-with-label input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-suffix {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 700;
}
.input-with-label.highlight input {
  color: var(--accent-hover) !important;
  font-weight: 700;
  border-color: rgba(99,102,241,0.3) !important;
}
.discount-demo { text-align: center; }
.trend-indicator {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.trend-indicator.positive {
  background: rgba(34,197,94,0.1);
  color: var(--success);
}

/* Order Detail Enhancements */
.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding: 24px; }
.detail-card h4 { color: var(--accent); margin-bottom: 16px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.val-badge { background: var(--bg-input); padding: 4px 10px; border-radius: 100px; font-size: 13px; color: var(--text-primary); border: 1px solid var(--border); }
.highlight-card { border-left: 4px solid var(--accent); }
.total-row { font-size: 20px; font-weight: 800; color: var(--text-primary); margin: 12px 0; }
.payment-status { padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.payment-status.paid { background: rgba(34,197,94,0.1); color: var(--success); }
.payment-status.unpaid { background: rgba(245,158,11,0.1); color: var(--warning); }
.full-width { grid-column: 1 / -1; }
.notes-text { background: var(--bg-input); padding: 16px; border-radius: var(--radius-sm); border-left: 3px solid var(--border); color: var(--text-secondary); line-height: 1.6; }
.detail-actions-bar { display: flex; justify-content: space-between; align-items: center; padding: 24px; background: var(--bg-secondary); margin-top: 32px; border: 1px solid var(--border); }
.action-label { font-weight: 700; color: var(--text-muted); }
.actions-buttons { display: flex; gap: 12px; }

/* Responsive Admin */
@media (max-width: 1024px) {
  .container-admin { grid-template-columns: 80px 1fr; }
  .logo-text, .sib-icon + span, .admin-name, .sidebar-footer span { display: none; }
  .sidebar-btn { justify-content: center; padding: 12px; }
  .sib-icon { font-size: 24px; }
  .sidebar-header { justify-content: center; padding: 0 0 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container-admin { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-main { padding: 24px; }
}

/* ===== STATUS BADGES ===== */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.status-badge.status-new { background: rgba(99,102,241,0.1); color: #818cf8; border-color: rgba(99,102,241,0.2); }
.status-badge.status-quoting { background: rgba(56,189,248,0.1); color: #38bdf8; border-color: rgba(56,189,248,0.2); }
.status-badge.status-proposed { background: rgba(244,114,182,0.1); color: #f472b6; border-color: rgba(244,114,182,0.2); }
.status-badge.status-approved { background: rgba(74,222,128,0.1); color: #4ade80; border-color: rgba(74,222,128,0.2); }
.status-badge.status-ordered { background: var(--accent); color: #fff; box-shadow: 0 0 10px var(--accent-glow); }
.status-badge.status-cancelled { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.2); }
