* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
  --red-garuda: #e60023;
  --red-glow: rgba(230, 0, 35, 0.4);
  --dark-bg: #090c10;
  --card-bg: rgba(18, 24, 33, 0.88);
  --card-border: rgba(230, 0, 35, 0.35);
  --white-pure: #ffffff;
  --text-muted: #94a3b8;
  --input-bg: #111620;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.6) 0%, rgba(9, 12, 16, 0.92) 100%),
              url('images/gbk.jpg') center top / cover fixed no-repeat #090c10;
  color: var(--white-pure);
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

/* INTRO VIDEO OVERLAY */
.video-intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.video-intro-overlay video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.skip-video-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--red-garuda);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 100000;
}

/* LAYOUT STRUCTURE */
.main-wrapper {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 14px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crest-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--red-garuda), #990017);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--red-glow);
}

.brand-group h1 { font-size: 20px; font-weight: 800; }
.brand-group h1 span { color: var(--red-garuda); }
.subtitle { font-size: 11px; color: var(--text-muted); }

.header-right-group { display: flex; align-items: center; gap: 16px; }

.network-badge {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  display: flex; align-items: center; gap: 6px;
}

.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.clock-group { display: flex; gap: 12px; }

.clock-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--red-garuda);
  text-align: right;
}

.clock-label {
  font-size: 10px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
}

.clock-time { font-size: 14px; font-weight: 800; color: #fff; }
.clock-date { font-size: 10px; color: var(--text-muted); }

/* GRID SYSTEM */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card.full-width {
  grid-column: span 2;
}

.card-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
}

.card-title .icon { color: var(--red-garuda); }

.add-btn {
  background: var(--red-garuda);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.add-btn.style-alt {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease-in-out;
}

/* SHORTCUTS GRID */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.shortcut-item:hover { border-color: var(--red-garuda); }
.del-sc-btn { color: #ef4444; cursor: pointer; font-size: 14px; }

/* FILE HUB */
.file-hub-list { display: flex; flex-direction: column; gap: 10px; }

.file-btn-modern {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
}

.btn-info { display: flex; align-items: center; gap: 12px; }
.btn-icon { color: var(--red-garuda); }
.btn-title { display: block; font-size: 13px; font-weight: 700; }
.btn-sub { display: block; font-size: 11px; color: var(--text-muted); }

/* MINI YOUTUBE PLAYER */
.yt-input-group {
  display: flex;
  gap: 8px;
}

.yt-input-group input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  outline: none;
  font-size: 12px;
}

.yt-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.yt-frame-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* HIDE TANPA MATIKAN SUARA */
.yt-audio-only {
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* KALKULATOR */
.calculator-box { display: flex; flex-direction: column; gap: 10px; }

#calcDisplay {
  width: 100%;
  background: #000;
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-align: right;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-btn {
  background: var(--input-bg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.calc-btn.btn-action { background: rgba(230, 0, 35, 0.2); color: var(--red-garuda); }
.calc-btn.btn-danger { background: #dc2626; color: #fff; }
.calc-btn.btn-equal { background: var(--red-garuda); color: #fff; }

/* WORKPAD SIDEBAR SCROLLABLE */
.notes-wrapper {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

.notes-sidebar-container {
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.note-item {
  padding: 8px;
  font-size: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item.active {
  background: var(--red-garuda);
  color: #fff;
  font-weight: 700;
}

.note-editor { display: flex; flex-direction: column; gap: 8px; }

.note-editor input, .note-editor textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 6px;
  color: #fff;
  outline: none;
}

.note-editor textarea { height: 120px; resize: none; }

.note-actions { display: flex; justify-content: space-between; align-items: center; }

.delete-note-btn {
  background: transparent;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.badge-count { font-size: 11px; color: var(--text-muted); }

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.modal-box {
  background: #111620;
  border: 1px solid var(--red-garuda);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-box.modal-large { max-width: 600px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; }

.modal-box input {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  outline: none;
}

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.save-btn {
  background: var(--red-garuda);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.archive-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.archive-item:hover { background: var(--red-garuda); }

.footer { text-align: center; font-size: 12px; color: var(--text-muted); }

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .card.full-width { grid-column: span 1; }
  .top-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-right-group { width: 100%; justify-content: space-between; }
  .notes-wrapper { grid-template-columns: 1fr; }
}