/* ==========================================================================
   CSSFontFace Exploit - Modern & Elegant Theme
   ========================================================================== */

:root {
  --bg-main: #0a0e17;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151d30 0%, #0a0e17 80%);
  --card-bg: rgba(18, 26, 43, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(59, 130, 246, 0.4);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Consolas", "Monaco", "Courier New", monospace;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-main);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Header Section (Compact 1-2 Lines)
   ========================================================================== */

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  text-align: center;
}

@media (min-width: 860px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.header-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 8px #3b82f6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #3b82f6; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ua-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ua-icon {
  font-size: 14px;
}

h3#UA {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
  word-break: break-all;
}

/* ==========================================================================
   Control Section (Cards)
   ========================================================================== */

.control-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .control-section {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.2px;
}

.card-badge {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

/* Kernel Options Radio Cards */
.kernel-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px;
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-card:hover {
  background: rgba(20, 30, 50, 0.7);
  border-color: rgba(59, 130, 246, 0.3);
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--text-dim);
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.radio-card input[type="radio"]:checked + .radio-custom {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.radio-card input[type="radio"]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.radio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.radio-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Action Card & Controls */
.action-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 3px 10px var(--primary-glow);
}

.primary-btn:disabled {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.secondary-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.secondary-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 18px;
}

/* Auto Jailbreak Switch & Delay Field */
.autoJb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 15, 26, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.switch-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  min-width: 44px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0 !important;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  border-radius: 24px;
  transition: 0.25s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.switch input:checked + .slider {
  background-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.switch input:checked ~ .switch-label {
  color: var(--text-main);
}

.delay-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.delay-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.delay-input {
  width: 48px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #60a5fa;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.delay-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}

.delay-unit {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Main Output & Media Layout
   ========================================================================== */

.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Mascot Media Box */
.media-card {
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.media-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.media-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.media-card:hover .media-img-wrap img {
  transform: scale(1.03);
}

.media-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(10, 15, 26, 0.6);
  border-radius: 9999px;
  border: 1px solid var(--card-border);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.media-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Terminal Console Box */
.terminal-box {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: #0f1523;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.t-dot.red { background: #ef4444; }
.t-dot.yellow { background: #f59e0b; }
.t-dot.green { background: #10b981; }

.terminal-title {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.terminal-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-radius: 4px;
  font-weight: 700;
}

#console {
  background: transparent;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  text-align: left;
  min-height: 240px;
  max-height: 290px;
  overflow-y: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
  border: none;
}

/* Console Log Syntax Coloring */
.log-error {
  color: #ef4444 !important;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  display: block;
}

.log-info {
  color: #34d399;
  display: block;
}

.log-debug {
  color: #38bdf8;
  display: block;
}

/* Custom Scrollbar for Terminal */
#console::-webkit-scrollbar {
  width: 8px;
}

#console::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

#console::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

#console::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  text-align: center;
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-dim);
}

.footer strong {
  color: var(--text-muted);
}