/* =====================================================
   BlackStore Installer - Modern Gradient UI 2026
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
}

a { outline: none; color: #818cf8; }
img { border: 0; max-width: 100%; }
ul { list-style: none; }
button {
  border: none;
  outline: none !important;
  cursor: pointer;
  font-family: inherit;
}
input, select, textarea {
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

/* Header */
#install_head {
  width: 100%;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.4);
}
.install_logo {
  max-height: 48px;
  filter: brightness(1.1);
}

/* Main container */
#container_install {
  padding-bottom: 60px;
}
#install_box {
  width: 720px;
  max-width: 96%;
  margin: 0 auto;
  background: rgba(30, 27, 55, 0.95);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  overflow: hidden;
}
#install_content {
  padding: 8px;
}

/* Cards / page elements */
.page_element {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  margin: 12px;
  backdrop-filter: blur(8px);
}

.install_h3 {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.install_h3 i {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 20px;
}

/* Form */
.setting_element { margin-bottom: 16px; }
.label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: block;
}
.full_input, select.full_input, input.full_input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(15, 12, 41, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #f1f5f9 !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.full_input:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}
.ex_admin, .sub_text {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.form_split { display: flex; flex-wrap: wrap; gap: 0; }
.form_left_full, .form_right_full {
  width: 50%;
  padding: 0 8px;
  box-sizing: border-box;
}
.clear, .clear10 { clear: both; }
.clear10 { height: 10px; }

/* Buttons */
.reg_button, .ok_btn, .save_admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 8px;
}
.reg_button:hover, .ok_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
}
#wait_install { display: none; opacity: 0.85; }

/* License list */
.can_do { margin-top: 8px; }
.list { padding: 8px 0 12px; }
.list li {
  padding: 6px 0;
  color: #94a3b8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.list .success { color: #34d399; }
.list .error { color: #f87171; }
.bold { font-weight: 600; color: #e2e8f0; margin: 12px 0 4px; }
.legal_text {
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  background: rgba(0,0,0,0.2);
  padding: 12px;
  border-radius: 10px;
}
.lite { color: #94a3b8; }
.install_rules {
  font-size: 14px;
  padding: 20px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}
.accept_rules {
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}
.accept_rules.fa-check-circle { color: #34d399; }
.install_accept { cursor: pointer; }

/* Permission / check lists */
.install_welcome, .install_folders { font-size: 16px; font-weight: 600; color: #e2e8f0; }
#check_ul li { padding: 10px 0; cursor: pointer; color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,0.05); }
.perm_state { float: right; }
.sub_install { background: rgba(0,0,0,0.15); padding: 10px; border-radius: 10px; }
.sub_install li { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 8px 0; }
.sub_install li:last-child { border-bottom: none; }
#install_fail {
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  color: #fca5a5;
}
.important { color: #fbbf24; }
.warn_pcode { margin-bottom: 10px; color: #fbbf24; }

/* Toast / saved */
.saved_data {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
.saved_span {
  display: none;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 10px;
  color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-weight: 500;
}

/* Success ending */
.success { color: #34d399 !important; }

/* Responsive */
@media screen and (max-width: 640px) {
  .form_left_full, .form_right_full { width: 100%; padding: 0; }
  #install_head { margin: 12px auto 0; border-radius: 12px 12px 0 0; }
  #install_box { border-radius: 0 0 12px 12px; }
  .page_element { margin: 8px; padding: 16px; }
  .reg_button, .ok_btn { width: 100%; justify-content: center; }
}

/* Select dropdown */
select.full_input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
