:root{
  --bg-main: #0f0f10;
  --bg-secondary: #161616;
  --card-bg: rgba(24, 24, 24, 0.88);
  --card-border: rgba(255, 70, 70, 0.12);

  --red-primary: #ff3b3b;
  --red-secondary: #d62828;
  --red-soft: #ff6b6b;

  --text-main: #f5f5f5;
  --text-soft: #b8b8b8;
  --text-dim: #7d7d7d;

  --shadow-red: 0 0 25px rgba(255, 59, 59, 0.18);
  --shadow-soft: 0 0 18px rgba(0,0,0,0.45);

  --blur: blur(12px);
}

*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
-webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
  radial-gradient(circle at top,
  rgba(120,0,0,0.25),
  transparent 30%),
  linear-gradient(180deg,#0b0b0b,#111111 60%,#0d0d0d);
}

.container {
width: 100%;
padding: 0px; 
}

.login-wrapper {
padding: 20px;
min-height: 100svh;
display: flex;
align-items: center;
justify-content: center;
}

#login-card {
width: 100%;
max-width: 380px;
margin: auto;
padding: 30px 22px;
border-radius: 20px;
background: var(--card-bg);
border: 1px solid var(--card-border);
backdrop-filter: var(--blur);
box-shadow: var(--shadow-red), var(--shadow-soft);
text-align: center;
animation: pop 0.8s ease;
}

@keyframes pop {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

#login-card h1 {
color: var(--text-main);
font-size: 22px;
margin-bottom: 6px;
}

#login-card p {
/*color: #cbb6ff;*/
color: #ff8e8e;
font-size: 13px;
margin-bottom: 25px;
}

.input-box {
position: relative;
margin-bottom: 18px;
}

.input-box i {
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
color: var(--red-soft);
font-size: 16px;
}

.input-box input {
width: 100%;
height: 52px;
padding: 0 14px 0 44px;
border-radius: 14px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,70,70,0.15);
color: var(--text-main);
font-size: 15px;
outline: none;
}

.input-box input::placeholder {
color: var(--text-dim);
}

.input-box input:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 12px rgba(255,59,59,0.28);
  background: rgba(255,255,255,0.04);
}

.input-box.input-disabled input {
  background: rgba(255, 59, 59, 0.04);
  border: 1px solid rgba(255, 70, 70, 0.12);
  color: rgba(255, 220, 220, 0.78);
  cursor: not-allowed;
  box-shadow: none;
}

.input-box.input-disabled input:focus {
  border-color: rgba(255, 70, 70, 0.12);
  box-shadow: none;
  background: rgba(255, 59, 59, 0.04);
}

.input-box.input-disabled i {
  color: rgba(255, 120, 120, 0.45);
}

.input-box.input-disabled input::placeholder {
  color: rgba(255, 180, 180, 0.32);
}

button {
width: 100%;
padding: 14px;
border-radius: 16px;
color: white;
font-weight: 700;
letter-spacing: 1px;
font-size: 14px;
transition: 0.3s;
margin-top: 5px;
background: linear-gradient(135deg, #8b0000, #ff3b3b);
box-shadow: 0 0 18px rgba(255,59,59,0.25);
border: 1px solid rgba(255,255,255,0.04);
}

button:hover {
  filter: brightness(1.08);
}

button:active {
  transform: scale(0.97);
}

.footer {
display: block;
margin-top: 14px;
font-size: 12px;
color: var(--text-soft);
}

#app-header {
position: sticky;
top: 0;
left: 0;
width: 100%;
height: 56px;
background: rgba(20,20,20,0.92);
backdrop-filter: blur(12px);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
color: #fff;
z-index: 1000;
backdrop-filter: blur(10px);
background: rgba(12,12,12,0.92);
border-bottom: 1px solid rgba(255,60,60,0.15);
box-shadow: 0 2px 18px rgba(0,0,0,0.5);
flex-shrink: 0;
}

