* { 
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
:root {
  --primary: #7CFC00;
  --primary-dark: #228B22;
  --bg: #050805;
  --bg-gradient: linear-gradient(180deg, #0a120a 0%, #050805 50%, #080a08 100%);
  --card: rgba(20, 30, 20, 0.8);
  --card-hover: rgba(30, 45, 30, 0.9);
  --text: #fff;
  --text-dim: #7a7a7a;
  --border: #1a2a1a;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #ef4444;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --glow: rgba(124, 252, 0, 0.3);
}
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  background: var(--bg); 
  background-image: var(--bg-gradient);
  color: var(--text); 
  min-height: 100vh; 
  padding-bottom: 80px; 
}
.app { max-width: 480px; margin: 0 auto; padding: 10px; }

/* Stories */
.stories-bar { display: flex; gap: 12px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.stories-bar::-webkit-scrollbar { display: none; }
.story-thumb { width: 65px; height: 65px; border-radius: 50%; border: 2px solid var(--primary); padding: 2px; cursor: pointer; flex-shrink: 0; overflow: hidden; }
.story-thumb img, .story-thumb video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Header */
.header { display: flex; align-items: center; gap: 10px; padding: 10px 0; position: relative; }
.header-left { position: relative; display: flex; align-items: center; gap: 8px; }
.header-logo { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 20px var(--glow); border: 1px solid rgba(124, 252, 0, 0.3); }
.icon-btn { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.icon-btn:active { transform: scale(0.95); }
.contact-btn { background: linear-gradient(135deg, #0088cc, #00a8e8); color: #fff; border: none; }
.contact-btn:hover { opacity: 0.9; }

/* Contact Buttons in Header */
.contact-buttons { display: flex; gap: 6px; }
.contact-btn-item { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 16px; transition: transform 0.2s; }
.contact-btn-item:active { transform: scale(0.95); }
.contact-btn-item i.fa-telegram { background: linear-gradient(135deg, #0088cc, #00a8e8); border-radius: 50%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.contact-btn-item i.fa-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); border-radius: 50%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.contact-btn-item i.fa-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-radius: 50%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.contact-btn-item i.fa-snapchat { background: #fffc00; color: #000; border-radius: 50%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.contact-btn-item i.fa-envelope, .contact-btn-item i.fa-phone, .contact-btn-item i.fa-comment-dots { background: var(--primary); color: #000; border-radius: 50%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.search-box { flex: 1; display: flex; align-items: center; background: var(--card); border-radius: 20px; padding: 8px 15px; gap: 10px; }
.search-box i { color: var(--text-dim); }
.search-box input { flex: 1; background: none; border: none; color: var(--text); outline: none; font-size: 14px; }
.account-btn { position: relative; }
.level-badge { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.level-badge.bronze { background: var(--bronze); }
.level-badge.silver { background: var(--silver); color: #333; }
.level-badge.gold { background: var(--gold); color: #333; }
.notif-badge { position: absolute; top: -5px; right: -5px; background: var(--danger); color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; }

/* Categories */
.categories-chips { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.categories-chips::-webkit-scrollbar { display: none; }
.cat-chip { background: var(--card); border: none; color: var(--text); padding: 8px 16px; border-radius: 20px; cursor: pointer; white-space: nowrap; font-size: 13px; transition: all 0.2s; }
.cat-chip.active { background: var(--primary); color: #000; }

/* Featured */
.featured { padding: 10px 0; }
.featured-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 5px 0; }
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card { flex-shrink: 0; width: 200px; border-radius: 15px; overflow: hidden; background: var(--card); cursor: pointer; }
.featured-card img, .featured-card video { width: 100%; height: 120px; object-fit: cover; }
.featured-card .no-media { width: 100%; height: 120px; background: linear-gradient(135deg, var(--bg), var(--card)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.featured-card .info { padding: 10px; }
.featured-card .name { font-weight: 600; font-size: 14px; }
.featured-card .price { color: var(--primary); font-size: 13px; margin-top: 4px; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 10px 0; }
.product-card { background: var(--card); border-radius: 15px; overflow: hidden; cursor: pointer; transition: transform 0.2s; position: relative; }
.product-card:active { transform: scale(0.98); }
.product-card .media { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .no-media { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--bg), var(--card)); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.product-card .tag { position: absolute; top: 8px; left: 8px; background: var(--primary); color: #000; padding: 3px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.product-card .fav-icon { position: absolute; top: 8px; right: 8px; color: var(--danger); font-size: 16px; }
.product-card .info { padding: 10px; }
.product-card .name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .cat { color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.product-card .price { color: var(--primary); font-size: 12px; margin-top: 4px; }
.product-card .stock-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); padding: 5px 15px; border-radius: 20px; font-size: 11px; color: var(--danger); }

/* Section Title */
.section-title { font-size: 16px; padding: 15px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--primary); }

/* Reviews */
.reviews-section { padding: 10px 0; }
.reviews-summary { display: flex; align-items: center; gap: 15px; padding: 10px; background: var(--card); border-radius: 12px; margin-bottom: 10px; }
.avg-rating { font-size: 32px; font-weight: 700; color: var(--primary); }
.stars-display { color: var(--warning); font-size: 14px; }
.reviews-count { color: var(--text-dim); font-size: 12px; }
.reviews-list { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; }
.review-card { background: var(--card); padding: 12px; border-radius: 12px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-user { font-weight: 600; font-size: 13px; }
.review-stars { color: var(--warning); font-size: 12px; }
.review-comment { font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.review-photo { margin-top: 8px; max-width: 100px; border-radius: 8px; }
.review-date { font-size: 10px; color: var(--text-dim); margin-top: 6px; }

/* Cart Bar */
.cart-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); z-index: 100; }
.cart-info { font-size: 14px; }
.cart-total { font-weight: 700; color: var(--primary); margin-left: 10px; }
.cart-btn { background: var(--primary); color: #000; border: none; padding: 10px 20px; border-radius: 20px; font-weight: 600; cursor: pointer; }

/* Admin FAB */
.admin-fab { position: fixed; bottom: 90px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #000; border: none; font-size: 22px; cursor: pointer; box-shadow: 0 4px 15px rgba(144,238,144,0.4); z-index: 99; display: none; align-items: center; justify-content: center; }
.admin-fab i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 1000; overflow-y: auto; padding: 20px; }
.modal.active { display: flex; justify-content: center; align-items: flex-start; }
.modal-content { background: var(--card); border-radius: 20px; width: 100%; max-width: 450px; padding: 20px; position: relative; margin: auto; }
.modal-content h2 { font-size: 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.modal-content h2 i { color: var(--primary); }
.modal-close { position: absolute; top: 15px; right: 15px; background: var(--bg); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: var(--card-hover); border-color: var(--primary); }

/* Generic Modal Inputs */
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content input[type="time"],
.modal-content input[type="email"],
.modal-content textarea,
.modal-content select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--primary);
}
.modal-content textarea {
  resize: none;
  min-height: 80px;
}
.modal-content select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  cursor: pointer;
}
.modal-content label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* Product Detail */
.product-detail .product-media { width: 100%; aspect-ratio: 1; border-radius: 15px; overflow: hidden; margin-bottom: 15px; }
.product-detail .product-media img, .product-detail .product-media video { width: 100%; height: 100%; object-fit: cover; }
.product-header { display: flex; justify-content: space-between; align-items: center; }
.product-header h2 { font-size: 20px; }
.fav-btn { background: none; border: none; color: var(--text-dim); font-size: 24px; cursor: pointer; }
.fav-btn.active { color: var(--danger); }
.fav-btn.active i { font-weight: 900; }
.variants-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.variant-btn { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.variant-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }
.qty-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 15px 0; }
.qty-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 18px; cursor: pointer; }
#modal-qty { font-size: 20px; font-weight: 700; min-width: 30px; text-align: center; }
.add-cart-btn { width: 100%; padding: 15px; background: var(--primary); color: #000; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }

/* Cart Modal */
.cart-content h2 { margin-bottom: 15px; }
.cart-items { max-height: 200px; overflow-y: auto; margin-bottom: 15px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg); border-radius: 10px; margin-bottom: 8px; }
.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; }
.cart-item-variant { font-size: 11px; color: var(--text-dim); }
.cart-item-price { font-size: 13px; color: var(--primary); }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; }
.promo-section { margin-bottom: 15px; }
.promo-input-row { display: flex; gap: 8px; }
.promo-input-row input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; color: var(--text); }
.promo-apply { background: var(--primary); color: #000; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.promo-status { margin-top: 8px; font-size: 12px; }
.promo-status.success { color: var(--success); }
.promo-status.error { color: var(--danger); }
.cart-summary { background: var(--bg); padding: 15px; border-radius: 12px; margin-bottom: 15px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.summary-row.discount { color: var(--success); }
.summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.points-earn { text-align: center; color: var(--warning); font-size: 12px; margin-top: 8px; }
.delivery-options h4, .address-section h4, .slots-section h4 { font-size: 14px; margin-bottom: 10px; }
.delivery-btns { display: flex; gap: 10px; margin-bottom: 15px; }
.delivery-btn { flex: 1; padding: 12px; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.delivery-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }
.saved-addresses { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.saved-addr { background: var(--bg); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.saved-addr.active { background: var(--primary); color: #000; border-color: var(--primary); }
#address-input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); resize: none; height: 60px; }
.slots-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn { background: var(--bg); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 11px; color: var(--text); }
.slot-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }
.checkout-btn { width: 100%; padding: 15px; background: var(--primary); color: #000; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 15px; }

/* Account Modal */
.account-content { max-height: 90vh; overflow-y: auto; }
.account-header { text-align: center; padding: 20px 0; }
.account-avatar { width: 70px; height: 70px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 10px; }
.account-header h2 { font-size: 18px; }
.level-display { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 5px; color: var(--text-dim); }
.level-icon { font-size: 18px; }
.points-card { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 20px; border-radius: 15px; margin-bottom: 15px; color: #000; }
.points-value { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.progress-bar { height: 8px; background: rgba(0,0,0,0.2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: #fff; transition: width 0.5s; }
.next-level { text-align: center; font-size: 12px; margin-top: 8px; opacity: 0.8; }
.referral-card { background: var(--bg); padding: 15px; border-radius: 12px; margin-bottom: 15px; }
.referral-card h4 { margin-bottom: 8px; }
.referral-card p { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.referral-code-box { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--card); padding: 12px; border-radius: 10px; margin-bottom: 8px; }
.referral-code-box span { font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--primary); }
.copy-btn { background: none; border: none; color: var(--text); cursor: pointer; font-size: 16px; }
.referral-stats { text-align: center; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.use-referral { display: flex; gap: 8px; }
.use-referral input { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px; color: var(--text); }
.use-referral button { background: var(--primary); color: #000; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; }
.account-tabs { display: flex; gap: 5px; margin-bottom: 15px; overflow-x: auto; }
.acc-tab { flex: 1; padding: 10px; background: var(--bg); border: none; color: var(--text-dim); border-radius: 10px; cursor: pointer; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.acc-tab.active { background: var(--primary); color: #000; }
.tab-content { min-height: 150px; }
.orders-list, .addresses-list, .my-reviews-list, .notifs-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { background: var(--bg); padding: 12px; border-radius: 10px; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-id { font-weight: 600; }
.order-status { padding: 3px 8px; border-radius: 10px; font-size: 10px; }
.order-status.pending { background: var(--warning); color: #000; }
.order-status.confirmed, .order-status.preparing { background: #3b82f6; color: #fff; }
.order-status.ready, .order-status.delivering { background: #8b5cf6; color: #fff; }
.order-status.delivered { background: var(--success); color: #000; }
.order-status.cancelled { background: var(--danger); color: #fff; }
.order-items { font-size: 12px; color: var(--text-dim); }
.order-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.order-total { font-weight: 600; color: var(--primary); }
.reorder-btn { background: var(--primary); color: #000; border: none; padding: 5px 12px; border-radius: 15px; font-size: 11px; cursor: pointer; }
.address-card { background: var(--bg); padding: 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; }
.address-card .label { font-weight: 600; font-size: 13px; }
.address-card .addr { font-size: 12px; color: var(--text-dim); }
.address-card .default-badge { background: var(--primary); color: #000; padding: 2px 8px; border-radius: 10px; font-size: 10px; }
.address-card .delete-btn { background: none; border: none; color: var(--danger); cursor: pointer; }
.add-address-btn, .add-review-btn { width: 100%; padding: 12px; background: var(--bg); border: 1px dashed var(--border); color: var(--text); border-radius: 10px; cursor: pointer; margin-top: 10px; }
.notif-card { background: var(--bg); padding: 12px; border-radius: 10px; }
.notif-card.unread { border-left: 3px solid var(--primary); }
.notif-title { font-weight: 600; font-size: 13px; }
.notif-msg { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.notif-date { font-size: 10px; color: var(--text-dim); margin-top: 6px; }
.empty-state { text-align: center; padding: 30px; color: var(--text-dim); }

/* Favorites Modal */
.favs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* Review Modal */
.review-content { text-align: center; }
.rating-picker { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.rating-picker .star { font-size: 36px; color: var(--text-dim); cursor: pointer; transition: all 0.2s; }
.rating-picker .star.active { color: var(--warning); transform: scale(1.2); }
#review-comment { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); resize: none; height: 80px; margin-bottom: 15px; }
.photo-upload { margin-bottom: 15px; }
.photo-upload label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; cursor: pointer; }
.photo-upload input { display: none; }
#photo-preview img { max-width: 100px; margin-top: 10px; border-radius: 8px; }
.submit-review-btn { width: 100%; padding: 15px; background: var(--primary); color: #000; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; }

/* Address Modal */
#address-modal input, #address-modal textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); margin-bottom: 10px; }
#address-modal textarea { resize: none; height: 80px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 14px; }
.save-addr-btn { width: 100%; padding: 12px; background: var(--primary); color: #000; border: none; border-radius: 10px; cursor: pointer; }

/* Admin Styles */
.admin-content { max-height: 85vh; overflow-y: auto; padding-bottom: 20px; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding: 5px 0; scrollbar-width: none; flex-wrap: nowrap; }
.admin-tabs::-webkit-scrollbar { display: none; }
.adm-tab { min-width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; transition: all 0.2s; }
.adm-tab:hover { background: var(--card-hover); border-color: var(--primary); }
.adm-tab.active { background: var(--primary); color: #000; border-color: var(--primary); }
.adm-content { min-height: 250px; padding: 5px; }
.adm-content h4 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.add-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #000; border: none; border-radius: 12px; cursor: pointer; margin-bottom: 15px; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.add-btn:active { transform: scale(0.98); }
.admin-list { display: flex; flex-direction: column; gap: 10px; max-height: 350px; overflow-y: auto; padding-right: 5px; }
.admin-list::-webkit-scrollbar { width: 4px; }
.admin-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.admin-item { background: var(--bg); padding: 14px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); transition: all 0.2s; cursor: pointer; }
.admin-item:hover { border-color: var(--primary); background: var(--card-hover); }
.admin-item-info { flex: 1; min-width: 0; padding-right: 10px; }
.admin-item-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-item-actions button { background: var(--card); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; padding: 8px 10px; border-radius: 8px; transition: all 0.2s; }
.admin-item-actions button:hover { color: var(--text); background: var(--card-hover); border-color: var(--primary); }
.admin-item-actions .delete { color: var(--danger); }
.admin-item-actions .delete:hover { background: rgba(239,68,68,0.1); border-color: var(--danger); }

/* Form Modal */
.form-content { padding: 20px; }
.form-content h2 { margin-bottom: 20px; font-size: 18px; }
.form-content input, .form-content textarea, .form-content select { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; color: var(--text); margin-bottom: 12px; font-size: 14px; transition: border-color 0.2s; }
.form-content input:focus, .form-content textarea:focus, .form-content select:focus { outline: none; border-color: var(--primary); }
.form-content textarea { resize: none; min-height: 80px; }
.form-content select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; cursor: pointer; }
.form-content label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.media-upload { margin-bottom: 12px; }
.media-upload input[type="file"] { padding: 12px; background: var(--bg); border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; }
.media-upload input[type="file"]:hover { border-color: var(--primary); }
.media-preview { margin-top: 12px; text-align: center; }
.media-preview img, .media-preview video { max-width: 100%; max-height: 180px; border-radius: 12px; border: 1px solid var(--border); }
.variants-editor { background: var(--bg); padding: 15px; border-radius: 12px; margin-bottom: 12px; }
.variants-editor h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
#pf-variants { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.var-row { display: flex; gap: 8px; align-items: center; }
.var-row input { flex: 1; margin-bottom: 0; }
.var-row button { background: var(--danger); color: #fff; border: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; flex-shrink: 0; transition: opacity 0.2s; }
.var-row button:hover { opacity: 0.8; }
.add-var-btn { background: var(--card); border: 2px dashed var(--border); color: var(--text-dim); padding: 12px; border-radius: 10px; cursor: pointer; width: 100%; transition: all 0.2s; }
.add-var-btn:hover { border-color: var(--primary); color: var(--primary); }
.save-product-btn, .save-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #000; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px; margin-top: 10px; transition: transform 0.2s; }
.save-product-btn:active, .save-btn:active { transform: scale(0.98); }

/* Broadcast Tab */
#adm-broadcast { padding: 10px 0; }
#adm-broadcast h4 { margin-bottom: 15px; }
#adm-broadcast select { margin-bottom: 12px; }
#adm-broadcast textarea { min-height: 100px; margin-bottom: 15px; }
.broadcast-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #000; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Config Tab */
#adm-config { padding: 10px 0; }
.config-form { display: flex; flex-direction: column; gap: 5px; }
.config-form label { display: block; font-size: 13px; color: var(--text-dim); margin-top: 10px; margin-bottom: 6px; }
.config-form input, .config-form textarea { margin-bottom: 5px; width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; color: var(--text); font-size: 14px; }
.config-form input:focus, .config-form textarea:focus { outline: none; border-color: var(--primary); }
.config-form textarea { resize: none; min-height: 80px; }
.save-config-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #000; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; margin-top: 20px; }

/* All Admin Tab Content */
.adm-content input, .adm-content textarea, .adm-content select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
}
.adm-content input:focus, .adm-content textarea:focus, .adm-content select:focus {
  outline: none;
  border-color: var(--primary);
}
.adm-content textarea { resize: none; min-height: 80px; }
.adm-content select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  cursor: pointer;
}
.adm-content label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }

/* Sortable Categories List */
.sortable-list { display: flex; flex-direction: column; gap: 8px; }
.sortable-item { display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: grab; transition: all 0.2s; }
.sortable-item:active { cursor: grabbing; }
.sortable-item.dragging { opacity: 0.5; border-color: var(--primary); }
.sortable-item .handle { color: var(--text-dim); font-size: 14px; }
.sortable-item .cat-name { flex: 1; font-weight: 500; }
.sortable-item .cat-emoji { font-size: 20px; }
.sortable-item:hover { border-color: var(--primary); background: var(--card-hover); }

/* Contacts List */
.contacts-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.contact-item i { font-size: 18px; width: 24px; text-align: center; }
.contact-item .contact-info { flex: 1; }
.contact-item .contact-label { font-weight: 500; font-size: 13px; }
.contact-item .contact-value { font-size: 11px; color: var(--text-dim); }
.contact-item .delete-contact { background: none; border: none; color: var(--danger); cursor: pointer; padding: 5px; }
.add-contact-form { display: flex; gap: 8px; flex-wrap: wrap; }
.add-contact-form select { flex: 1; min-width: 100px; }
.add-contact-form input { flex: 2; min-width: 120px; }
.add-contact-btn { background: var(--primary); color: #000; border: none; border-radius: 10px; padding: 12px 15px; cursor: pointer; }
.contact-item i.fa-telegram { color: #0088cc; }
.contact-item i.fa-whatsapp { color: #25d366; }
.contact-item i.fa-signal-messenger { color: #3a76f0; }
.contact-item i.fa-instagram { color: #e4405f; }
.contact-item i.fa-snapchat { color: #fffc00; }
.contact-item i.fa-envelope { color: var(--primary); }
.contact-item i.fa-phone { color: var(--primary); }

/* User/Order Detail */
.user-detail-info, #order-detail-info { background: var(--bg); padding: 15px; border-radius: 12px; margin-bottom: 15px; font-size: 13px; line-height: 1.8; }
.user-detail-info p, #order-detail-info p { margin-bottom: 4px; }
.user-detail-info b, #order-detail-info b { color: var(--primary); }
.user-actions { display: flex; flex-direction: column; gap: 10px; }
.user-actions textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); resize: none; min-height: 70px; font-size: 14px; }
.user-actions textarea:focus { outline: none; border-color: var(--primary); }
.user-actions > button { background: var(--primary); color: #000; border: none; padding: 12px 18px; border-radius: 10px; cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; width: fit-content; }
.user-actions h4 { font-size: 14px; margin-top: 10px; color: var(--text); }
.points-edit { display: flex; gap: 10px; align-items: center; }
.points-edit input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); font-size: 14px; }
.points-edit button { background: var(--warning); color: #000; border: none; padding: 12px 15px; border-radius: 10px; cursor: pointer; }
.block-btn { background: var(--danger) !important; color: #fff !important; width: 100% !important; justify-content: center !important; }
.block-btn.unblock { background: var(--success) !important; color: #000 !important; }
.order-status-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.status-btn { flex: 1; min-width: 130px; padding: 12px 15px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; }
.status-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--card-hover); }
.status-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.status-btn.success { background: var(--primary); color: #000; border-color: var(--primary); }
.status-btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* Fee Section */
.fee-section { margin-bottom: 15px; }
.fee-section h4 { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.fee-btns { display: flex; gap: 10px; margin-bottom: 10px; }
.fee-btns button { flex: 1; padding: 12px; background: var(--warning); color: #000; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; transition: opacity 0.2s; }
.fee-btns button:hover { opacity: 0.9; }
.fee-custom { display: flex; gap: 10px; }
.fee-custom input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); }
.fee-custom button { background: var(--primary); color: #000; border: none; border-radius: 10px; padding: 12px 20px; cursor: pointer; font-weight: 600; }

/* Story Viewer */
.story-viewer { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; z-index: 2000; }
.story-viewer.active { display: block; }
.story-progress { position: absolute; top: 10px; left: 10px; right: 10px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; z-index: 10; }
.story-progress .fill { height: 100%; background: #fff; border-radius: 2px; transition: width 0.1s linear; }
.story-content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.story-content img, .story-content video { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-title { position: absolute; bottom: 50px; left: 20px; right: 20px; text-align: center; font-size: 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.story-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; }

/* Loading & Toast */
.loading { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 3000; justify-content: center; align-items: center; }
.loading.active { display: flex; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--card); padding: 12px 24px; border-radius: 25px; font-size: 14px; opacity: 0; transition: opacity 0.3s; z-index: 4000; }
.toast.active { opacity: 1; }

/* Categories Manager */
.categories-manager { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cat-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; touch-action: none; }
.cat-item.dragging { opacity: 0.5; border-color: var(--primary); background: var(--card); }
.cat-item .cat-grip { color: var(--text-dim); cursor: grab; padding: 10px; margin: -10px; font-size: 18px; touch-action: none; }
.cat-item .cat-emoji { font-size: 20px; width: 30px; text-align: center; }
.cat-item .cat-name { flex: 1; font-weight: 500; }
.cat-item .cat-actions { display: flex; gap: 5px; }
.cat-item .cat-actions button { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 8px; font-size: 14px; }
.cat-item .cat-actions button:hover { color: var(--text); }
.cat-item .cat-actions button.delete:hover { color: var(--danger); }
.add-category-form { display: flex; gap: 8px; }
.add-category-form input { flex: 1; }
.add-cat-btn { background: var(--primary); color: #000; border: none; border-radius: 10px; padding: 12px 15px; cursor: pointer; }
.cat-edit-input { background: var(--card); border: 1px solid var(--primary); border-radius: 6px; padding: 5px 8px; color: var(--text); font-size: 14px; }
