:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --cf-orange: #F97316;
  --bg-main: #0B0F19;
  --bg-card: rgba(23, 32, 51, 0.85);
  --bg-subcard: rgba(30, 41, 59, 0.7);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --success: #10B981;
  --danger: #EF4444;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  padding: env(safe-area-inset-top, 20px) 16px env(safe-area-inset-bottom, 20px) 16px;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--cf-orange));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.title-group h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title-group p {
  font-size: 0.75rem;
  color: #60A5FA;
  font-family: monospace;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Omnibox / Search & Browser Bar */
.omnibox-group {
  display: flex;
  gap: 8px;
  background: var(--bg-subcard);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.omnibox-text {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
}

.omnibox-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), #1D4ED8);
  color: white;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s ease;
}

.omnibox-btn:active {
  transform: scale(0.96);
}

/* App Grid (1-Sentuh) */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.app-item {
  background: var(--bg-subcard);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.app-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.app-item:active {
  transform: scale(0.95);
}

.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.app-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.secondary-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-subcard);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.code-box {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.82rem;
  word-break: break-all;
  color: #93C5FD;
  line-height: 1.45;
  text-align: center;
}