#app-header i {
font-size: 22px;
color: var(--red-soft);
}

/* =========================
   PREMIUM HEADER
========================= */

#seller_app_header {

    position: sticky;
    top: 0;

    width: 100%;
    height: 72px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 999996;

    backdrop-filter: blur(18px);

    background:
      linear-gradient(
        180deg,
        rgba(18,18,18,0.96),
        rgba(10,10,10,0.94)
      );

    border-bottom: 1px solid rgba(255,70,70,0.10);

    box-shadow:
      0 4px 25px rgba(0,0,0,0.45);

    overflow: hidden;
}

/* TOP GLOW */

#seller_app_header::before {

    content: "";

    position: absolute;

    top: 0;
    left: -40%;

    width: 40%;
    height: 2px;

    background:
      linear-gradient(
        90deg,
        transparent,
        #ff3b3b,
        transparent
      );

    animation: headerGlow 3s linear infinite;
}

@keyframes headerGlow {

    100% {
        left: 100%;
    }
}

/* LEFT */

.header-left {

    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}

/* RIGHT */

.header-right {

    display: flex;
    align-items: center;
    gap: 12px;
}

/* ICON BUTTONS */

.header-icon-btn,
.header-profile-btn {

    width: 46px;
    height: 46px;

    border: none;
    outline: none;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
      rgba(255,255,255,0.04);

    border: 1px solid rgba(255,70,70,0.10);

    box-shadow:
      inset 0 0 12px rgba(255,255,255,0.02),
      0 0 12px rgba(255,59,59,0.06);

    transition: 0.22s ease;
}

.header-icon-btn:active,
.header-profile-btn:active {

    transform: scale(0.94);
}

.header-icon-btn i,
.header-profile-btn i {

    font-size: 18px;
    color: var(--red-soft);
}

/* TEXT */

.seller-info {

    display: flex;
    flex-direction: column;

    line-height: 1.15;

    min-width: 0;
}

.welcome-label {

    font-size: 12px;

    color: #ff9c9c;
    margin: 0px;
    padding: 0px;

    letter-spacing: 0.4px;
}

.seller-name {

    margin-top: 0px;
    margin-bottom: 8px;

    font-size: 17px;
    font-weight: 700;

    color: #fff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 140px;
}

/* ONLINE BADGE */

.online-badge {

    height: 34px;

    padding: 0 14px;

    border-radius: 999px;

    display: flex;
    align-items: center;
    gap: 8px;

    background:
      rgba(34,197,94,0.10);

    border: 1px solid rgba(34,197,94,0.18);

    color: #86efac;

    font-size: 12px;
    font-weight: 600;
}

/* DOT */

.online-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow:
      0 0 10px #4ade80;
}

.drawer {
position: fixed;
top: 0;
left: -260px;
width: 260px;
height: 100%;
backdrop-filter: blur(16px);
box-shadow: 4px 0 20px rgba(0,0,0,0.6);
z-index: 999998;
background: rgba(15,15,15,0.96);
border-right: 1px solid rgba(255,60,60,0.12);
transition: 0.3s ease;
}

.drawer.open {
left: 0;
}

