/* ==========================================================================
   APPLE & BENTO.ME INTERACTIVE DIGITAL WORKSPACE — UĞURCAN DUMAN
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #000000;
  --studio-glow: radial-gradient(ellipse 85% 42% at 50% -6%, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.018) 48%, transparent 76%);
  --nav-bg: rgba(18, 18, 21, 0.78);
  --surface: rgba(20, 20, 23, 0.84);
  --surface-hover: rgba(27, 27, 32, 0.94);
  --surface-recessed: rgba(8, 8, 11, 0.72);
  --surface-subtle: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.085);
  --border-hover: rgba(255, 255, 255, 0.19);
  --specular-top: rgba(255, 255, 255, 0.11);
  --text-1: #f5f5f7;
  --text-2: #8e8e93;
  --text-3: #58585e;
  --cta-bg: #f5f5f7;
  --cta-fg: #000000;
  --cta-hover: #ffffff;
  --seg-track: rgba(255, 255, 255, 0.05);
  --seg-active: rgba(255, 255, 255, 0.14);
  --chrome-bar: rgba(255, 255, 255, 0.028);
  --shadow-card: 0 20px 44px -16px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 var(--specular-top);
  --shadow-hover: 0 26px 54px -14px rgba(0, 0, 0, 0.85), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  --backdrop: rgba(0, 0, 0, 0.68);
  --gh-0: rgba(255, 255, 255, 0.05);
  --gh-1: rgba(16, 185, 129, 0.25);
  --gh-2: rgba(16, 185, 129, 0.48);
  --gh-3: rgba(16, 185, 129, 0.74);
  --gh-4: #34d399;
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --studio-glow: radial-gradient(ellipse 85% 42% at 50% -6%, rgba(255, 255, 255, 0.96) 0%, transparent 72%);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-hover: #ffffff;
  --surface-recessed: rgba(242, 242, 247, 0.92);
  --surface-subtle: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.16);
  --specular-top: rgba(255, 255, 255, 0.95);
  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --cta-bg: #1d1d1f;
  --cta-fg: #ffffff;
  --cta-hover: #000000;
  --seg-track: rgba(0, 0, 0, 0.048);
  --seg-active: #ffffff;
  --chrome-bar: rgba(0, 0, 0, 0.026);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.06), inset 0 1px 0 0 var(--specular-top);
  --shadow-hover: 0 18px 40px -12px rgba(0, 0, 0, 0.12), inset 0 1px 0 0 #ffffff;
  --backdrop: rgba(0, 0, 0, 0.32);
  --gh-0: rgba(0, 0, 0, 0.06);
  --gh-1: rgba(16, 185, 129, 0.28);
  --gh-2: rgba(16, 185, 129, 0.52);
  --gh-3: rgba(5, 150, 105, 0.78);
  --gh-4: #059669;
}

[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  transition: background-color 0.35s cubic-bezier(0.32, 0.72, 0, 1), color 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-x: hidden;
}

.studio-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--studio-glow);
}

/* --------------------------------------------------------------------------
   FLOATING TOP NAVIGATION BAR (visionOS / macOS)
   -------------------------------------------------------------------------- */
.top-nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.top-nav-wrap.nav-hidden {
  transform: translate3d(0, -135%, 0) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.top-nav {
  height: 52px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-identity {
  display: inline-flex;
  align-items: center;
}

.nav-identity-name {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-1);
  white-space: nowrap;
}

.segmented-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--seg-track);
  border: 1px solid var(--border);
}

.mobile-segmented-bar {
  display: none;
}

.seg-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.seg-btn:hover {
  color: var(--text-1);
}

