/* ============================================
   TARSUS SEV - 3D Parallax Tanıtım Sitesi
   Orange Theme / Dark Mode
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;

  --bg-primary: #fefcfa;
  --bg-secondary: #f8f4f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(249, 115, 22, 0.04);

  --text-primary: #1a1008;
  --text-secondary: #5c4a36;
  --text-muted: #8c7a66;

  --glow-orange: 0 8px 40px rgba(249, 115, 22, 0.12);
  --glow-orange-strong: 0 12px 60px rgba(249, 115, 22, 0.18);

  --border-subtle: rgba(234, 88, 12, 0.12);
  --border-hover: rgba(234, 88, 12, 0.35);

  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  cursor: default;
}

/* ---- Noise Texture Overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---- Scene Container ---- */
.scene {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.scene-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Ambient Background ---- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--orange-500);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.ambient-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: var(--orange-700);
  bottom: -5%;
  left: -5%;
  animation-delay: -7s;
}

.ambient-orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--orange-400);
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ---- Hero Section ---- */
.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  perspective: 1200px;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.7);
  transition: opacity 1s ease;
}

.hero-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(254, 252, 250, 0.2) 0%,
    rgba(254, 252, 250, 0.5) 40%,
    rgba(254, 252, 250, 0.92) 85%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
}

/* ---- Logo ---- */
.hero-logo {
  position: relative;
  z-index: 3;
  margin-bottom: 1.5rem;
  margin-top: -1rem;
  text-align: center;
}

.hero-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.hero-slogan {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* ---- Orbital Layout ---- */
.orbital-wrapper {
  position: relative;
  z-index: 2;
  width: min(1100px, 92vw);
  height: min(700px, 70vh);
  margin: 2rem auto 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* ---- Floating Perspective Photos ---- */
.floating-photo {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.6);
  pointer-events: all;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease, width 0.5s ease, height 0.5s ease;
  z-index: 2;
  cursor: pointer;
}

.floating-photo:hover {
  width: 360px !important;
  height: 250px !important;
  z-index: 100;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  transform: translateZ(150px) rotateY(0deg) rotateX(0deg) !important;
}

.floating-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo 1 — sol üst köşe */
.fp-1 {
  width: 200px;
  height: 140px;
  top: -8%;
  left: -8%;
  transform: translateZ(60px) rotateY(8deg) rotateX(-2deg);
  z-index: 3;
}

/* Photo 2 — sağ üst */
.fp-2 {
  width: 190px;
  height: 130px;
  top: -6%;
  right: -6%;
  transform: translateZ(45px) rotateY(-10deg) rotateX(-3deg);
  z-index: 3;
  opacity: 0.92;
}

/* Photo 3 — sağ alt */
.fp-3 {
  width: 180px;
  height: 125px;
  bottom: -4%;
  right: -5%;
  transform: translateZ(35px) rotateY(-8deg) rotateX(4deg);
  z-index: 3;
  opacity: 0.88;
}

/* Photo 4 — sol alt */
.fp-4 {
  width: 175px;
  height: 130px;
  bottom: -5%;
  left: -6%;
  transform: translateZ(50px) rotateY(10deg) rotateX(3deg);
  z-index: 3;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .floating-photo {
    display: none;
  }
}

.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0px);
  width: min(420px, 45vw);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.3);
  z-index: 1;
  pointer-events: none;
}

.orbital-center:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 25px 70px rgba(249, 115, 22, 0.12), 0 0 0 1px var(--border-hover);
}

.orbital-center img {
  width: 100%;
  height: auto;
  display: block;
}

/* Decorative orbital rings */
.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 80%;
  border-radius: 50%;
  border: 1px solid rgba(234, 88, 12, 0.08);
  pointer-events: none;
  z-index: 1;
}

.orbital-ring-2 {
  width: 95%;
  height: 90%;
  border-color: rgba(234, 88, 12, 0.04);
}



/* ---- Orbital Cards ---- */
.orbital-cards {
  position: absolute;
  inset: 0;
  z-index: 50;
  transform-style: preserve-3d;
}

.orbital-card {
  pointer-events: all;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  white-space: normal;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 50;
  width: max-content;
  max-width: 240px;
  overflow: hidden;
  transform: translateZ(100px);
}

/* Shine sweep overlay */
.orbital-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(249, 115, 22, 0.12) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(249, 115, 22, 0.12) 60%,
    transparent 100%
  );
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.orbital-card:hover::before {
  left: 130%;
}