.drawer-header {
height: 56px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
color: #fff;
font-weight: 600;
border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.drawer-menu {
list-style: none;
padding: 10px 0;
}

.drawer-menu li {
padding: 14px 20px;
color: var(--text-soft);
border-left: 2px solid transparent;
display: flex;
align-items: center;
gap: 14px;
font-size: 14px;
}

.drawer-menu li:hover {
  background: rgba(255,59,59,0.08);
  border-left: 2px solid var(--red-primary);
  color: white;
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1050;
opacity: 0;
visibility: hidden;
transition: 0.3s;
}

.overlay.show {
opacity: 1;
visibility: visible;
}

/*.app-content {*/
/*flex: 1;*/
/*padding: 22px 22px;*/
/*width: 100%;*/
/*overflow-y: auto;*/
/*overflow: visible;*/
/*}*/
/**/
/*.page {*/
/*display: none;*/
/*color: #fff;*/
/*width: 100%;*/
/*height: 100%;*/
/*overflow: visible;*/
/*}*/
/**/
/*.page.active {*/
/*display: block;*/
/*}*/

.app-content {
  flex: 1;
  width: 100%;
  padding: 22px;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
}

.page {
  display: none;
  width: 100%;
  min-height: 100%;
  color: #fff;
  overflow: visible !important;
  position: relative;
}

.page.active {
  display: block;
}

.dash-title {
color: var(--text-main);
margin-bottom: 16px;
font-size: 20px;
font-weight: 600;
}

.dashboard-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* PREMIUM CARD */

.premium-card {
  position: relative;

  overflow: hidden;

  border-radius: 26px;

  padding: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(26,26,26,0.96),
      rgba(12,12,12,0.96)
    );

  border: 1px solid rgba(255,70,70,0.12);

  backdrop-filter: blur(18px);

  box-shadow:
    0 10px 35px rgba(0,0,0,0.45),
    0 0 24px rgba(255,59,59,0.10);

  transition: 0.25s ease;
}

.premium-card:active {
  transform: scale(0.99);
}

/* TOP RED GLOW */

.card-glow {
  position: absolute;

  top: 0;
  left: -30%;

  width: 40%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #ff3b3b,
      transparent
    );

  animation: premiumGlow 3s linear infinite;
}

@keyframes premiumGlow {
  100% {
    left: 100%;
  }
}

/* TOP AREA */

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ICON */

.card-icon {
  width: 58px;
  height: 58px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      rgba(255,59,59,0.18),
      rgba(255,59,59,0.06)
    );

  border: 1px solid rgba(255,70,70,0.14);

  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.03),
    0 0 20px rgba(255,59,59,0.12);
}

.card-icon i {
  font-size: 24px;
  color: #ff5c5c;
}

/* BADGE */

.card-badge {
  height: 32px;

  padding: 0 14px;

  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;

  color: #ffd6d6;

  background: rgba(255,59,59,0.08);

  border: 1px solid rgba(255,70,70,0.12);
}

/* INFO */

.card-info {
  margin-top: 22px;
}

.card-label {
  display: block;

  color: #ff9c9c;

  font-size: 13px;

  margin-bottom: 8px;

  letter-spacing: 0.4px;
}

.card-info h2 {
  color: #fff;

  font-size: 34px;
  font-weight: 700;

  letter-spacing: 1px;
}

/* META */

.card-meta {
  margin-top: 14px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;

  border-radius: 14px;

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.04);

  color: #cfcfcf;

  font-size: 12px;
}

.card-meta i {
  color: #4ade80;
}



/* DIFFERENT ICON COLORS */

.total-icon {
  background:
    linear-gradient(
      135deg,
      rgba(255,59,59,0.18),
      rgba(255,59,59,0.06)
    );
}

.total-icon i {
  color: #ff5c5c;
}

/* ACTIVE */

.active-icon {
  background:
    linear-gradient(
      135deg,
      rgba(34,197,94,0.18),
      rgba(34,197,94,0.06)
    );
}

.active-icon i {
  color: #4ade80;
}

.active-badge {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.18);
  color: #86efac;
}

/* OFFLINE */

.offline-icon {
  background:
    linear-gradient(
      135deg,
      rgba(148,163,184,0.18),
      rgba(148,163,184,0.06)
    );
}

.offline-icon i {
  color: #cbd5e1;
}

.offline-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d1d5db;
}

/* EXPIRED */

.expired-icon {
  background:
    linear-gradient(
      135deg,
      rgba(239,68,68,0.18),
      rgba(239,68,68,0.06)
    );
}

.expired-icon i {
  color: #f87171;
}

.expired-badge {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.18);
  color: #fca5a5;
}