.seg-btn.active {
  background: var(--seg-active);
  color: var(--text-1);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-icon-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-icon-btn:hover {
  color: var(--text-1);
  background: var(--surface-subtle);
  border-color: var(--border);
}

.nav-pill-btn {
  height: 35px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-pill-btn:hover {
  border-color: var(--border-hover);
  background: var(--seg-active);
}

/* --------------------------------------------------------------------------
   TWO-ZONE DESKTOP BENTO WORKSPACE
   -------------------------------------------------------------------------- */
.bento-workspace {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 26px auto 0;
  padding: 0 24px 64px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.surface-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
              border-color 0.28s ease,
              background-color 0.28s ease,
              box-shadow 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.spotlight-card {
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 20%) var(--my, 20%),
    rgba(var(--brand-rgb, 255, 255, 255), 0.1),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   LEFT STICKY SIDEBAR: IDENTITY + LIVE CLOCK WIDGET
   -------------------------------------------------------------------------- */
.sidebar-col {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: top 0.46s cubic-bezier(0.32, 0.72, 0, 1);
}

body.is-nav-hidden .sidebar-col {
  top: 24px;
}

.profile-bento {
  border-radius: 28px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.avatar-frame {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  padding: 2.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
  margin-bottom: 18px;
}

[data-theme="light"] .avatar-frame {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.02));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 25.5px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #18181b;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: -0.034em;
  color: var(--text-1);
  line-height: 1.16;
}

.verified-seal {
  display: inline-flex;
  align-items: center;
}

.profile-handle {
  margin-top: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}

.profile-bio {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.56;
  letter-spacing: -0.008em;
}

.stack-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-chip {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.profile-cta-wrap {
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.apple-cta-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.2s ease;
}

.apple-cta-btn.full {
  width: 100%;
}

.apple-cta-btn.compact {
  height: 36px;
  padding: 0 15px;
  font-size: 0.8rem;
}

.apple-cta-btn:hover {
  background: var(--cta-hover);
  transform: scale(1.015);
}

/* iOS Live Clock Widget */
.clock-widget {
  border-radius: 24px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.widget-eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: 3px;
}

.clock-digits {
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  line-height: 1.15;
}

.clock-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-2);
}

.clock-dial {
  color: var(--text-1);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RIGHT 4-COLUMN ASYMMETRIC BENTO GRID
   -------------------------------------------------------------------------- */
.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bento-item {
  border-radius: 26px;
  text-decoration: none;
  color: var(--text-1);
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: rgba(var(--brand-rgb, 255, 255, 255), 0.4);
  box-shadow: var(--shadow-hover);
}

.span-4 {
  grid-column: span 4;
}

.span-2 {
  grid-column: span 2;
}

.span-1 {
  grid-column: span 1;
}

/* Authentic iOS App Squircle Icon */
.squircle-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--app-bg, linear-gradient(180deg, #3898ff 0%, #0066cc 100%));
  color: #ffffff;
  box-shadow: 0 8px 18px -5px rgba(var(--brand-rgb, 10, 132, 255), 0.5),
              inset 0 1px 0.5px rgba(255, 255, 255, 0.36);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.squircle-icon.custom-img-icon {
  background: transparent;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px -5px rgba(var(--brand-rgb, 229, 161, 75), 0.45);
}

.squircle-icon.custom-img-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 13px;
}

.bento-item:hover .squircle-icon {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(var(--brand-rgb, 10, 132, 255), 0.65),
              inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

/* 1. FLAGSHIP MARBLEOS CARD (4-Col Split with 3D Isometric Blueprint) */
.flagship-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
  align-items: center;
}

.flagship-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.minimal-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-rgb, 255, 255, 255), 0.28);
  background: rgba(var(--brand-rgb, 255, 255, 255), 0.1);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-1);
}

.bento-title-lg {
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--text-1);
}

.bento-title-md {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-1);
}

.bento-desc {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.52;
}

.module-pills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.module-pill {
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--text-2);
}

.flagship-cta-row {
  margin-top: 18px;
}

.inline-cta-pill {
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 0.79rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.bento-item:hover .inline-cta-pill {
  transform: scale(1.03);
}

/* MarbleOS 3D Isometric CAD Viewport */
.blueprint-viewport {
  border-radius: 18px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 188px;
  position: relative;
  overflow: hidden;
}

.blueprint-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(229, 161, 75, 0.2) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.blueprint-top-specs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: #e5a14b;
}

.iso-cube-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.bento-item:hover .iso-cube-stage {
  transform: scale(1.07) translateY(-2px);
}

.blueprint-bottom-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-2);
}

/* 2. CODE SHOWCASE WIDGET (ugurcanduman.com/tr) */
.widget-pad {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.code-snippet-box {
  border-radius: 14px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-2);
  overflow-x: auto;
}

