:root {
  --background: #030712;
  --panel-bg: rgba(9, 17, 34, 0.75);
  --ronin-blue: #091122;
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --border: #14223d;
  --text-white: #ffffff;
  --text-slate: #94a3b8;
  --accent-purple: #7c3aed;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--background);
  color: #cbd5e1;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ── CYBER BACKGROUND GLOWS ── */
.campaign-bg-orbs {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.18;
}

.orb-navy {
  width: 500px; height: 500px;
  background-color: var(--accent-purple);
  top: -150px; left: -100px;
}

.orb-cyan {
  width: 650px; height: 650px;
  background-color: var(--cyan);
  bottom: -200px; right: -100px;
}

/* Grid Backdrop */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(30, 41, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -2;
  pointer-events: none;
}

/* ── CONTAINER ── */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 10;
}

/* Left panel */
.generator-panel {
  flex: 1;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.r-logo {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 6px rgba(0, 240, 255, 0.3));
}

.b-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  display: block;
  line-height: 1.1;
}

.b-sub {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-slate);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ronin-blue);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-slate);
}

/* Glass cards */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 32px 0 rgba(3, 7, 18, 0.37);
  margin-bottom: 20px;
}

.glass-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-slate);
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* Inputs configuration */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.form-group label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-slate);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-group select {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-white);
  outline: none;
}

.form-group select:focus {
  border-color: var(--cyan);
}

/* Copy Output area */
.output-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.out-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-slate);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--text-white);
  background-color: var(--cyan-dim);
}

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

#outputTextArea {
  flex: 1;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12.5px;
  padding: 14px;
  resize: none;
  outline: none;
  line-height: 1.6;
}

#outputTextArea:focus {
  border-color: var(--cyan);
}

/* ── RIGHT COLUMN: SMARTPHONE MOCKUP ── */
.mockup-panel {
  width: 380px;
  background-color: var(--ronin-blue);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  flex-shrink: 0;
  align-items: center;
}

/* Architect Box */
.architect-box {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid var(--cyan-dim);
  border-radius: 8px;
  padding: 14px 16px;
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.architect-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background-color: var(--cyan);
}

.arch-tag {
  font-size: 8px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.arch-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 2px;
}

.arch-desc {
  font-size: 10px;
  color: var(--text-slate);
  margin-bottom: 8px;
}

.arch-statement {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
  text-align: justify;
}

/* SMARTPHONE SHELL */
.smartphone-frame {
  width: 310px;
  height: 480px;
  background-color: #000;
  border: 8px solid #1e293b;
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 16px;
  background-color: #1e293b;
  border-radius: 0 0 10px 10px;
  z-index: 40;
}

.phone-screen {
  flex: 1;
  background-color: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Instagram Header */
.insta-header {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px 0;
  background-color: #fff;
  border-bottom: 0.5px solid #efefef;
}

.insta-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid #dbdbdb;
}

.user-handle {
  font-size: 11.5px;
  font-weight: 700;
  color: #262626;
}

.verify-badge {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

.insta-dots {
  color: #8e8e8e;
  font-size: 12px;
  cursor: pointer;
}

/* Post Image Viewport */
.post-viewport {
  height: 180px;
  background-color: #fafafa;
  border-bottom: 0.5px solid #efefef;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Device Sketch CSS mockup drawing templates */
.device-sketch {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CSS Vector Drawing: Power Bank R-970 */
.sketch-powerbank {
  width: 60px;
  height: 105px;
  background: linear-gradient(135deg, #18233c 0%, #0b1120 100%);
  border: 2px solid #2d3f66;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.sketch-powerbank::before {
  content: '22.5W';
  position: absolute;
  top: 10px; left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: var(--cyan);
  font-weight: bold;
}

.pb-indicator {
  align-self: flex-end;
  background: #111;
  border: 1px solid #333;
  border-radius: 2px;
  width: 18px; height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 5px;
  color: #00ff00;
  font-weight: bold;
}

.pb-ports {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 4px;
}

.pb-port {
  width: 10px; height: 3px;
  background-color: #333;
  border-radius: 1px;
}

/* CSS Vector Drawing: Smartwatch R-530 */
.sketch-watch {
  position: relative;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, #2d3f66 0%, #0b1120 100%);
  border: 3.5px solid #18233c;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.sketch-watch::before, .sketch-watch::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 18px;
  background-color: #111;
  z-index: -1;
}

.sketch-watch::before { top: -20px; border-radius: 4px 4px 0 0; }
.sketch-watch::after { bottom: -20px; border-radius: 0 0 4px 4px; }

.watch-face {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.watch-face span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  color: var(--cyan);
  font-weight: bold;
}

/* CSS Vector Drawing: Earbuds R-460 */
.sketch-earbuds {
  width: 70px;
  height: 60px;
  background-color: #0b1120;
  border: 2px solid #2d3f66;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.sketch-earbuds::before, .sketch-earbuds::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 14px; height: 28px;
  background-color: #1a2333;
  border: 1px solid #3b4e75;
  border-radius: 7px;
}

.sketch-earbuds::before { left: 14px; }
.sketch-earbuds::after { right: 14px; }

.earbud-led {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
}

/* Action Icons */
.insta-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #fff;
}

.left-actions {
  display: flex;
  gap: 12px;
}

.action-icon {
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  color: #000;
  font-family: inherit;
}

.insta-likes {
  font-size: 10.5px;
  color: #262626;
  padding: 0 12px;
  background-color: #fff;
}

/* Comments area */
.insta-comments-box {
  flex: 1;
  padding: 4px 12px 12px;
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.4;
  background-color: #fff;
}

/* Scrollbar styling */
.insta-comments-box::-webkit-scrollbar {
  width: 3px;
}

.insta-comments-box::-webkit-scrollbar-thumb {
  background: #dbdbdb;
  border-radius: 1.5px;
}

.caption-row, .comment-row {
  margin-bottom: 6px;
  color: #262626;
}

.caption-row strong, .comment-row strong {
  margin-right: 4px;
}

.caption-row span {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Comment Input */
.insta-comment-input {
  height: 38px;
  border-top: 0.5px solid #efefef;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background-color: #fff;
}

.insta-comment-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 11px;
  font-family: inherit;
  color: #262626;
}

.insta-comment-input button {
  background: none;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0095f6;
  cursor: pointer;
}

.insta-comment-input button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Buttons primary overrides */
.btn-primary {
  background-color: var(--cyan);
  color: #030712;
  border: none;
  border-radius: 5px;
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-primary:hover {
  background-color: #00c3d9;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}