.gen-card {
width: 100%;
max-width: 380px;
margin: auto;
padding: 30px 22px;
border-radius: 20px;
background: var(--card-bg);
border: 1px solid var(--card-border);
backdrop-filter: var(--blur);
box-shadow: var(--shadow-red), var(--shadow-soft);
text-align: center;
position: relative;
z-index: 1;
transition: z-index 0s;
overflow: visible !important;
animation: pop 0.8s ease;
}

.gen-card.high-z {
    z-index: 100000;
}

.gen-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,70,70,0.08);
}

.gen-card-top .left-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,59,59,0.18), rgba(255,59,59,0.06));
    border: 1px solid rgba(255,70,70,0.12);
    color: #ff6b6b;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(255,59,59,0.12);
}

.gen-card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: left;
    margin: 0;
}

.label-input {
display: flex;
align-items: start;
margin-bottom: 5px;
margin-top: 2px;
color: var(--text-soft);
}


.selectable-box {
position: relative;
margin-bottom: 18px;
}

.selectable-box .left-icon {
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
color: var(--red-soft);
font-size: 16px;
pointer-events: none;
}

.selectable-box select {
width: 100%;
height: 52px;
padding: 0 44px 0 44px;
padding: 0 52px 0 44px;
border-radius: 14px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,70,70,0.15);
color: var(--text-main);
font-size: 15px;
outline: none;
appearance: none;
cursor: pointer;
}

.selectable-box select option[value=""] {
color: #ffb0b0;
}

.selectable-box select:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 12px rgba(255,59,59,0.28);
  background: rgba(255,255,255,0.04);
}

.select-arrow {
position: absolute;
top: 50%;
right: 16px;
transform: translateY(-50%);
color: var(--red-soft);
pointer-events: none;
font-size: 14px;
}

.select-arrow > i {
color: var(--red-soft);
font-size: 14px;
}

.selectable-box select:focus + .select-arrow i {
transform: rotate(180deg);
transition: 0.3s ease;
}

.selectable-box select option {
background: #111111;
color: #ffffff;
}

.date-input {
width: 100%;
height: 52px;
padding: 0 52px 0 44px;
border-radius: 14px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,70,70,0.15);
color: var(--text-main);
font-size: 15px;
outline: none;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
}

.date-input:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 12px rgba(255,59,59,0.28);
  background: rgba(255,255,255,0.04);
}

.date-input:focus + .select-arrow i {
transform: rotate(180deg);
transition: 0.3s ease;
}

#toast-container {
  position: fixed;
  top: 40px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999999;
}

.toast {
  min-width: 260px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 14px;
  backdrop-filter: blur(14px);
  background: rgba(18,18,18,0.94);
  border: 1px solid rgba(255,70,70,0.12);
  box-shadow: 0 0 22px rgba(255,59,59,0.18);
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  animation: toastIn 0.4s ease forwards;
  position: relative;
  overflow: hidden;
}

.toast i {
  font-size: 20px;
}

.toast-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-content p {
  font-size: 12px;
  color: #e9d5ff;
}

.toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.3);
  animation: toastProgress 3s linear forwards;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error,
.toast.failed { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }

.toast.success i { color: #22c55e; }
.toast.error i,
.toast.failed i { color: #ef4444; }
.toast.warning i { color: #f59e0b; }

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
  }
}

@keyframes toastProgress {
  to {
    width: 0%;
  }
}



.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}

.confirm-dialog {
  color: #fff;
  padding: 24px 20px;
  border-radius: 20px;
  width: 320px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-red), var(--shadow-soft);
  transform: translateY(-20px);
  animation: slideIn 0.25s ease forwards;
  font-family: 'Montserrat', sans-serif;
}

.confirm-dialog h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.confirm-dialog p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--text-soft);
}

.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.confirm-buttons button {
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
  min-width: 80px;
}

.confirm-buttons .cancel-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,70,70,0.10);
  color: #ffb4b4;
  box-shadow: 0 0 14px rgba(255,59,59,0.08), inset 0 0 10px rgba(255,255,255,0.015);
  backdrop-filter: blur(10px);
}