.code-kw { color: #ff7b72; }
.code-prop { color: #79c0ff; }
.code-str { color: #a5d6ff; }
[data-theme="light"] .code-kw { color: #cf222e; }
[data-theme="light"] .code-prop { color: #0550ae; }
[data-theme="light"] .code-str { color: #0a3069; }

/* 3. GITHUB CONTRIBUTION MATRIX WIDGET */
.contrib-box {
  border-radius: 14px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
}

.contrib-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--gh-0);
  transition: transform 0.2s ease;
}

.contrib-cell.lv-1 { background: var(--gh-1); }
.contrib-cell.lv-2 { background: var(--gh-2); }
.contrib-cell.lv-3 { background: var(--gh-3); }
.contrib-cell.lv-4 { background: var(--gh-4); }

.bento-item:hover .contrib-cell.lv-4 {
  transform: scale(1.14);
}

.contrib-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.69rem;
  color: var(--text-3);
}

/* 4. SPOTIFY iOS AUDIO WAVEFORM WIDGET */
.spotify-eq-box {
  border-radius: 14px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.eq-bars {
  height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
}

.eq-bar {
  flex: 1;
  border-radius: 99px;
  background: linear-gradient(180deg, #1ed760 0%, rgba(30, 215, 96, 0.35) 100%);
  animation: eqPulse 1.6s ease-in-out infinite alternate;
}

@keyframes eqPulse {
  0% {
    transform: scaleY(0.35);
    opacity: 0.65;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* 5. WIDE SOCIAL & 1x1 SQUARE iOS WIDGETS */
.bento-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tile-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.micro-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

.bento-item:hover .micro-action-btn,
.safari-bar .micro-action-btn {
  opacity: 1;
}

.micro-action-btn:hover {
  color: var(--text-1);
  background: var(--surface-subtle);
  border-color: var(--border);
}

.corner-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}

.bento-item:hover .corner-arrow {
  color: var(--text-1);
  border-color: var(--border-hover);
  transform: translate(2px, -2px);
}

/* Tactile Apple Card Pill CTA Button */
.card-pill-btn {
  height: 35px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hover);
  color: var(--text-1);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}

.bento-item:hover .card-pill-btn {
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-color: transparent;
  transform: translateY(-1px);
}

.card-pill-btn svg {
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.bento-item:hover .card-pill-btn svg {
  transform: translate(2px, -2px);
}

/* Portfolio UI & Architecture Preview Box */
.portfolio-preview-box {
  border-radius: 14px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ui-wireframe-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
}

.ui-wire-block {
  height: 28px;
  border-radius: 7px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.ui-wire-block.accent-blue {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.26), rgba(10, 132, 255, 0.06));
  border-color: rgba(10, 132, 255, 0.35);
}

.ui-wire-block.accent-cyan {
  background: linear-gradient(135deg, rgba(50, 173, 230, 0.22), rgba(50, 173, 230, 0.05));
  border-color: rgba(50, 173, 230, 0.3);
}

/* Ders Programı Setup 5-Day Timetable Matrix Box */
.schedule-preview-box {
  border-radius: 14px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.timetable-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.tt-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tt-day-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-align: center;
}

.tt-slot {
  height: 9px;
  border-radius: 3px;
  background: var(--gh-0);
}

.tt-slot.s-indigo {
  background: rgba(94, 92, 230, 0.68);
}

.tt-slot.s-blue {
  background: rgba(56, 152, 255, 0.62);
}

.tt-slot.s-violet {
  background: rgba(168, 85, 247, 0.58);
}

/* WhatsApp & Email Contact Preview Boxes */
.contact-preview-box {
  border-radius: 14px;
  background: var(--surface-recessed);
  border: 1px solid var(--border);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wa-bubble-text {
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-ticks {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #25d366;
}

.mail-addr-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 132, 255, 0.14);
  color: #409cff;
  font-size: 0.66rem;
  font-weight: 600;
}

.visit-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
}

.visit-link-label svg {
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

.bento-item:hover .visit-link-label svg {
  transform: translate(3px, -3px);
}

.square-tile-pad {
  position: relative;
  z-index: 1;
  padding: 18px;
  min-height: 168px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.channel-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-1);
}

.channel-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   FOOTER, SHARE SHEET & DYNAMIC ISLAND TOAST
   -------------------------------------------------------------------------- */
.colophon-footer {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.colophon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.copyright-copy {
  font-size: 0.77rem;
  color: var(--text-2);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sheet-card {
  width: 100%;
  max-width: 420px;
  border-radius: 26px;
  padding: 24px;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sheet-header h2 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sheet-desc {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--text-2);
}

.close-circle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.url-copy-group {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.apple-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.83rem;
  outline: none;
}

.share-channels-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.share-tile {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-1);
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.share-tile:hover {
  border-color: var(--border-hover);
  background: var(--seg-active);
}

.island-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-col {
    position: static;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: stretch;
  }
}

@media (max-width: 740px) {
  .top-nav-wrap {
    padding: 0 14px;
  }

  .bento-workspace {
    padding: 0 14px 56px;
  }

  .top-nav .segmented-bar {
    display: none;
  }

  .mobile-segmented-bar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-segmented-bar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-col {
    grid-template-columns: 1fr;
  }

  .flagship-body {
    grid-template-columns: 1fr;
  }

  .bento-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-4,
  .span-2 {
    grid-column: span 2;
  }

  .span-1 {
    grid-column: span 1;
  }
}