/* Glow ring (via box-shadow instead of ::after to avoid blocking clicks) */

.orbital-card:hover {
  border-color: var(--orange-500);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.2), 0 0 25px rgba(249, 115, 22, 0.1), inset 0 0 0 1px rgba(249, 115, 22, 0.15);
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  transform: scale(1.07);
}

.orbital-card * {
  pointer-events: none;
}

.orbital-card-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.25);
  transition: transform 0.3s;
}

.orbital-card:hover .orbital-card-icon {
  transform: scale(1.1);
}

.orbital-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
}

.orbital-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s;
  line-height: 1.2;
}

.orbital-card:hover .orbital-card-title {
  color: var(--orange-600);
}

.orbital-card-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.orbital-card-arrow {
  color: var(--text-muted);
  transition: all 0.3s;
  margin-left: auto;
}

.orbital-card:hover .orbital-card-arrow {
  color: var(--orange-500);
  transform: translateX(3px);
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
  margin: 0 auto 2rem;
  transform: translateZ(20px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateZ(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange-500), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0) translateZ(10px); }
  50% { transform: translateX(-50%) translateY(8px) translateZ(10px); }
}

/* ---- Cards Grid ---- */
.cards-section {
  width: 100%;
  max-width: 1400px;
  padding: 2rem 2rem 6rem;
  transform-style: preserve-3d;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-600);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
  transform: translateZ(20px);
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  transform: translateZ(30px);
  color: var(--text-primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  transform-style: preserve-3d;
}

/* ---- Card ---- */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(20px);
  transition: all var(--transition);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-inner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 115, 22, 0.06) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}

.card-3d:hover .card-inner {
  border-color: var(--border-hover);
  box-shadow: var(--glow-orange);
  transform: translateZ(30px);
}

.card-3d:hover .card-inner::before {
  opacity: 1;
}

.card-3d:hover .card-inner::after {
  opacity: 1;
}

.card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(249, 115, 22, 0.06);
  line-height: 1;
  transition: color var(--transition);
}

.card-3d:hover .card-number {
  color: rgba(249, 115, 22, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: white;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.25);
  transform: translateZ(15px);
  transition: transform var(--transition);
}

.card-3d:hover .card-icon {
  transform: translateZ(25px) scale(1.05);
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transform: translateZ(10px);
  transition: color var(--transition);
}

.card-3d:hover .card-title {
  color: var(--orange-600);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transform: translateZ(5px);
}

.card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  transform: translateZ(15px);
}

.card-3d:hover .card-arrow {
  border-color: var(--orange-500);
  color: var(--orange-400);
  background: rgba(249, 115, 22, 0.1);
  transform: translateZ(25px) translateX(4px);
}

/* ---- Featured Card (Başarılarımız - büyük) ---- */
.card-3d.featured {
  grid-column: 1 / -1;
}

.card-3d.featured .card-inner {
  min-height: 300px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, var(--bg-card) 50%);
  border-color: rgba(249, 115, 22, 0.15);
}

.card-3d.featured .card-number {
  font-size: 8rem;
  color: rgba(249, 115, 22, 0.04);
}

.card-3d.featured .card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
}

.card-3d.featured .card-title {
  font-size: 2rem;
}

/* ---- Hero Center Image ---- */
.hero-center-image {
  width: min(600px, 80vw);
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  transform: translateZ(50px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12), 0 0 60px rgba(249, 115, 22, 0.08);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-center-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.hero-center-image:hover img {
  transform: scale(1.03);
}

/* ---- Video Player ---- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  transform: translateZ(20px);
  box-shadow: var(--glow-orange);
}

.video-container video {
  width: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.2);
}

.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4);
  transition: transform 0.3s;
}

.video-overlay:hover .video-play-btn {
  transform: scale(1.1);
}

/* ---- Edit Button ---- */
.edit-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: blur(20px);
  transition: all var(--transition);
}

.edit-toggle:hover {
  border-color: var(--orange-500);
  color: var(--orange-400);
  box-shadow: var(--glow-orange);
}

.edit-toggle.active {
  background: var(--orange-500);
  color: white;
  border-color: var(--orange-500);
}

/* ---- Editable Content ---- */
[contenteditable="true"] {
  outline: 2px dashed var(--orange-400);
  outline-offset: 4px;
  border-radius: 4px;
  padding: 4px;
  min-height: 1.5em;
  transition: outline-color 0.3s;
}