.confirm-buttons .cancel-btn:hover {
  background: rgba(255,59,59,0.08);
  border-color: rgba(255,70,70,0.22);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255,59,59,0.16);
}

.confirm-buttons .cancel-btn:active {
  transform: scale(0.96);
  background: rgba(255,59,59,0.12);
}

.confirm-buttons .ok-btn {
  background: linear-gradient(135deg, #8b0000, #ff3b3b);
  box-shadow: 0 0 18px rgba(255,59,59,0.25);
  border: 1px solid rgba(255,255,255,0.04);
  color: #fff;
}

.confirm-buttons .ok-btn:hover {
  filter: brightness(1.08);
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* MODERN PROCESSING DIALOG */

#processing-overlay {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);

  z-index: 99997;

  opacity: 0;
  visibility: hidden;

  transition: 0.25s ease;
}

#processing-overlay.show {
  opacity: 1;
  visibility: visible;
}

.processing-dialog {
  width: 320px;
  max-width: 90%;

  padding: 28px 24px;

  border-radius: 26px;

  background:
    linear-gradient(
      180deg,
      rgba(26,26,26,0.96),
      rgba(15,15,15,0.96)
    );

  border: 1px solid rgba(255,70,70,0.12);

  box-shadow:
    0 0 35px rgba(255,59,59,0.15),
    0 0 18px rgba(0,0,0,0.5);

  text-align: center;

  overflow: hidden;
  position: relative;

  animation: processingDialogIn 0.35s ease;
}

.processing-dialog::before {
  content: "";

  position: absolute;
  top: 0;
  left: -100%;

  width: 100%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #ff3b3b,
      transparent
    );

  animation: processingGlow 2s linear infinite;
}

.processing-loader {
  width: 82px;
  height: 82px;

  margin: auto;

  position: relative;
}

.processing-loader span {
  position: absolute;

  inset: 0;

  border-radius: 50%;

  border: 3px solid transparent;
}

.processing-loader span:nth-child(1) {
  border-top-color: #ff3b3b;
  animation: spin1 1s linear infinite;
}

.processing-loader span:nth-child(2) {
  inset: 8px;

  border-right-color: #ff6b6b;

  animation: spin2 0.8s linear infinite;
}

.processing-loader span:nth-child(3) {
  inset: 16px;

  border-bottom-color: #ffffff;

  animation: spin1 0.6s linear infinite;
}

#processing-title {
  margin-top: 22px;

  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

#processing-message {
  margin-top: 10px;

  color: #b8b8b8;

  font-size: 13px;
  line-height: 1.5;
}

/*
.processing-bar {
  width: 100%;
  height: 6px;

  margin-top: 22px;

  border-radius: 999px;

  overflow: hidden;

  background: rgba(255,255,255,0.06);
}

.processing-bar-fill {
  width: 40%;
  height: 100%;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #8b0000,
      #ff3b3b,
      #ff6b6b
    );

  animation: processingBar 1.2s ease infinite;
}*/

