/* ========================================
   Windows XP Luna Style CSS РґР»СЏ FreeFix.kz
   РЎС‚РёР»СЊ С‚РµРјС‹ Luna (СЃРёРЅСЏСЏ) Windows XP
   ======================================== */

/* РЎР±СЂРѕСЃ Рё Р±Р°Р·РѕРІС‹Рµ СЃС‚РёР»Рё */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tahoma', 'Segoe UI', Geneva, Verdana, sans-serif;
  background: #D4D0C8;
  color: #000000;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: 11px;
}

/* ========================================
   РћРЎРќРћР’РќРћР™ РљРћРќРўР•Р™РќР•Р  (РёРјРёС‚Р°С†РёСЏ РѕРєРЅР° Windows XP Luna)
   ======================================== */
.main-layout {
  width: 98%;
  max-width: 1300px;
  margin: 10px auto;
  background: #ECE9D8;
  border: 1px solid #3A6EA5;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 20px);
  max-height: 800px;
}

/* ========================================
   HEADER (Title Bar РІ СЃС‚РёР»Рµ Windows XP Luna)
   ======================================== */
.header {
  background: linear-gradient(to bottom, #3A78C2 0%, #3A78C2 50%, #2A68B2 51%, #2A68B2 100%);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2A68B2;
  height: 34px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #FFFFFF;
  font-size: 12px;
}

.logo svg {
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 3px;
  padding: 2px;
}

.logo .main {
  color: #FFFFFF;
  font-weight: bold;
  font-size: 18px;
}

.logo .dot {
  color: #FFD700;
  font-size: 17px;
}

/* Header Controls (Login/User Panel) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn {
  background: linear-gradient(to bottom, #F9F9F9 0%, #E5E5E5 50%, #D5D5D5 51%, #C5C5C5 100%);
  border: 1px solid #7B9EBD;
  border-radius: 3px;
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #000000;
  font-weight: bold;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
  background: linear-gradient(to bottom, #FFFFFF 0%, #EFEFEF 50%, #DFDFDF 51%, #CFCFCF 100%);
  border-color: #3A78C2;
}

.login-btn:active {
  background: linear-gradient(to bottom, #E5E5E5 0%, #D5D5D5 50%, #C5C5C5 51%, #B5B5B5 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-icon {
  width: 14px;
  height: 14px;
}

/* User Panel */
.user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-email {
  font-size: 11px;
  font-weight: bold;
  color: #FFFFFF;
}

.user-status {
  font-size: 9px;
  color: #E6F3FF;
}

.balance-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-label {
  font-size: 9px;
  color: #E6F3FF;
}

.balance-amount {
  font-size: 12px;
  font-weight: bold;
  color: #90EE90;
}

.logout-btn {
  background: linear-gradient(to bottom, #F9F9F9 0%, #E5E5E5 50%, #D5D5D5 51%, #C5C5C5 100%);
  border: 1px solid #7B9EBD;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 10px;
  cursor: pointer;
  color: #000000;
  font-weight: bold;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
  background: linear-gradient(to bottom, #FFE5E5 0%, #FFD0D0 50%, #FFBABA 51%, #FFA5A5 100%);
  border-color: #FF6B6B;
}

.logout-btn:active {
  background: linear-gradient(to bottom, #E5D5D5 0%, #D5C5C5 50%, #C5B5B5 51%, #B5A5A5 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   LAYOUT (3 РєРѕР»РѕРЅРєРё СЃ Grid)
   ======================================== */

/* РћСЃРЅРѕРІРЅРѕР№ РєРѕРЅС‚РµР№РЅРµСЂ РёСЃРїРѕР»СЊР·СѓРµС‚ Grid */
.main-layout {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  grid-template-rows: auto 1fr auto;
  height: calc(100vh - 20px);
  max-height: 800px;
}

/* РџРѕР·РёС†РёРѕРЅРёСЂРѕРІР°РЅРёРµ СЌР»РµРјРµРЅС‚РѕРІ РІ Grid */
.header {
  grid-column: 1 / -1;
  grid-row: 1;
  flex-shrink: 0;
}

.left-sidebar {
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
}

.content-area {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
}

.right-sidebar {
  grid-column: 3;
  grid-row: 2;
  overflow: auto;
}

.footer {
  grid-column: 1 / -1;
  grid-row: 3;
  flex-shrink: 0;
}

/* ========================================
   LEFT SIDEBAR (Р”Р°РјРїС‹/РџСЂРѕС€РёРІРєРё)
   ======================================== */
.left-sidebar {
  width: 260px;
  background: #ECE9D8;
  border-right: 1px solid #A0A0A0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-section {
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-title {
  background: linear-gradient(to bottom, #F6F6F6 0%, #E6E6E6 50%, #D6D6D6 51%, #C6C6C6 100%);
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: bold;
  color: #2A68B2;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

/* Dump List */
.dump-list {
  background: #FFFFFF;
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dump-list h3 {
  background: linear-gradient(to bottom, #E6F3FF 0%, #D6E3EF 50%, #C6D3DF 51%, #B6C3CF 100%);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: bold;
  color: #2A68B2;
  border-bottom: 1px solid #7B9EBD;
  margin: 0;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}

.dump-list ul {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  margin: 0;
  padding: 0;
}

.dump-list li {
  padding: 6px 12px;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  transition: background 0.2s;
}

.dump-list li:nth-child(even) {
  background: #F8F8F8;
}

.dump-list li:hover {
  background: #E6F3FF;
}

.dump-list a {
  color: #0066CC;
  text-decoration: underline;
  font-size: 10px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dump-list a:hover {
  color: #FF4500;
}

.file-size {
  color: #666;
  font-size: 9px;
  margin-left: 8px;
  white-space: nowrap;
}

/* Custom Scrollbar РґР»СЏ Windows XP Luna СЃС‚РёР»СЏ */
.dump-list ul::-webkit-scrollbar {
  width: 16px;
}

.dump-list ul::-webkit-scrollbar-track {
  background: #F0F0F0;
  border-radius: 8px;
}

.dump-list ul::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #C0C0C0 0%, #A0A0A0 50%, #808080 51%, #606060 100%);
  border-radius: 8px;
  border: 2px solid #F0F0F0;
}

.dump-list ul::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #A0A0A0 0%, #808080 50%, #606060 51%, #404040 100%);
}

/* ========================================
   CONTENT AREA (Р¦РµРЅС‚СЂР°Р»СЊРЅР°СЏ РѕР±Р»Р°СЃС‚СЊ)
   ======================================== */
.content-area {
  flex: 1;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Wizard Container */
.wizard-container {
  padding: 20px;
  flex: 1;
  position: relative;
  overflow-y: auto;
  min-height: 0;
  background: #FFFFFF;
}

/* Auth Required Overlay */
.wizard-container.auth-required::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(236, 233, 216, 0.8);
  backdrop-filter: blur(2px);
  z-index: 5;
}

/* Progress Bar (Windows XP Luna Style) */
.progress-bar {
  background: linear-gradient(to bottom, #F6F6F6 0%, #E6E6E6 50%, #D6D6D6 51%, #C6C6C6 100%);
  border: 1px solid #7B9EBD;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 3px;
  background: #C0C0C0;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 2px;
}

.progress-line.progress-33 {
  background: linear-gradient(to right, #3A78C2 0%, #3A78C2 33%, #C0C0C0 33%, #C0C0C0 100%);
}

.progress-line.progress-66 {
  background: linear-gradient(to right, #3A78C2 0%, #3A78C2 66%, #C0C0C0 66%, #C0C0C0 100%);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #F6F6F6 0%, #E6E6E6 50%, #D6D6D6 51%, #C6C6C6 100%);
  border: 2px solid #7B9EBD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  color: #2A68B2;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.step-circle.active {
  background: linear-gradient(to bottom, #3A78C2 0%, #2A68B2 50%, #1A58A2 51%, #0A4882 100%);
  border-color: #1A58A2;
  color: #FFFFFF;
}

.step-circle.completed {
  background: linear-gradient(to bottom, #90EE90 0%, #80DE80 50%, #70CE70 51%, #60BE60 100%);
  border-color: #70CE70;
  color: #FFFFFF;
}

.step-title {
  font-size: 11px;
  color: #666;
  text-align: center;
  font-weight: bold;
}

.step-title.active {
  color: #2A68B2;
}

.step-title.completed {
  color: #228B22;
}

/* Wizard Steps */
.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

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

.step-header {
  font-size: 13px;
  font-weight: bold;
  color: #2A68B2;
  margin-bottom: 20px;
  padding: 12px;
  background: linear-gradient(to bottom, #E6F3FF 0%, #D6E3EF 50%, #C6D3DF 51%, #B6C3CF 100%);
  border-radius: 6px;
  border: 1px solid #7B9EBD;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Controls */
.form-control,
.form-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  font-family: 'Tahoma', 'Courier New', monospace;
  font-size: 11px;
  background: #FFFFFF;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
}

.form-control:focus,
.form-input:focus {
  outline: none;
  border-color: #3A78C2;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(58, 120, 194, 0.2);
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: bold;
  color: #2A68B2;
}

/* Buttons (Windows XP Luna Style) */
.nav-btn,
.btn-next,
.btn-prev,
.btn-submit,
.modal-login-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #7B9EBD;
  transition: all 0.2s;
  font-family: 'Tahoma', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-next,
.btn-submit,
.modal-login-btn {
  background: linear-gradient(to bottom, #F9F9F9 0%, #E5E5E5 50%, #D5D5D5 51%, #C5C5C5 100%);
  border-color: #7B9EBD;
  color: #2A68B2;
}

.btn-next:hover,
.btn-submit:hover,
.modal-login-btn:hover {
  background: linear-gradient(to bottom, #FFFFFF 0%, #EFEFEF 50%, #DFDFDF 51%, #CFCFCF 100%);
  border-color: #3A78C2;
}

.btn-next:active,
.btn-submit:active,
.modal-login-btn:active {
  background: linear-gradient(to bottom, #E5E5E5 0%, #D5D5D5 50%, #C5C5C5 51%, #B5B5B5 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-prev {
  background: linear-gradient(to bottom, #F9F9F9 0%, #E5E5E5 50%, #D5D5D5 51%, #C5C5C5 100%);
  border-color: #7B9EBD;
  color: #666;
}

.btn-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-prev:hover:not(:disabled) {
  background: linear-gradient(to bottom, #FFFFFF 0%, #EFEFEF 50%, #DFDFDF 51%, #CFCFCF 100%);
  border-color: #3A78C2;
}

/* Wizard Navigation */
.wizard-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #E0E0E0;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #E0E0E0;
  border-top-color: #3A78C2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

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

/* ID Analysis Result */
.id-result {
  background: #F8F8F8;
  border: 1px solid #7B9EBD;
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.id-result.unavailable {
  background: #FFE6E6;
  border-color: #FF6B6B;
}

.device-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.device-info-table tr {
  border-bottom: 1px solid #E0E0E0;
}

.device-info-table tr:last-child {
  border-bottom: none;
}

.info-label {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: bold;
  color: #2A68B2;
  width: 180px;
  background: #F0F0F0;
}

.info-value {
  padding: 10px 12px;
  font-size: 11px;
  color: #333;
}

.status-success {
  color: #228B22;
  font-weight: bold;
}

.status-error {
  color: #DC143C;
  font-weight: bold;
}

.device-status-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-success-bg {
  background: #F0FFF0;
  border-color: #90EE90;
  color: #228B22;
}

.status-error-bg {
  background: #FFF0F0;
  border-color: #FF6B6B;
  color: #DC143C;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #228B22;
}

/* ========================================
   RIGHT SIDEBAR (РњРѕРґРµР»Рё Рё РСЃС‚РѕСЂРёСЏ)
   ======================================== */
.right-sidebar {
  width: 220px;
  background: #ECE9D8;
  border-left: 1px solid #A0A0A0;
  padding: 8px;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.right-sidebar .section-title:first-child {
  background: linear-gradient(to bottom, #FFF8DC 0%, #FFE8B8 50%, #FFD894 51%, #FFC870 100%);
  border-color: #D2B48C;
  color: #8B4513;
}

.right-sidebar .sidebar-section {
  padding: 0;
  height: auto;
}

/* Models List */
.models-list {
  background: #FFFFFF;
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  max-height: 450px;
  overflow-y: auto;
  margin-top: 8px;
  flex: 1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.models-count {
  padding: 8px 12px;
  background: linear-gradient(to bottom, #E6F3FF 0%, #D6E3EF 50%, #C6D3DF 51%, #B6C3CF 100%);
  border-bottom: 1px solid #7B9EBD;
  font-size: 11px;
  color: #2A68B2;
  font-weight: bold;
}

.brand-card {
  border-bottom: 1px solid #E0E0E0;
}

.brand-header {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  transition: background 0.2s;
  user-select: none;
}

.brand-header:hover {
  background: #F0F8FF;
}

.brand-header.collapsed .brand-toggle {
  transform: rotate(-90deg);
}

.brand-name {
  font-size: 11px;
  font-weight: bold;
  color: #2A68B2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-toggle {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 10px;
  color: #2A68B2;
}

.brand-count {
  background: #E6F3FF;
  color: #2A68B2;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.models-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 12px;
}

.models-container.active {
  max-height: 500px;
  padding: 8px 12px;
}

.model-tag {
  display: inline-block;
  background: linear-gradient(to bottom, #F6F6F6 0%, #E6E6E6 50%, #D6D6D6 51%, #C6C6C6 100%);
  border: 1px solid #7B9EBD;
  padding: 4px 8px;
  margin: 3px;
  border-radius: 3px;
  font-size: 9px;
  color: #2A68B2;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.model-tag:hover {
  background: linear-gradient(to bottom, #E6F3FF 0%, #D6E3EF 50%, #C6D3DF 51%, #B6C3CF 100%);
  border-color: #3A78C2;
  color: #1A58A2;
}

.version-count {
  background: #3A78C2;
  color: white;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: bold;
}

/* Search Input РІ РїСЂР°РІРѕРј СЃР°Р№РґР±Р°СЂРµ */
.right-sidebar input[type="text"],
#modelSearchInput {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  font-size: 10px;
  margin-bottom: 8px;
  background: #FFFFFF;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.right-sidebar input[type="text"]:focus,
#modelSearchInput:focus {
  outline: none;
  border-color: #3A78C2;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(58, 120, 194, 0.2);
}

#searchCounter {
  font-size: 10px;
  color: #666;
  margin-bottom: 8px;
  padding: 0 4px;
}

/* Orders List */
#ordersList {
  background: #FFFFFF;
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-item {
  padding: 10px 12px;
  border-bottom: 1px solid #F0F0F0;
  font-size: 10px;
}

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

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.order-id {
  font-weight: bold;
  color: #2A68B2;
}

.order-status {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
}

.order-status.completed {
  background: #F0FFF0;
  color: #228B22;
  border: 1px solid #90EE90;
}

.order-status.pending {
  background: #FFF8DC;
  color: #8B4513;
  border: 1px solid #D2B48C;
}

.order-device {
  color: #333;
  margin-bottom: 4px;
  font-weight: bold;
}

.order-details {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 9px;
}

.order-price {
  font-weight: bold;
  color: #228B22;
}

.order-summary-count {
  padding: 8px 12px;
  background: linear-gradient(to bottom, #E6F3FF 0%, #D6E3EF 50%, #C6D3DF 51%, #B6C3CF 100%);
  border-bottom: 1px solid #7B9EBD;
  font-size: 11px;
  color: #2A68B2;
  font-weight: bold;
}

/* ========================================
   MODAL WINDOWS (Windows XP Luna Style)
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.2s;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ECE9D8;
  border-radius: 8px;
  border: 2px solid #3A78C2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 450px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-header {
  background: linear-gradient(to bottom, #3A78C2 0%, #3A78C2 50%, #2A68B2 51%, #2A68B2 100%);
  padding: 16px 20px;
  border-bottom: 1px solid #2A68B2;
  border-radius: 6px 6px 0 0;
}

.modal-title {
  font-size: 14px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 11px;
  color: #E6F3FF;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 22px;
  background: linear-gradient(to bottom, #FF6B6B 0%, #FF5757 50%, #FF4343 51%, #FF2F2F 100%);
  border: 1px solid #DC143C;
  border-radius: 3px;
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  background: linear-gradient(to bottom, #FF7B7B 0%, #FF6767 50%, #FF5353 51%, #FF3F3F 100%);
}

.modal-close:active {
  background: linear-gradient(to bottom, #FF5B5B 0%, #FF4747 50%, #FF3333 51%, #FF1F1F 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

#loginForm,
#registrationForm {
  padding: 20px;
}

.login-error {
  background: #FFE6E6;
  border: 1px solid #FF6B6B;
  color: #DC143C;
  padding: 10px 12px;
  border-radius: 4px;
  margin-top: 12px;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-footer {
  text-align: center;
  padding: 16px 20px;
  border-top: 1px solid #C0C0C0;
  background: #F0F0F0;
  border-radius: 0 0 6px 6px;
}

.modal-footer p {
  margin: 0;
  font-size: 11px;
  color: #666;
}

.modal-footer a {
  color: #2A68B2;
  text-decoration: none;
  font-weight: bold;
}

.modal-footer a:hover {
  text-decoration: underline;
  color: #3A78C2;
}

/* ========================================
   VERSION MODAL
   ======================================== */
.version-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.version-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s;
}

.version-modal-content {
  position: relative;
  background: #ECE9D8;
  border-radius: 8px;
  border: 2px solid #3A78C2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.3s ease;
  margin: 20px;
}

.version-modal-header {
  background: linear-gradient(to bottom, #3A78C2 0%, #3A78C2 50%, #2A68B2 51%, #2A68B2 100%);
  padding: 16px 20px;
  border-bottom: 1px solid #2A68B2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-modal-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #FFFFFF;
}

.version-modal-close {
  width: 28px;
  height: 22px;
  background: linear-gradient(to bottom, #FF6B6B 0%, #FF5757 50%, #FF4343 51%, #FF2F2F 100%);
  border: 1px solid #DC143C;
  border-radius: 3px;
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.version-modal-close:hover {
  background: linear-gradient(to bottom, #FF7B7B 0%, #FF6767 50%, #FF5353 51%, #FF3F3F 100%);
}

.version-modal-close:active {
  background: linear-gradient(to bottom, #FF5B5B 0%, #FF4747 50%, #FF3333 51%, #FF1F1F 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.version-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.version-item {
  background: #F8F8F8;
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.version-item:last-child {
  margin-bottom: 0;
}

.version-name {
  font-size: 12px;
  font-weight: bold;
  color: #2A68B2;
  margin-bottom: 8px;
}

.version-info {
  font-size: 10px;
  color: #666;
}

.version-info div {
  margin: 4px 0;
}

.version-info span {
  font-weight: bold;
  color: #333;
}

/* ========================================
   NO RESULTS
   ======================================== */
.no-results {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.no-results > div:first-child {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: linear-gradient(to bottom, #E6E6E6 0%, #D6D6D6 50%, #C6C6C6 51%, #B6B6B6 100%);
  border-top: 1px solid #A0A0A0;
  padding: 8px 20px;
  font-size: 10px;
  color: #666;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-copy {
  color: #666;
}

.footer-brand {
  font-weight: bold;
  color: #2A68B2;
}

.footer-sep {
  color: #999;
}

.footer-mail {
  color: #2A68B2;
  text-decoration: none;
  font-weight: bold;
}

.footer-mail:hover {
  color: #3A78C2;
  text-decoration: underline;
}

/* ========================================
   MANUAL SELECTOR (СЂСѓС‡РЅРѕР№ РІС‹Р±РѕСЂ РїСЂРѕС€РёРІРєРё)
   ======================================== */
#manual-selector {
  background: #F8F8F8;
  border: 1px solid #7B9EBD;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#manual-selector h3 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: bold;
  color: #2A68B2;
}

/* Toggle Manual Button - Windows XP Luna СЃС‚РёР»СЊ */
#toggleManualBtn {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: linear-gradient(to bottom, #F9F9F9 0%, #E5E5E5 50%, #D5D5D5 51%, #C5C5C5 100%) !important;
  color: #2A68B2 !important;
  border: 1px solid #7B9EBD !important;
  border-radius: 4px !important;
  width: 36px !important;
  height: 36px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  z-index: 10 !important;
  padding: 0 !important;
  transition: all 0.3s ease !important;
}

#toggleManualBtn:hover {
  background: linear-gradient(to bottom, #FFFFFF 0%, #EFEFEF 50%, #DFDFDF 51%, #CFCFCF 100%) !important;
  border-color: #3A78C2 !important;
  transform: translateY(-50%) scale(1.05) !important;
}

#toggleManualBtn:active {
  background: linear-gradient(to bottom, #E5E5E5 0%, #D5D5D5 50%, #C5C5C5 51%, #B5B5B5 100%) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

#toggleManualBtn.active {
  background: linear-gradient(to bottom, #90EE90 0%, #80DE80 50%, #70CE70 51%, #60BE60 100%) !important;
  border-color: #70CE70 !important;
  animation: rotateGear 0.5s ease-in-out !important;
}

@keyframes rotateGear {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(180deg); }
}

#gearIcon {
  pointer-events: none;
  display: block;
  user-select: none;
}

/* ========================================
   INSTRUCTION BLOCK (Р±Р»РѕРє РёРЅСЃС‚СЂСѓРєС†РёРё)
   ======================================== */
.instruction-container {
  background: #F8F8F8;
  border: 1px solid #7B9EBD;
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.instruction-step {
  background: #FFFFFF;
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.instruction-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #3A78C2 0%, #2A68B2 50%, #1A58A2 51%, #0A4882 100%);
  border: 2px solid #1A58A2;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #2A68B2;
  font-weight: bold;
}

.step-content ul {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.step-content li {
  font-size: 10px;
  color: #555;
  margin: 4px 0;
  position: relative;
  padding-left: 8px;
}

.step-content li::before {
  content: 'вЂў';
  position: absolute;
  left: -10px;
  color: #3A78C2;
  font-weight: bold;
}

.instruction-warning {
  background: #FFF8DC;
  border: 1px solid #D2B48C;
  border-radius: 4px;
  padding: 12px;
  margin-top: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.instruction-warning strong {
  color: #8B4513;
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
}

.instruction-warning p {
  margin: 0;
  font-size: 10px;
  color: #8B4513;
  line-height: 1.5;
}

/* ========================================
   BALANCE INFO TABLE
   ======================================== */
.balance-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.balance-info-table tr {
  border-bottom: 1px solid #E0E0E0;
}

.balance-info-table tr:last-child {
  border-bottom: none;
}

.balance-info-table td {
  padding: 8px 0;
}

.balance-info-table td:first-child {
  color: #2A68B2;
  font-weight: bold;
}

.balance-info-table td:last-child {
  text-align: right;
  font-weight: bold;
}

.topup-btn {
  background: linear-gradient(to bottom, #F9F9F9 0%, #E5E5E5 50%, #D5D5D5 51%, #C5C5C5 100%);
  border: 1px solid #7B9EBD;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: bold;
  color: #2A68B2;
  cursor: pointer;
  width: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.topup-btn:hover {
  background: linear-gradient(to bottom, #FFFFFF 0%, #EFEFEF 50%, #DFDFDF 51%, #CFCFCF 100%);
  border-color: #3A78C2;
}

.topup-btn:active {
  background: linear-gradient(to bottom, #E5E5E5 0%, #D5D5D5 50%, #C5C5C5 51%, #B5B5B5 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1200px) {
  .main-layout {
    margin: 8px;
    height: calc(100vh - 16px);
    grid-template-columns: 240px 1fr 200px;
  }
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    height: auto;
    max-height: none;
  }
  
  .header {
    grid-column: 1;
    grid-row: 1;
  }
  
  .left-sidebar {
    grid-column: 1;
    grid-row: 2;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid #A0A0A0;
  }
  
  .content-area {
    grid-column: 1;
    grid-row: 3;
  }
  
  .right-sidebar {
    grid-column: 1;
    grid-row: 4;
    max-height: 400px;
    border-left: none;
    border-top: 1px solid #A0A0A0;
  }
  
  .footer {
    grid-column: 1;
    grid-row: 5;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 10px;
  }
  
  .logo {
    font-size: 11px;
  }
  
  .header-controls {
    width: 100%;
    justify-content: flex-end;
  }
  
  .progress-bar {
    flex-direction: column;
    gap: 20px;
  }
  
  .progress-line {
    display: none;
  }
  
  .wizard-navigation {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-btn,
  .btn-next,
  .btn-prev,
  .btn-submit {
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .main-layout {
    margin: 5px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
  display: none !important;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

/* ========================================
   SCROLLBAR STYLING (Windows XP Luna style)
   ======================================== */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #F0F0F0;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #C0C0C0 0%, #A0A0A0 50%, #808080 51%, #606060 100%);
  border-radius: 8px;
  border: 2px solid #F0F0F0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #A0A0A0 0%, #808080 50%, #606060 51%, #404040 100%);
}

::-webkit-scrollbar-corner {
  background: #F0F0F0;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #C0C0C0 #F0F0F0;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .header,
  .left-sidebar,
  .right-sidebar,
  .footer,
  .wizard-navigation,
  .modal-overlay {
    display: none !important;
  }
  
  .main-layout {
    box-shadow: none;
    border: none;
  }
  
  .content-area {
    width: 100%;
  }
}

/* ========================================
   FOCUS STYLES (РґР»СЏ РґРѕСЃС‚СѓРїРЅРѕСЃС‚Рё)
   ======================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3A78C2;
  outline-offset: 2px;
}

/* ========================================
   SELECTION STYLES
   ======================================== */
::selection {
  background: #3A78C2;
  color: #FFFFFF;
}

::-moz-selection {
  background: #3A78C2;
  color: #FFFFFF;
}

/* ========================================
   Dump List Search Header
   ======================================== */
.dump-header {
    padding: 8px 10px;
    background: linear-gradient(to bottom, #E6F3FF 0%, #D6E3EF 50%, #C6D3DF 51%, #B6C3CF 100%);
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #7B9EBD;
}

.dump-header input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #7B9EBD;
    border-radius: 4px;
    font-size: 11px;
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dump-header input:focus {
    outline: none;
    border-color: #3A78C2;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(58, 120, 194, 0.2);
}

.dump-list h3 {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #E6F3FF 0%, #D6E3EF 50%, #C6D3DF 51%, #B6C3CF 100%);
    font-size: 11px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #2A68B2;
}

.dump-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dump-list li {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid #F0F0F0;
    font-size: 11px;
}

.dump-list li:hover {
    background: #E6F3FF;
}

.dump-list li a {
    flex: 1;
    margin-left: 8px;
    text-decoration: underline;
    color: #0066CC;
}

.dump-list li a:hover {
    color: #FF4500;
}

.file-size {
    color: #666;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}
/* ========================================
   MOBILE RESPONSIVE STYLES
   Р”РѕР±Р°РІСЊС‚Рµ СЌС‚Рё СЃС‚РёР»Рё РІ РєРѕРЅРµС† СЃСѓС‰РµСЃС‚РІСѓСЋС‰РµРіРѕ CSS
   ======================================== */

/* Tablets and Medium Screens */
@media (max-width: 1200px) {
  .main-layout {
    width: 100%;
    margin: 5px;
    height: calc(100vh - 10px);
    grid-template-columns: 220px 1fr 200px;
  }

  .left-sidebar {
    width: 220px;
  }

  .right-sidebar {
    width: 200px;
  }

  .logo .main {
    font-size: 16px;
  }

  .logo .dot {
    font-size: 15px;
  }
}

/* Small Tablets */
@media (max-width: 992px) {
  body {
    font-size: 12px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 0;
    width: 100%;
  }
  
  .header {
    grid-column: 1;
    grid-row: 1;
    border-radius: 0;
    height: auto;
    padding: 10px 15px;
  }
  
  .left-sidebar {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #A0A0A0;
  }

  .left-sidebar .sidebar-section {
    max-height: 400px;
    overflow-y: auto;
  }

  .dump-list {
    max-height: 300px;
  }
  
  .content-area {
    grid-column: 1;
    grid-row: 3;
    min-height: 60vh;
  }
  
  .right-sidebar {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    max-height: none;
    border-left: none;
    border-top: 1px solid #A0A0A0;
  }

  .models-list {
    max-height: 350px;
  }
  
  .footer {
    grid-column: 1;
    grid-row: 5;
  }

  .wizard-container {
    padding: 15px;
  }

  .progress-bar {
    padding: 10px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .step-title {
    font-size: 10px;
  }
}

/* Mobile Phones */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .main-layout {
    border: none;
    box-shadow: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  /* РЎРљР Р«Р’РђР•Рњ РІСЃРµ РєСЂРѕРјРµ header Рё content-area */
  .left-sidebar,
  .right-sidebar,
  .footer {
    display: none !important;
  }

  .header {
    grid-column: 1;
    grid-row: 1;
  }

  .content-area {
    grid-column: 1;
    grid-row: 2;
  }

  /* Header Adjustments */
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }

  .logo {
    justify-content: center;
    gap: 6px;
  }

  .logo svg {
    width: 24px;
    height: 24px;
  }

  .logo .main {
    font-size: 18px;
  }

  .logo .dot {
    font-size: 17px;
  }

  .header-controls {
    width: 100%;
    justify-content: center;
  }

  /* User Panel Mobile */
  .user-panel {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px;
    width: 100%;
  }

  .user-info {
    flex: 1;
    min-width: 140px;
  }

  .user-email {
    font-size: 12px;
  }

  .balance-display {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0 0 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logout-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
  }

  /* Left Sidebar Mobile */
  .left-sidebar {
    padding: 10px;
  }

  .sidebar-section {
    padding: 8px;
  }

  .section-title {
    font-size: 12px;
    padding: 8px 10px;
  }

  .dump-list ul {
    max-height: 250px;
  }

  .dump-list li {
    padding: 8px;
    font-size: 11px;
  }

  .file-size {
    font-size: 10px;
  }

  /* Wizard Steps Mobile */
  .wizard-container {
    padding: 12px;
  }

  .progress-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
  }

  .progress-line {
    display: none;
  }

  .progress-step {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-title {
    font-size: 12px;
    text-align: left;
  }

  .step-header {
    font-size: 14px;
    padding: 10px;
  }

  /* Form Controls Mobile */
  .form-control,
  .form-input,
  select.form-input {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 10px;
  }

  textarea.form-control {
    min-height: 100px;
  }

  /* Manual Selector Mobile */
  #manual-selector {
    padding: 12px;
  }

  #manual-selector > div {
    grid-template-columns: 1fr !important;
  }

  #toggleManualBtn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    right: 6px !important;
  }

  /* Wizard Navigation Mobile */
  .wizard-navigation {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
  }

  .nav-btn,
  .btn-next,
  .btn-prev,
  .btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* Device Info Table Mobile */
  .device-info-table {
    font-size: 12px;
  }

  .info-label {
    width: 120px;
    padding: 8px;
    font-size: 11px;
  }

  .info-value {
    padding: 8px;
    font-size: 11px;
  }

  /* Right Sidebar Mobile */
  .right-sidebar {
    padding: 10px;
  }

  .models-list {
    max-height: 400px;
  }

  .model-tag {
    font-size: 10px;
    padding: 5px 8px;
    margin: 3px;
  }

  .brand-header {
    padding: 8px 10px;
  }

  .brand-name {
    font-size: 12px;
  }

  .models-container.active {
    max-height: 600px;
  }

  #modelSearchInput {
    font-size: 14px;
    padding: 8px;
  }

  /* Orders List Mobile */
  #ordersList {
    max-height: 300px;
  }

  .order-item {
    padding: 10px;
  }

  .order-id {
    font-size: 11px;
  }

  .order-device {
    font-size: 11px;
  }

  /* Modal Mobile */
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 10px;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-title {
    font-size: 16px;
  }

  .modal-subtitle {
    font-size: 12px;
  }

  #loginForm,
  #registrationForm {
    padding: 15px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .modal-login-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* Version Modal Mobile */
  .version-modal-content {
    width: 95%;
    max-width: none;
    margin: 10px;
    max-height: 85vh;
  }

  .version-item {
    padding: 10px;
  }

  .version-name {
    font-size: 13px;
  }

  /* Footer Mobile */
  .footer {
    padding: 10px;
    font-size: 11px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  /* Instruction Container Mobile */
  .instruction-container {
    padding: 15px;
  }

  .instruction-step {
    flex-direction: column;
    gap: 10px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-content h4 {
    font-size: 13px;
  }

  .step-content li {
    font-size: 11px;
  }

  /* PrintID Tool Block Mobile */
  .left-sidebar > div:first-child {
    margin: 10px !important;
    padding: 12px !important;
  }

  .left-sidebar > div:first-child img {
    border-radius: 6px !important;
  }

  .left-sidebar > div:first-child a {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  /* Balance Info Mobile */
  .balance-info-table {
    font-size: 12px;
  }

  .topup-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }

  /* Success Message Mobile */
  .success-message {
    padding: 30px 15px;
  }

  .success-icon {
    font-size: 56px;
  }

  /* Image Modal Mobile */
  #imageModal > div {
    max-width: 98% !important;
    max-height: 90vh !important;
  }

  #imageModal button {
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .header {
    padding: 10px;
  }

  .logo .main {
    font-size: 16px;
  }

  .logo .dot {
    font-size: 15px;
  }

  .logo svg {
    width: 20px;
    height: 20px;
  }

  .wizard-container {
    padding: 10px;
  }

  .step-header {
    font-size: 15px;
    padding: 10px;
  }

  .progress-step {
    gap: 10px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .step-title {
    font-size: 11px;
  }

  .form-label {
    font-size: 12px;
  }

  .nav-btn,
  .btn-next,
  .btn-prev,
  .btn-submit {
    padding: 10px;
    font-size: 13px;
  }

  .modal-content {
    width: 98%;
    margin: 5px;
  }

  .version-modal-content {
    width: 98%;
    margin: 5px;
  }

  .device-info-table {
    font-size: 11px;
  }

  .info-label {
    width: 100px;
    font-size: 10px;
    padding: 6px;
  }

  .info-value {
    font-size: 10px;
    padding: 6px;
  }

  .brand-name {
    font-size: 11px;
  }

  .model-tag {
    font-size: 9px;
    padding: 4px 6px;
  }

  .order-item {
    font-size: 11px;
  }

  .footer {
    font-size: 10px;
  }

  #toggleManualBtn {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
}

/* Landscape Mode for Small Devices */
@media (max-width: 768px) and (orientation: landscape) {
  .main-layout {
    height: auto;
  }

  .left-sidebar .sidebar-section {
    max-height: 250px;
  }

  .content-area {
    min-height: 50vh;
  }

  .models-list {
    max-height: 250px;
  }

  .version-modal-content {
    max-height: 90vh;
  }
}

/* Prevent Horizontal Scroll */
@media (max-width: 768px) {
  * {
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .main-layout {
    overflow-x: hidden;
  }
}

/* Touch-Friendly Adjustments */
@media (hover: none) and (pointer: coarse) {
  .btn-next,
  .btn-prev,
  .btn-submit,
  .login-btn,
  .logout-btn,
  .modal-login-btn,
  .nav-btn,
  .topup-btn {
    min-height: 44px;
    padding: 12px 20px;
  }

  .model-tag,
  .brand-header {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Fix for iOS Safari Bottom Bar */
@supports (-webkit-touch-callout: none) {
  .main-layout {
    height: -webkit-fill-available;
  }
}

/* Print Styles - Keep Minimal */
@media print {
  .header,
  .left-sidebar,
  .right-sidebar,
  .footer,
  .wizard-navigation,
  .modal-overlay,
  #toggleManualBtn {
    display: none !important;
  }

  .main-layout {
    grid-template-columns: 1fr !important;
    border: none;
    box-shadow: none;
  }

  .content-area {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
}
/* ========================================
   END OF WINDOWS XP LUNA STYLESHEET
   ======================================== */