[contenteditable="true"]:focus {
  outline-color: var(--orange-300);
  outline-style: solid;
}

.upload-zone {
  display: none;
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  margin: 1rem 0;
  background: rgba(249, 115, 22, 0.03);
}

.upload-zone:hover {
  border-color: var(--orange-400);
  background: rgba(249, 115, 22, 0.06);
  color: var(--orange-300);
}

.edit-mode .upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.edit-toolbar {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  backdrop-filter: blur(20px);
  z-index: 1000;
  gap: 0.75rem;
  align-items: center;
}

.edit-mode .edit-toolbar {
  display: flex;
}

.edit-toolbar button {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.edit-toolbar button:hover {
  border-color: var(--orange-500);
  color: var(--orange-400);
}

.edit-toolbar button.save-btn {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: white;
  font-weight: 600;
}

.edit-toolbar button.save-btn:hover {
  background: var(--orange-600);
}

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  z-index: 9999;
  backdrop-filter: blur(20px);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: #22c55e;
}

.toast.error {
  border-color: #ef4444;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.site-footer a {
  color: var(--orange-600);
  text-decoration: none;
}

/* ---- Page Transition ---- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

.page-transition .loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--orange-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 2rem 1rem 3rem;
  }

  .hero-logo img {
    height: 56px;
  }

  .orbital-wrapper {
    position: relative;
    width: 100%;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .orbital-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    margin-bottom: 1rem;
  }

  .orbital-center:hover {
    transform: scale(1.01);
  }

  .orbital-ring,
  .orbital-ring-2 {
    display: none;
  }

  .orbital-cards {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0 0.5rem;
  }

  .orbital-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card-inner {
    padding: 2rem 1.5rem;
    min-height: 180px;
  }

  .edit-toggle {
    bottom: 1rem;
    right: 1rem;
  }
}

/* ---- Loading State ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(249, 115, 22, 0.05) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--orange-200);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-400);
}

/* ---- Selection ---- */
::selection {
  background: rgba(249, 115, 22, 0.3);
  color: var(--text-primary);
}

/* ============================================
   Crop Modal
   ============================================ */
.crop-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.crop-modal.show {
  display: flex;
}

.crop-modal-inner {
  background: var(--bg-secondary, #1a1a2e);
  border: 1px solid var(--border-subtle, #333);
  border-radius: 16px;
  width: 90vw;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.crop-modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle, #333);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.crop-modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary, #fff);
  margin: 0;
}

.crop-aspect-btns {
  display: flex;
  gap: 6px;
}

.crop-aspect-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-subtle, #444);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary, #aaa);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.crop-aspect-btn:hover {
  border-color: var(--orange-500, #f97316);
  color: var(--orange-400, #fb923c);
}

.crop-aspect-btn.active {
  background: var(--orange-500, #f97316);
  border-color: var(--orange-500, #f97316);
  color: white;
}

.crop-container {
  flex: 1;
  min-height: 300px;
  max-height: 60vh;
  overflow: hidden;
  background: #000;
}

.crop-container img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.crop-actions {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-subtle, #333);
}

.crop-rotate-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle, #444);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary, #aaa);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.crop-rotate-btn:hover {
  border-color: var(--orange-500, #f97316);
  color: var(--orange-400, #fb923c);
}

.crop-cancel-btn,
.crop-skip-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-subtle, #444);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary, #aaa);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.crop-cancel-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.crop-skip-btn:hover {
  border-color: var(--orange-500, #f97316);
  color: var(--orange-400, #fb923c);
}

.crop-confirm-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--orange-600, #ea580c), var(--orange-500, #f97316));
  color: white;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.crop-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Cropper.js theme overrides */
.cropper-point,
.cropper-line {
  background-color: var(--orange-500, #f97316) !important;
}

.cropper-view-box {
  outline-color: var(--orange-500, #f97316) !important;
  outline: 2px solid var(--orange-500, #f97316) !important;
}

.cropper-dashed {
  border-color: rgba(249, 115, 22, 0.5) !important;
}

@media (max-width: 768px) {
  .crop-modal-inner {
    width: 95vw;
    max-height: 95vh;
  }

  .crop-modal-header {
    padding: 1rem;
  }

  .crop-aspect-btns {
    width: 100%;
    overflow-x: auto;
  }

  .crop-actions {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .crop-skip-btn {
    display: none;
  }
}