@keyframes spin1 {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin2 {
  to {
    transform: rotate(-360deg);
  }
}

/*
@keyframes processingBar {

  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}*/

@keyframes processingGlow {

  100% {
    left: 100%;
  }
}

@keyframes processingDialogIn {

  from {
    opacity: 0;
    transform: scale(0.9) translateY(18px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}



.keys-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99998;

  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.keys-dialog-overlay.show {
  opacity: 1;
  visibility: visible;
}

.keys-dialog {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  overflow: hidden;

  background: rgba(18,18,18,0.96);
  border: 1px solid rgba(255,70,70,0.14);

  box-shadow:
    0 0 40px rgba(255,59,59,0.18),
    0 10px 40px rgba(0,0,0,0.55);

  transform: scale(0.92) translateY(20px);
  transition: 0.25s ease;
}

.keys-dialog-overlay.show .keys-dialog {
  transform: scale(1) translateY(0);
}

.keys-dialog-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.keys-dialog-header h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 4px;
}

.keys-dialog-header p {
  color: #ff9c9c;
  font-size: 13px;
}

.keys-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;

  background: rgba(255,255,255,0.04);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.keys-close-btn i {
  font-size: 18px;
}

.generated-keys-container {
  max-height: 420px;
  overflow-y: auto;

  padding: 18px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.generated-key-item {
  padding: 14px 16px;
  border-radius: 16px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);

  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  animation: keyPop 0.25s ease;
}

.generated-key-item i {
  color: #22c55e;
}

.keys-dialog-actions {
  padding: 18px;
  display: flex;
  gap: 14px;
}

.keys-action-btn {
  flex: 1;
  border: none;
  height: 52px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-weight: 700;
  cursor: pointer;

  transition: 0.2s ease;
}

.keys-action-btn:active {
  transform: scale(0.97);
}

.primary-btn {
  background: linear-gradient(135deg, #8b0000, #ff3b3b);
  color: #fff;

  box-shadow: 0 0 18px rgba(255,59,59,0.25);
}

.secondary-btn {
  background: rgba(255,255,255,0.04);
  color: #fff;

  border: 1px solid rgba(255,255,255,0.08);
}

@keyframes keyPop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.keys-tabs {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 18px;

  overflow-x: auto;

  scrollbar-width: none;

  -ms-overflow-style: none;

  padding-bottom: 2px;
  overflow-x: visible;
  overflow-y: visible;
}

.keys-tabs::-webkit-scrollbar {
  display: none;
}

.keys-tab {

  flex: 1;

  min-width: 110px;

  height: 46px;

  border: none;

  border-radius: 16px;

  background:
    rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.05);

  color: var(--text-soft);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.3px;

  transition: 0.22s ease;

  white-space: nowrap;
}

.keys-tab.active {

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #8b0000,
      #ff3b3b
    );

  box-shadow:
    0 0 16px rgba(255,59,59,0.22);
}

.keys-tab:active {
  transform: scale(0.97);
}

.keys-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.key-card {

  position: relative;

  border-radius: 22px;

  padding: 18px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(24,24,24,0.95),
      rgba(14,14,14,0.95)
    );

  border: 1px solid rgba(255,70,70,0.08);

  backdrop-filter: blur(14px);

  box-shadow:
    0 8px 28px rgba(0,0,0,0.45),
    0 0 18px rgba(255,59,59,0.06);

  transition: 0.25s ease;
}

.key-card:active {
  transform: scale(0.99);
}

.key-card::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,59,59,0.6),
      transparent
    );
}

/* TOP */

.key-top {

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 14px;
}

.key-left {
  flex: 1;
}

.key-value {

  color: #fff;

  font-size: 16px;
  font-weight: 700;

  letter-spacing: 0.5px;

  word-break: break-all;

  margin-bottom: 8px;
}

.key-meta {

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.key-pill {

  height: 28px;

  padding: 0 12px;

  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 11px;
  font-weight: 600;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.05);

  color: var(--text-soft);
}

.key-pill i {
  font-size: 11px;
}

/* STATUS */

.key-status {

  min-width: 82px;

  height: 32px;

  padding: 0 14px;

  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.5px;
}

.status-active {

  color: #4ade80;

  background: rgba(74,222,128,0.12);

  border: 1px solid rgba(74,222,128,0.18);
}

.status-offline {

  color: #d1d5db;

  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.05);
}

.status-expired {

  color: #ff8e8e;

  background: rgba(255,59,59,0.10);

  border: 1px solid rgba(255,59,59,0.14);
}

/* INFO ROW */

