:root {
  --primary-color: #008CFF;
  --primary-dark: #006BFF;
  --secondary-color: #39B6FF;
  --accent-color: #80D4FF;
  --background-dark: #07111f;
  --background-darker: #030812;
}
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(135deg, #07111f 0%, #0a1830 50%, #07111f 100%) !important;
  color: #eaf4ff;
}
.magical-bg {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,140,255,.17), transparent 52%),
    radial-gradient(ellipse at 80% 70%, rgba(0,85,255,.13), transparent 50%),
    linear-gradient(135deg, #07111f, #0a1830) !important;
}
.glass-card, .feature-card {
  background: rgba(0,140,255,.045) !important;
  border-color: rgba(40,155,255,.24) !important;
  box-shadow: 0 8px 32px rgba(0,80,180,.13) !important;
}
.btn-primary {
  background: linear-gradient(135deg, #008CFF, #006BFF) !important;
  border: 1px solid rgba(90,180,255,.4) !important;
  box-shadow: 0 10px 40px rgba(0,115,255,.35) !important;
  color: #fff !important;
}
.btn-primary:hover, .feature-card:hover {
  border-color: rgba(60,170,255,.7) !important;
  box-shadow: 0 15px 48px rgba(0,115,255,.35) !important;
}
.glow-text { text-shadow: 0 0 24px rgba(0,140,255,.7), 0 0 52px rgba(0,100,255,.4) !important; }
.animated-logo { filter: drop-shadow(0 0 28px rgba(0,140,255,.75)) !important; }

/* DRIP SHOP v7 — tienda, catálogo y paneles contextuales */
:root {
  --ds-panel: rgba(8, 22, 42, .92);
  --ds-line: rgba(108, 184, 255, .17);
  --ds-muted: #91a6bf;
}
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #39b6ff; outline-offset: 3px;
}
.nav-glass {
  background: rgba(3, 10, 22, .88) !important;
  border-bottom: 1px solid rgba(85, 173, 255, .17);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, .26);
}
.nav-link { color: #b7c8dc; transition: color .18s ease, text-shadow .18s ease; }
.nav-link:hover { color: #fff; text-shadow: 0 0 18px rgba(0, 140, 255, .6); }
.profile-trigger {
  display: inline-flex; align-items: center; gap: .65rem; padding: .38rem .7rem .38rem .4rem;
  color: #eaf4ff; font-size: .875rem; font-weight: 700; border-radius: 999px;
  border: 1px solid rgba(93, 177, 255, .25); background: rgba(12, 32, 58, .75);
}
.profile-trigger:hover { border-color: rgba(70, 174, 255, .65); background: rgba(15, 48, 83, .9); }
.profile-menu, .action-menu, .role-picker, .search-results {
  position: absolute; min-width: 220px; padding: .45rem; border: 1px solid var(--ds-line);
  border-radius: 16px; background: rgba(5, 16, 32, .98); backdrop-filter: blur(20px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .55); animation: ds-pop .14s ease-out;
}
.profile-menu { top: calc(100% + .7rem); right: 0; width: 260px; }
.profile-menu-item, .action-menu button, .role-picker button {
  width: 100%; display: flex; align-items: center; gap: .7rem; padding: .72rem .8rem;
  border-radius: 10px; text-align: left; font-size: .875rem; color: #cfdef0; transition: background .15s ease, color .15s ease;
}
.profile-menu-item:hover, .action-menu button:hover, .role-picker button:hover,
.role-picker button.selected { background: rgba(0, 140, 255, .14); color: #fff; }
.profile-menu-item i, .action-menu button i, .role-picker button i { width: 1.1rem; text-align: center; color: #6bc3ff; }
.profile-menu-item.danger, .action-menu button.danger { color: #ff9caa; }
.profile-menu-item.danger i, .action-menu button.danger i { color: #ff7185; }
.section-kicker { color: #68c3ff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .17em; }
.section-heading { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; letter-spacing: -.04em; color: #f4f9ff; }
.product-card, .admin-product-card, .user-admin-card, .buyer-card, .review-card {
  border: 1px solid var(--ds-line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(155deg, rgba(17, 42, 72, .75), rgba(5, 16, 31, .94));
  box-shadow: 0 12px 42px rgba(0, 0, 0, .19); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover, .admin-product-card:hover, .buyer-card:hover, .review-card:hover {
  transform: translateY(-3px); border-color: rgba(75, 174, 255, .44); box-shadow: 0 20px 55px rgba(0, 94, 190, .17);
}
.product-category { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #9cd9ff; background: rgba(0, 140, 255, .16); border: 1px solid rgba(83, 177, 255, .22); }
.product-description { color: #9fb1c7; font-size: .875rem; line-height: 1.65; }
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 42px;
  padding: .7rem 1.1rem; border-radius: 12px; font-size: .875rem; line-height: 1.1; font-weight: 800;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}
.btn-primary:hover, .btn-outline:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-outline { color: #cfe5fb; border: 1px solid rgba(112, 178, 236, .25); background: rgba(255, 255, 255, .035); }
.btn-outline:hover { border-color: rgba(80, 175, 255, .55); background: rgba(0, 140, 255, .11); }
.catalog-hero { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 26px; border: 1px solid rgba(70, 160, 255, .21); background: radial-gradient(ellipse at 88% 20%, rgba(0, 140, 255, .22), transparent 43%), linear-gradient(135deg, rgba(13, 37, 67, .92), rgba(4, 15, 29, .98)); }
.catalog-toolbar { display: grid; gap: 1rem; padding: 1.15rem; border-radius: 18px; border: 1px solid var(--ds-line); background: rgba(5, 17, 33, .76); }
.catalog-search { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .78rem .95rem; border: 1px solid rgba(108, 184, 255, .2); border-radius: 13px; background: rgba(2, 11, 23, .7); }
.catalog-search:focus-within { border-color: rgba(72, 176, 255, .62); box-shadow: 0 0 0 3px rgba(0, 140, 255, .1); }
.catalog-search input { flex: 1; min-width: 0; background: transparent; outline: none; color: #eef7ff; font-size: .9rem; }
.catalog-search input::placeholder, .modern-input::placeholder { color: #6f839c; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; padding: .55rem .8rem; border-radius: 999px; border: 1px solid rgba(121, 169, 215, .19); background: rgba(255, 255, 255, .035); color: #9eb1c8; font-size: .76rem; font-weight: 750; transition: all .16s ease; }
.filter-chip:hover { color: #fff; border-color: rgba(73, 172, 255, .45); }
.filter-chip.active { color: #eaf7ff; border-color: rgba(65, 175, 255, .65); background: rgba(0, 140, 255, .19); box-shadow: inset 0 0 18px rgba(0, 140, 255, .09); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; padding: 2rem; border: 1px dashed rgba(120, 177, 229, .24); border-radius: 20px; color: #8399b2; text-align: center; background: rgba(255, 255, 255, .018); }
.buyer-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.buyer-card-first { border-color: rgba(89, 186, 255, .5); background: linear-gradient(135deg, rgba(0, 140, 255, .17), rgba(5, 16, 31, .94)); }
.buyer-rank { display: grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; color: #9fdcff; font-weight: 900; background: rgba(0, 140, 255, .13); }
.review-card { padding: 1.2rem; }
.admin-form-card { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid rgba(92, 177, 255, .24); border-radius: 20px; background: rgba(6, 20, 38, .88); box-shadow: 0 18px 55px rgba(0,0,0,.24); }
.field-label { display: flex; flex-direction: column; gap: .5rem; color: #c7d8eb; font-size: .82rem; font-weight: 750; }
.modern-input { width: 100%; min-height: 44px; padding: .72rem .85rem; border: 1px solid rgba(113, 177, 235, .22); border-radius: 11px; outline: none; color: #edf7ff; background: rgba(2, 11, 23, .75); font-size: .88rem; font-weight: 500; }
.modern-input:focus { border-color: #269fff; box-shadow: 0 0 0 3px rgba(0, 140, 255, .1); }
.upload-zone { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .45rem; min-height: 130px; padding: 1.2rem; border: 1px dashed rgba(83, 175, 255, .38); border-radius: 15px; text-align: center; background: rgba(0, 140, 255, .055); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.upload-zone:hover { border-color: rgba(82, 195, 255, .75); background: rgba(0, 140, 255, .11); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.admin-product-card { position: relative; }
.admin-product-card .menu-trigger { position: relative; z-index: 41; }
.hidden-pill { position: absolute; bottom: .7rem; left: .7rem; padding: .35rem .6rem; border-radius: 999px; color: #ffd2a2; background: rgba(112, 61, 12, .86); border: 1px solid rgba(255, 185, 101, .3); font-size: .68rem; font-weight: 800; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid rgba(110, 175, 232, .2); border-radius: 11px; color: #b9d7f1; background: rgba(10, 30, 53, .86); transition: all .16s ease; }
.icon-button:hover { color: #fff; border-color: rgba(86, 183, 255, .55); background: rgba(0, 130, 255, .2); }
.action-menu { top: calc(100% + .4rem); right: 0; z-index: 45; min-width: 185px; }
.mini-modal { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid rgba(95, 177, 255, .28); border-radius: 22px; background: linear-gradient(155deg, rgba(10, 29, 53, .99), rgba(3, 12, 24, .99)); box-shadow: 0 28px 90px rgba(0, 0, 0, .7); }
.modal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #8ed4ff; background: rgba(0, 140, 255, .14); font-size: 1.25rem; }
.toast-panel { max-width: min(420px, calc(100vw - 2rem)); padding: 1rem 1.15rem; border-radius: 15px; border: 1px solid rgba(95, 177, 255, .27); background: rgba(4, 17, 32, .97); box-shadow: 0 18px 55px rgba(0, 0, 0, .5); }
.user-admin-card { padding: 1rem; overflow: visible; }
.user-admin-card:hover { border-color: rgba(75, 174, 255, .38); }
.role-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: 999px; border: 1px solid rgba(128, 158, 190, .22); font-size: .68rem; font-weight: 800; }
.role-slate { color: #cbd5e1; background: rgba(148,163,184,.1); }
.role-violet, .role-fuchsia { color: #e1c4ff; background: rgba(168,85,247,.13); border-color: rgba(168,85,247,.27); }
.role-blue { color: #a9d7ff; background: rgba(14,165,233,.13); border-color: rgba(14,165,233,.27); }
.role-amber { color: #ffdaa0; background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.27); }
.role-red { color: #ffb4c0; background: rgba(239,68,68,.13); border-color: rgba(239,68,68,.27); }
.role-picker { position: relative; width: 100%; margin-top: .5rem; }
.search-results { position: relative; width: 100%; margin-top: .5rem; max-height: 220px; overflow-y: auto; }
.search-results button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .65rem; text-align: left; border-radius: 10px; color: #d4e3f5; }
.search-results button:hover { background: rgba(0,140,255,.13); }
.search-results img { width: 2rem; height: 2rem; border-radius: 50%; }
.search-results small { display: block; color: #7188a2; font-size: .68rem; }
.dashboard-tab { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem .95rem; border-radius: 11px; color: #91a8c1; font-weight: 800; border: 1px solid transparent; }
.dashboard-tab.active { color: #dff3ff; border-color: rgba(75, 174, 255, .3); background: rgba(0, 140, 255, .13); }
@keyframes ds-pop { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 640px) {
  .catalog-hero { border-radius: 18px; }
  .catalog-toolbar { padding: .85rem; }
  .profile-menu { right: 0; width: min(260px, calc(100vw - 1.5rem)); }
  .buyer-card, .user-admin-card { border-radius: 16px; }
}

.modern-select-wrap { position: relative; width: 100%; }
.modern-select-trigger { display:flex;align-items:center;justify-content:space-between;gap:.8rem;width:100%;min-height:46px;padding:.75rem .9rem;border:1px solid rgba(113,177,235,.22);border-radius:12px;background:rgba(2,11,23,.82);color:#eaf4ff;text-align:left;font-size:.88rem; }
.modern-select-trigger:hover,.modern-select-trigger.open { border-color:rgba(62,172,255,.63);box-shadow:0 0 0 3px rgba(0,140,255,.08); }
.modern-select-menu { position:absolute;left:0;right:0;top:calc(100% + .45rem);padding:.45rem;border:1px solid var(--ds-line);border-radius:15px;background:rgba(4,16,31,.99);box-shadow:0 20px 65px rgba(0,0,0,.58); }
.modern-select-option { display:flex;align-items:center;justify-content:space-between;gap:.8rem;width:100%;padding:.72rem .8rem;border-radius:10px;color:#bdcfe3;text-align:left;font-size:.85rem; }
.modern-select-option:hover,.modern-select-option.selected { background:rgba(0,140,255,.15);color:#fff; }
.modern-select-search { display:flex;align-items:center;gap:.6rem;padding:.6rem .7rem;margin-bottom:.35rem;border:1px solid rgba(113,177,235,.2);border-radius:10px;color:#78c9ff; }
.modern-select-search input { flex:1;min-width:0;background:transparent;outline:0;color:#fff;font-size:.85rem; }
.drip-toast-stack { position:fixed;right:1rem;bottom:1rem;z-index:9999;display:grid;gap:.6rem;width:min(410px,calc(100vw - 2rem)); }
.drip-toast { display:flex;align-items:flex-start;gap:.8rem;padding:.95rem 1rem;border:1px solid rgba(97,177,255,.28);border-radius:15px;background:rgba(4,17,33,.98);color:#e8f4ff;box-shadow:0 16px 50px rgba(0,0,0,.48);animation:ds-pop .16s ease-out; }
.drip-toast>i { margin-top:.15rem;color:#7bcaff;font-size:1.15rem; }
.drip-toast strong { font-size:.88rem; }
.drip-toast p { margin-top:.2rem;color:#a3b6cb;font-size:.8rem;line-height:1.45; }
.drip-toast-close { margin-left:auto;color:#8ba0b8;font-size:1.25rem;line-height:1; }
.drip-toast-success>i { color:#5ee0a1; }.drip-toast-danger>i { color:#ff8899; }
.drip-toast-out { opacity:0;transform:translateY(8px);transition:all .2s ease; }
.drip-dialog-backdrop { position:fixed;inset:0;z-index:9998;display:grid;place-items:center;padding:1rem;background:rgba(1,7,16,.82);backdrop-filter:blur(12px); }
.drip-dialog { width:min(430px,100%);padding:1.35rem;border:1px solid rgba(105,181,255,.3);border-radius:21px;background:linear-gradient(150deg,#0c2340,#030c19);box-shadow:0 30px 95px rgba(0,0,0,.66); }
.drip-dialog-icon { display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(0,140,255,.13);color:#8bd2ff;font-size:1.2rem; }
.drip-dialog h3 { margin-top:1rem;color:#f0f7ff;font-size:1.2rem;font-weight:900; }
.drip-dialog p { margin-top:.55rem;color:#9cb0c7;font-size:.88rem;line-height:1.6; }
.drip-dialog-actions { display:flex;gap:.65rem;margin-top:1.3rem; }
.drip-dialog-actions>* { flex:1; }
.drip-danger-button { background:linear-gradient(135deg,#e4475d,#a91f39)!important;border-color:rgba(255,145,164,.4)!important; }
.drip-rich-text { color:#b7c7da;font-size:.9rem;line-height:1.75;overflow-wrap:anywhere; }
.drip-rich-text p { margin:.2rem 0; }
.drip-rich-list-item { display:flex;align-items:flex-start;gap:.55rem;margin:.2rem 0; }
.drip-rich-list-item i { flex:0 0 auto;margin-top:.38rem;font-size:.82rem; }
.rich-toolbar { display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.55rem; }
.rich-toolbar button { display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .7rem;border:1px solid rgba(115,177,230,.2);border-radius:9px;background:rgba(255,255,255,.035);color:#bcd5ec;font-size:.75rem;font-weight:800; }
.rich-toolbar button:hover { color:#fff;background:rgba(0,140,255,.14);border-color:rgba(80,175,255,.45); }
.mini-modal { position:relative; }