.key-info {

  margin-top: 18px;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.key-info-row {

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 14px;
}

.key-label {

  color: var(--text-dim);

  font-size: 12px;
}

.key-data {

  color: #fff;

  font-size: 13px;
  font-weight: 600;
}

/* ACTIONS */

.key-actions {

  margin-top: 18px;

  display: flex;

  justify-content: flex-end;

  gap: 10px;
}

.key-action {

  width: 42px;
  height: 42px;

  border-radius: 14px;

  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

.key-action i {
  font-size: 14px;
}

.key-action:active {
  transform: scale(0.92);
}

.action-edit {

  background: rgba(59,130,246,0.14);

  color: #93c5fd;
}

.action-reset {

  background: rgba(245,158,11,0.14);

  color: #facc15;
}

.action-delete {

  background: rgba(255,59,59,0.12);

  color: #ff8e8e;
}

/* EMPTY */

.empty-state {

  padding: 36px 20px;

  border-radius: 22px;

  text-align: center;

  color: var(--text-soft);

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.04);
}






/* =========================
   SELLERS LIST
========================= */

.sellers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seller-card {

  position: relative;

  border-radius: 22px;

  padding: 18px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(24,24,24,0.95),
      rgba(14,14,14,0.95)
    );

  /*border: 1px solid rgba(124,58,237,0.10);*/
  border: 1px solid rgba(255,70,70,0.08);

  backdrop-filter: blur(14px);

  box-shadow:
    0 8px 28px rgba(0,0,0,0.45),
    0 0 18px rgba(255,59,59,0.08);

  transition: 0.25s ease;
}

.seller-card:active {
  transform: scale(0.99);
}

.seller-card::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(155, 70, 70, 0.8),
      transparent
    );
}

/* TOP */

.seller-top {

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 14px;
}

.seller-left {
  flex: 1;
}

.seller-username {

  color: #fff;

  font-size: 16px;
  font-weight: 700;

  letter-spacing: 0.4px;

  margin-bottom: 10px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-username i {
  color: var(--red-primary);
  font-size: 15px;
}

/* PASSWORD */

.seller-password {

  height: 34px;

  padding: 0 14px;

  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.05);

  color: #d4d4d8;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 0.5px;
}

.seller-password i {
  color: var(--red-primary);
  font-size: 12px;
}

/* CREDITS */

.seller-credits {

  min-width: 90px;

  height: 34px;

  padding: 0 16px;

  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  background: rgba(34,197,94,0.12);

  border: 1px solid rgba(34,197,94,0.18);

  color: #4ade80;

  font-size: 12px;
  font-weight: 700;
}

.seller-credits i {
  font-size: 12px;
}

/* INFO */

.seller-info {

  margin-top: 18px;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.seller-info-row {

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.seller-label {

  color: var(--text-dim);

  font-size: 12px;
}

.seller-data {

  color: #fff;

  font-size: 13px;
  font-weight: 600;
}

/* ACTIONS */

.seller-actions {

  margin-top: 18px;

  display: flex;
  justify-content: flex-end;

  gap: 10px;
}

.seller-action {

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

.seller-action i {
  font-size: 14px;
}

.seller-action:active {
  transform: scale(0.92);
}

.seller-edit {

  background: rgba(59,130,246,0.14);

  color: #93c5fd;
}

.seller-delete {

  background: rgba(255,59,59,0.12);

  color: #ff8e8e;
}


.search-select-box {

    position: relative;

    width: 100%;

    margin-bottom: 18px;

    z-index: 5000;

    overflow: visible !important;
}

/* INPUT ICON */

.search-select-box .left-icon {

    position: absolute;

    top: 50%;
    left: 16px;

    transform: translateY(-50%);

    color: var(--red-soft);

    font-size: 16px;

    z-index: 2;

    pointer-events: none;
}

/* INPUT */

.search-select-box input {

    width: 100%;
    height: 52px;

    padding: 0 58px 0 44px;

    border-radius: 14px;

    background: rgba(255,255,255,0.03);

    border: 1px solid rgba(255,70,70,0.15);

    color: var(--text-main);

    font-size: 15px;

    outline: none;

    transition: 0.22s ease;
}

.search-select-box input::placeholder {
    color: var(--text-dim);
}

.search-select-box input:focus {

    border-color: var(--red-primary);

    box-shadow:
      0 0 12px rgba(255,59,59,0.28);

    background: rgba(255,255,255,0.04);
}

.search-select-box.active {
    position: relative;
    z-index: 9999999;
}

/* RIGHT BUTTON */

.search-select-btn {

    position: absolute;

    top: 0;
    right: 0;

    width: 54px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--red-soft);

    cursor: pointer;

    z-index: 3;
}

.search-select-btn i {

    font-size: 14px;

    transition: 0.25s ease;
}

.search-select-box.active .search-select-btn i {

    transform: rotate(180deg);
}

/* DROPDOWN */

.search-select-dropdown {

    position: absolute;

    top: calc(100% + 10px);

    left: 0;

    width: 100%;

    border-radius: 18px;

    background:
      linear-gradient(
        180deg,
        rgba(22,22,22,0.98),
        rgba(12,12,12,0.98)
      );

    border:
      1px solid rgba(255,70,70,0.12);

    backdrop-filter: blur(18px);

    box-shadow:
      0 10px 30px rgba(0,0,0,0.45),
      0 0 20px rgba(255,59,59,0.08);

    position: absolute;
    z-index: 999997;

    max-height: 240px;

    overflow-y: auto;

    opacity: 0;

    visibility: hidden;

    transform: translateY(8px);

    transition: 0.22s ease;
}

/* SHOW */

.search-select-box.active .search-select-dropdown {

    opacity: 1;
z-index: 999999;
    visibility: visible;

    transform: translateY(0);
}

/* ITEM */

.search-select-item {

    min-height: 50px;

    padding: 14px 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #fff;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: 0.18s ease;
}

.search-select-item i {

    font-size: 12px;

    color: var(--red-soft);
}

.search-select-item:hover {

    background:
      rgba(255,59,59,0.08);

    padding-left: 20px;
}

.search-select-item:active {

    background:
      rgba(255,59,59,0.14);
}




/* ----- READ-ONLY PLAN DROPDOWN ----- */
.select-only-box {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
    cursor: pointer;
    /* z-index: 5000;*/
}

.selected-display {
    width: 100%;
    height: 52px;
    padding: 0 58px 0 44px;  /* Keep this for icon space */
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,70,70,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.22s ease;
}

.selected-display .left-icon {
    position: absolute;
    left: 16px;
    color: var(--red-soft);
    font-size: 16px;
}

.selected-text {
    color: var(--text-main);
    font-size: 15px;
    /* Remove flex: 1 */
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Add this to ensure text starts from left after icon */
    display: inline-block;
}

.dropdown-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-soft);
    pointer-events: none;
}

.dropdown-btn i {
    font-size: 14px;
    transition: 0.25s ease;
}

/* Active state (dropdown open) */
.select-only-box.active .dropdown-btn i {
    transform: rotate(180deg);
}

.select-only-box.active .selected-display {
    border-color: var(--red-primary);
    box-shadow: 0 0 12px rgba(255,59,59,0.28);
    background: rgba(255,255,255,0.04);
}

/* Dropdown menu */
.select-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22,22,22,0.98), rgba(12,12,12,0.98));
    border: 1px solid rgba(255,70,70,0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 20px rgba(255,59,59,0.08);
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.22s ease;
    z-index: 999997;
}

.select-only-box.active .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.select-item {
    min-height: 50px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.18s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.select-item:last-child {
    border-bottom: none;
}

.select-item:hover {
    background: rgba(255,59,59,0.08);
    padding-left: 20px;
}

.select-item .plan-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-item .plan-price {
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    background: rgba(74,222,128,0.12);
    padding: 4px 10px;
    border-radius: 20px;
}



.app-content,
.page,
.gen-card {
    overflow: visible !important;
}