/* ============================================================
   DHRUV AWS PROJECT — landingpage.css
   AWS + Cyber Futuristic Cloud Storage Platform
   Built for AWS learning purposes
   ============================================================ */

/* ======================== CSS VARIABLES ======================== */
:root,
[data-theme="default"] {
  --bg-primary: #0F172A;         /* Main background — deep navy */
  --bg-secondary: #111827;       /* Card/panel background */
  --bg-tertiary: #1E2A3A;        /* Slightly lighter panels */
  --aws-orange: #FF9900;         /* AWS signature orange */
  --aws-orange-dim: rgba(255,153,0,0.15);
  --cyan: #00E5FF;               /* Cyber cyan glow */
  --cyan-dim: rgba(0,229,255,0.12);
  --cyan-mid: rgba(0,229,255,0.4);
  --text-white: #F8FAFC;         /* Primary text */
  --text-gray: #94A3B8;          /* Secondary text */
  --text-dim: #475569;           /* Muted text */
  --green: #22C55E;              /* Success */
  --green-dim: rgba(34,197,94,0.15);
  --red: #EF4444;                /* Error */
  --red-dim: rgba(239,68,68,0.15);
  --border: rgba(0,229,255,0.1); /* Default border */
  --border-orange: rgba(255,153,0,0.2);
  --sidebar-width: 260px;
  --topnav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --glow-cyan: 0 0 20px rgba(0,229,255,0.3), 0 0 60px rgba(0,229,255,0.1);
  --glow-orange: 0 0 20px rgba(255,153,0,0.3), 0 0 60px rgba(255,153,0,0.1);
  --glow-green: 0 0 20px rgba(34,197,94,0.4);
  --glow-red: 0 0 24px rgba(239,68,68,0.5), 0 0 60px rgba(239,68,68,0.2);
  --sidebar-storage-glow: 0 0 12px rgba(34,197,94,0.3);
  /* Light theme override variables — only change what differs */
  --light-bg: #F8FAFC;
  --light-card: #FFFFFF;
  --light-text: #0F172A;
  --light-text-secondary: #64748B;
  --light-border: #E2E8F0;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg-primary: #0A0F1E;
  --bg-secondary: #0D1322;
  --bg-tertiary: #151D30;
  --text-white: #E2E8F0;
  --text-gray: #64748B;
  --text-dim: #334155;
  --border: rgba(0,229,255,0.06);
  --glow-cyan: 0 0 14px rgba(0,229,255,0.2), 0 0 40px rgba(0,229,255,0.05);
  --glow-orange: 0 0 14px rgba(255,153,0,0.2), 0 0 40px rgba(255,153,0,0.05);
  --glow-green: 0 0 14px rgba(34,197,94,0.3);
  --glow-red: 0 0 18px rgba(239,68,68,0.4);
  --sidebar-storage-glow: 0 0 12px rgba(34,197,94,0.25);
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --aws-orange: #EA580C;
  --aws-orange-dim: rgba(234,88,12,0.1);
  --cyan: #0284C7;
  --cyan-dim: rgba(2,132,199,0.08);
  --cyan-mid: rgba(2,132,199,0.25);
  --text-white: #0F172A;
  --text-gray: #64748B;
  --text-dim: #94A3B8;
  --green: #16A34A;
  --green-dim: rgba(22,163,74,0.1);
  --red: #DC2626;
  --red-dim: rgba(220,38,38,0.1);
  --border: rgba(2,132,199,0.08);
  --border-orange: rgba(234,88,12,0.15);
  --glow-cyan: 0 0 14px rgba(2,132,199,0.15), 0 0 40px rgba(2,132,199,0.05);
  --glow-orange: 0 0 14px rgba(234,88,12,0.15), 0 0 40px rgba(234,88,12,0.05);
  --glow-green: 0 0 14px rgba(22,163,74,0.25);
  --glow-red: 0 0 18px rgba(220,38,38,0.35);
  --sidebar-storage-glow: 0 0 12px rgba(22,163,74,0.25);
  /* Light mode specific overrides */
  background: #F8FAFC;
}

[data-theme="light"] body {
  background-image: none;
  background: #F8FAFC;
}

/* ======================== RESET & BASE ======================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg-primary);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  /* Subtle grid pattern background */
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--cyan-mid); border-radius: 3px; }

/* ======================== SIDEBAR (REDESIGNED) ======================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition);
}

/* Sidebar Top Section */
.sidebar-top {
  padding: 20px 0;
  position: relative;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: none;
}

/* Sidebar Navigation Section */
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 20px 10px;
}

/* Sidebar Bottom Section — Utility Menu */
.sidebar-bottom {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--aws-orange), #FF6600);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--glow-orange);
  flex-shrink: 0;
}

.logo-title {
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
  display: block;
}

.logo-sub {
  font-size: 10px; color: var(--text-gray);
  text-transform: uppercase; letter-spacing: 1px;
  display: block;
}

/* Sidebar toggle button (mobile) */
.sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 18px;
  padding: 4px 20px;
  position: absolute;
  top: 20px;
  right: 16px;
}

.utility-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px;
}

.utility-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.utility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-gray);
  font-family: inherit;
  font-size: 13px;
}

.utility-item:hover {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.15);
  color: var(--cyan);
}

.utility-item.active {
  background: rgba(0,229,255,0.1);
  border-color: rgba(0,229,255,0.2);
  color: var(--cyan);
}

.utility-item.logout:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.2);
  color: var(--red);
}

/* ── Sidebar Storage Bar — Redesigned ── */
.sidebar-storage {
  padding: 16px 16px 12px;
  margin: 8px 12px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.sidebar-storage:hover {
  border-color: rgba(34,197,94,0.2);
  box-shadow: var(--sidebar-storage-glow);
}

.sidebar-storage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sidebar-storage-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-storage-label i {
  color: var(--green);
  font-size: 11px;
}

.sidebar-storage-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray);
  font-family: 'Inter', 'Syne', sans-serif;
}

.sidebar-storage-track {
  height: 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.sidebar-storage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #4ADE80, var(--cyan));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 8px rgba(34,197,94,0.3);
}

.sidebar-storage-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: storageShimmer 2.5s infinite;
}

@keyframes storageShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── Global Close Button ── */
.panel-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.panel-close-btn:hover {
  background: #EF4444;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(239,68,68,0.35);
}

/* ── Section containers for fetch-and-inject ── */
.favourite-section,
.uploadfiles-section,
.mycloud-section,
.setting-section {
  position: relative;
  animation: sectionFadeIn 0.3s ease;
}

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Profile/bell icon shift ── */
.topnav {
  padding: 0 20px;
}

.nav-right {
  gap: 10px;
}

.notif-btn, .profile-btn {
  width: 38px;
  height: 38px;
}

/* ── Body typography upgrade ── */
body {
  font-family: 'Inter', 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
}

.utility-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  position: relative;
}

/* Private Files folder icon with lock badge */
.mc-folder-icon {
  position: relative;
}
.mc-folder-icon .fa-folder {
  color: var(--cyan);
}
.mc-folder-lock {
  position: absolute;
  bottom: -1px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: var(--cyan);
  line-height: 1;
}

.utility-label {
  font-weight: 500;
  display: block;
}

/* ======================== HERO SECTION ======================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  min-height: 240px;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.hero-heading {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 16px;
}
.accent-text {
  background: linear-gradient(90deg, var(--aws-orange), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 20px;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-gray);
  transition: all var(--transition);
}
.badge:hover { border-color: var(--cyan-mid); color: var(--cyan); }
.badge i { color: var(--aws-orange); }

/* Floating Orbit Graphic */
.hero-graphic {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cloud-orbit {
  width: 220px; height: 220px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.ring-1 {
  width: 160px; height: 160px;
  border-color: rgba(0,229,255,0.2);
  animation: orbitSpin 12s linear infinite;
}
.ring-2 {
  width: 220px; height: 220px;
  border-color: rgba(255,153,0,0.15);
  animation: orbitSpin 18s linear infinite reverse;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orbit-core {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(255,153,0,0.15));
  border: 2px solid rgba(0,229,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: floatBob 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.orbit-dot {
  position: absolute;
  width: 32px; height: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--text-gray);
}
.orbit-dot.d1 { top: 0; left: 50%; transform: translateX(-50%); color: var(--aws-orange); }
.orbit-dot.d2 { right: 0; top: 50%; transform: translateY(-50%); color: var(--cyan); }
.orbit-dot.d3 { bottom: 0; left: 50%; transform: translateX(-50%); color: #A78BFA; }
.orbit-dot.d4 { left: 0; top: 50%; transform: translateY(-50%); color: var(--green); }

/* ======================== MAIN WRAPPER ======================== */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

/* ======================== TOP NAVBAR ======================== */
.topnav {
  height: var(--topnav-height);
  background: rgba(17,24,39,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  position: sticky;
  top: 0; z-index: 90;
  gap: 16px;
}
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 20px;
  margin-right: auto;
}
.nav-brand-mobile {
  display: none;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--aws-orange);
}

/* Section title in topnav */
.nav-section-title {
  display: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-right: auto;
  padding: 6px 14px 6px 12px;
  border-left: 2px solid var(--aws-orange);
  letter-spacing: 0.3px;
  border-radius: 0 8px 8px 0;
  position: relative;
}
.nav-section-title.visible {
  display: block;
  background: linear-gradient(90deg, var(--aws-orange-dim), transparent);
  animation: navTitleGlow 3s ease-in-out infinite;
}

@keyframes navTitleGlow {
  0%, 100% { box-shadow: inset 2px 0 0 0 var(--aws-orange); }
  50% { box-shadow: inset 2px 0 0 0 var(--aws-orange), 0 0 6px rgba(255,153,0,0.15); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 16px;
  transition: border-color var(--transition);
}
.nav-search:focus-within {
  border-color: var(--cyan-mid);
  box-shadow: 0 0 0 2px rgba(0,229,255,0.1);
}
.nav-search i { color: var(--text-dim); font-size: 13px; }
.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  width: 180px;
}
.nav-search input::placeholder { color: var(--text-dim); }

/* Notification Bell */
.notif-wrap { position: relative; }
.notif-btn {
  width: 40px; height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-gray);
  font-size: 16px;
  transition: all var(--transition);
  position: relative;
}
.notif-btn:hover {
  border-color: var(--cyan-mid);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-secondary);
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  width: 360px;
  max-height: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 1px rgba(0,229,255,0.15);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-dropdown.open {
  opacity: 1; pointer-events: all;
  transform: translateY(0) scale(1);
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
}
.notif-header-count {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 10px;
}
.notif-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-header-actions button {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 11px;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.notif-header-actions button:hover {
  background: var(--cyan-dim);
}
.notif-close-btn {
  width: 28px; height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.notif-close-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}
.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.notif-list::-webkit-scrollbar {
  width: 5px;
}
.notif-list::-webkit-scrollbar-track {
  background: transparent;
}
.notif-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.notif-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 4px;
  animation: notifSlide 0.3s ease;
  transition: background 0.15s ease;
  position: relative;
}
.notif-list li:hover {
  background: var(--bg-tertiary);
}
.notif-emoji {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-tertiary);
}
.notif-list li.success .notif-emoji { background: rgba(34,197,94,0.12); }
.notif-list li.error .notif-emoji { background: rgba(239,68,68,0.12); }
.notif-list li.info .notif-emoji { background: rgba(0,229,255,0.12); }
.notif-list li.upload .notif-emoji { background: rgba(0,229,255,0.12); }
.notif-list li.delete .notif-emoji { background: rgba(239,68,68,0.12); }
.notif-list li.restore .notif-emoji { background: rgba(34,197,94,0.12); }
.notif-list li.private .notif-emoji { background: rgba(99,102,241,0.12); }
.notif-list li.favourite .notif-emoji { background: rgba(245,158,11,0.12); }
.notif-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.notif-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.notif-msg {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.4;
  word-break: break-word;
}
.notif-time {
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.6;
}
.notif-dismiss {
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
}
.notif-list li:hover .notif-dismiss {
  opacity: 1;
}
.notif-dismiss:hover {
  background: rgba(239,68,68,0.15);
  color: var(--red);
}
.notif-unread {
  background: rgba(0,229,255,0.04);
}
.notif-unread .notif-title {
  color: var(--cyan);
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 13px;
  gap: 10px;
}
.notif-empty-icon {
  font-size: 36px;
  opacity: 0.3;
}
.notif-empty-text {
  font-size: 13px;
  color: var(--text-dim);
}
.notif-empty-sub {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.6;
}
@keyframes notifSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Profile */
.profile-wrap { position: relative; }
.profile-btn {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--aws-orange), #FF6600);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.profile-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-orange);
}
.profile-avatar { color: #fff; font-size: 16px; }
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 240px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
  overflow: hidden;
}
.profile-dropdown.open {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,153,0,0.08), transparent);
}
.profile-avatar-lg {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--aws-orange), #FF6600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  flex-shrink: 0;
}
.profile-name { font-size: 13px; font-weight: 600; }
.profile-email { font-size: 11px; color: var(--text-gray); }
.profile-divider { border-color: var(--border); margin: 0; }
.profile-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-gray);
  transition: all var(--transition);
}
.profile-menu li a i { width: 14px; color: var(--text-dim); }
.profile-menu li a:hover { color: var(--text-white); background: rgba(255,255,255,0.04); }
.logout-link:hover { color: var(--red) !important; }

/* ======================== CONTENT ======================== */
.content {
  flex: 1;
  padding: 24px 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ======================== STORAGE TICKER BANNER ======================== */
.storage-ticker-wrap {
  background: linear-gradient(90deg, rgba(0,229,255,0.05), rgba(255,153,0,0.05), rgba(0,229,255,0.05));
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 20px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 36px;
  position: relative;
}
.storage-ticker {
  display: inline-block;
  animation: tickerScroll 28s linear infinite;
  font-size: 12px;
  color: var(--text-gray);
  white-space: nowrap;
}
.storage-ticker strong { color: var(--aws-orange); }
.storage-ticker i { color: var(--cyan); }
@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ======================== HERO SECTION ======================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  min-height: 240px;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.hero-heading {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 16px;
}
.accent-text {
  background: linear-gradient(90deg, var(--aws-orange), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 20px;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-gray);
  transition: all var(--transition);
}
.badge:hover { border-color: var(--cyan-mid); color: var(--cyan); }
.badge i { color: var(--aws-orange); }

/* Floating Orbit Graphic */
.hero-graphic {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cloud-orbit {
  width: 220px; height: 220px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.ring-1 {
  width: 160px; height: 160px;
  border-color: rgba(0,229,255,0.2);
  animation: orbitSpin 12s linear infinite;
}
.ring-2 {
  width: 220px; height: 220px;
  border-color: rgba(255,153,0,0.15);
  animation: orbitSpin 18s linear infinite reverse;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orbit-core {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(255,153,0,0.15));
  border: 2px solid rgba(0,229,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: floatBob 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.orbit-dot {
  position: absolute;
  width: 32px; height: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--text-gray);
}
.orbit-dot.d1 { top: 0; left: 50%; transform: translateX(-50%); color: var(--aws-orange); }
.orbit-dot.d2 { right: 0; top: 50%; transform: translateY(-50%); color: var(--cyan); }
.orbit-dot.d3 { bottom: 0; left: 50%; transform: translateX(-50%); color: #A78BFA; }
.orbit-dot.d4 { left: 0; top: 50%; transform: translateY(-50%); color: var(--green); }

/* ======================== STORAGE CAPACITY BAR ======================== */
.storage-capacity-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
}
.capacity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.capacity-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  display: flex; align-items: center; gap: 8px;
}
.capacity-label i { color: var(--aws-orange); }
.capacity-value { font-size: 12px; color: var(--text-gray); }
.capacity-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--aws-orange));
  border-radius: 4px;
  transition: width 0.5s ease, background 0.5s ease;
}
.capacity-fill.warning { background: linear-gradient(90deg, var(--aws-orange), var(--red)); }
.capacity-fill.full    { background: var(--red); box-shadow: var(--glow-red); }
.capacity-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ======================== UPLOAD SECTION ======================== */
.upload-section {
  position: relative;
  margin-bottom: 40px;
}
.upload-box {
  background: var(--bg-secondary);
  border: 2px dashed rgba(0,229,255,0.25);
  border-radius: 20px;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.upload-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.03), transparent 70%);
  pointer-events: none;
}
.upload-box:hover,
.upload-box.drag-over {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0,229,255,0.1), inset 0 0 40px rgba(0,229,255,0.03);
  background: rgba(0,229,255,0.03);
}
.upload-icon-wrap { position: relative; margin-bottom: 8px; }
.upload-cloud-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(255,153,0,0.1));
  border: 2px solid rgba(0,229,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: var(--cyan);
  animation: floatBob 3s ease-in-out infinite;
  position: relative; z-index: 1;
}
.upload-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(0,229,255,0.15);
  animation: pulseRing 2.5s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.upload-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}
.upload-sub { font-size: 14px; color: var(--text-gray); }
.upload-hint { font-size: 12px; color: var(--text-dim); }
.upload-browse-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--aws-orange), #FF6600);
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  margin-top: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255,153,0,0.3);
}
.upload-browse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,153,0,0.4);
}

/* Progress Panel */
.progress-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.progress-filename { font-size: 13px; font-weight: 600; color: var(--text-white); }
.progress-status { font-size: 12px; color: var(--cyan); font-weight: 500; }
.progress-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--aws-orange));
  border-radius: 4px;
  transition: width 0.2s linear;
  position: relative;
  overflow: hidden;
}
.progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 14px;
}
.progress-steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  font-size: 11px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 5px;
  transition: color 0.3s;
}
.step.active { color: var(--cyan); }
.step.done   { color: var(--green); }
.step i { font-size: 12px; }

/* ======================== FILES SECTION ======================== */
.files-section { margin-bottom: 48px; }
.files-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.files-title {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-white);
}
.files-title i { color: var(--cyan); }
.files-count {
  font-size: 12px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--cyan);
}
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.files-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 14px;
}
.files-empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* File Card (glassmorphism) */
.file-card {
  background: rgba(30,42,58,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all var(--transition);
  animation: fadeInUp 0.3s ease;
  position: relative;
  overflow: hidden;
}
.file-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--aws-orange));
  opacity: 0;
  transition: opacity var(--transition);
}
.file-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-3px); }
.file-card:hover::before { opacity: 1; }
.file-card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.file-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.file-card-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 140px;
}
.file-card-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-dim);
  margin-bottom: 14px;
}
.file-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.file-status-badge.uploaded {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}
.file-status-badge.uploading {
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.2);
}
.file-card-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.fc-btn {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  color: var(--text-gray);
  font-size: 11px;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: all var(--transition);
}
.fc-btn:hover { border-color: var(--cyan-mid); color: var(--cyan); }
.fc-btn.delete:hover { border-color: rgba(239,68,68,0.4); color: var(--red); }

/* ======================== FUTURE INTEGRATIONS ======================== */
.future-section { margin-bottom: 48px; }
.future-title {
  font-family: 'Orbitron', monospace;
  font-size: 16px; font-weight: 700;
  color: var(--text-white);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.future-title i { color: var(--aws-orange); }
.future-sub { font-size: 13px; color: var(--text-gray); margin-bottom: 20px; }
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.future-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  opacity: 0.85;
}
.future-card:hover {
  opacity: 1;
  border-color: rgba(255,153,0,0.3);
  transform: translateY(-2px);
}
.future-icon {
  font-size: 28px;
  color: var(--aws-orange);
  margin-bottom: 10px;
}
.future-name {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}
.future-tag {
  display: inline-block;
  background: rgba(255,153,0,0.1);
  border: 1px solid rgba(255,153,0,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10px;
  color: var(--aws-orange);
  letter-spacing: 0.5px;
}

/* ── Future Integration Popup ── */
.future-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fpFadeIn 0.25s ease;
}
@keyframes fpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.future-popup-box {
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 1px rgba(255,153,0,0.2);
  animation: fpBoxIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes fpBoxIn {
  from { transform: scale(0.9) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.future-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.future-popup-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}
.future-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(255,153,0,0.12), rgba(0,229,255,0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--aws-orange);
}
.future-popup-title {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 8px;
}
.future-popup-msg {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0 0 20px;
}
.future-popup-btn {
  width: 100%;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--aws-orange), #FF6600);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.future-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,153,0,0.3);
}

/* ── About Us Modal ── */
.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aboutFadeIn 0.25s ease;
  padding: 20px;
}
@keyframes aboutFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.about-box {
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 1px rgba(0,229,255,0.15);
  animation: aboutBoxIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes aboutBoxIn {
  from { transform: scale(0.92) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.about-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 5;
  line-height: 1;
}
.about-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}
.about-header {
  text-align: center;
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
}
.about-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--cyan), var(--aws-orange));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,229,255,0.2);
}
.about-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 4px;
}
.about-tagline {
  font-size: 12px;
  color: var(--text-gray);
  margin: 0;
}
.about-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.about-body::-webkit-scrollbar {
  width: 5px;
}
.about-body::-webkit-scrollbar-track {
  background: transparent;
}
.about-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.about-section {
  margin-bottom: 24px;
}
.about-section:last-child {
  margin-bottom: 0;
}
.about-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-section-title i {
  color: var(--cyan);
  font-size: 13px;
}
.about-text {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0;
}
.about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.about-service {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.about-service i {
  font-size: 20px;
  margin-bottom: 2px;
}
.about-service span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
}
.about-service small {
  font-size: 10px;
  color: var(--text-dim);
}
.about-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-features li {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.6;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.about-features li i {
  margin-top: 2px;
  flex-shrink: 0;
}
.about-footer {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--cyan), #00B4D8);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.about-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,229,255,0.3);
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 700;
  color: var(--aws-orange);
}
.footer-note { font-size: 12px; color: var(--text-dim); max-width: 500px; line-height: 1.6; }
.footer-links {
  display: flex; align-items: center; gap: 20px;
  font-size: 12px; color: var(--text-gray);
}
.footer-links a { transition: color var(--transition); display: flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--cyan); }

/* ======================== STORAGE FULL POPUP ======================== */
.storage-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.storage-popup {
  background: var(--bg-secondary);
  border: 2px solid var(--red);
  border-radius: 20px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--glow-red);
  animation: popupIn 0.3s ease;
}
@keyframes popupIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.storage-popup-icon {
  font-size: 48px;
  color: var(--red);
  margin-bottom: 16px;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}
.storage-popup h2 {
  font-family: 'Orbitron', monospace;
  font-size: 18px; font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}
.storage-popup p { font-size: 13px; color: var(--text-gray); line-height: 1.6; margin-bottom: 6px; }
.storage-popup p strong { color: var(--aws-orange); }
.storage-popup-btns { display: flex; gap: 12px; margin-top: 24px; }
.btn-upgrade {
  flex: 1;
  background: linear-gradient(135deg, var(--aws-orange), #FF6600);
  border: none;
  border-radius: 40px;
  padding: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-upgrade:hover { transform: translateY(-2px); box-shadow: var(--glow-orange); }
.btn-close-popup {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 12px;
  color: var(--text-gray);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-close-popup:hover { border-color: var(--red); color: var(--red); }

/* ======================== TOAST NOTIFICATIONS ======================== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-white);
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  pointer-events: all;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.fadeout { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--cyan); }
.toast i { font-size: 16px; }
.toast.success i { color: var(--green); }
.toast.error   i { color: var(--red); }
.toast.info    i { color: var(--cyan); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1400px) {
  .services-navigation {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 1024px) {
  .services-navigation {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .service-card-hero {
    padding: 16px 12px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
  }
  .main-wrapper { margin-left: 0; }
  .nav-hamburger { display: block; }
  .nav-brand-mobile { display: block; }
  .nav-search { display: none; }
  .content { padding: 16px; }
  
  .hero { 
    gap: 16px;
  }
  
  .services-navigation {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    max-width: 100%;
  }
  
  .service-card-hero {
    padding: 14px 10px;
    gap: 8px;
  }
  
  .service-icon-hero {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .service-name-hero {
    font-size: 12px;
  }
  
  .upload-box { padding: 40px 20px; }
  .files-grid { grid-template-columns: 1fr 1fr; }
  .future-grid { grid-template-columns: 1fr 1fr; }
  
  .footer-services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .footer-service-item {
    padding: 16px 10px;
  }
  .footer-service-item i {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .sidebar-toggle {
    display: block;
  }
  
  .hero-heading {
    font-size: 24px;
  }
  
  .hero-sub-title {
    font-size: 13px;
  }
  
  .services-navigation {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
  }
  
  .service-card-hero {
    padding: 12px 8px;
    gap: 6px;
  }
  
  .service-icon-hero {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .service-name-hero {
    font-size: 11px;
  }
  
  .files-grid { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr 1fr; }
  .storage-popup-btns { flex-direction: column; }
  .progress-steps { gap: 8px; }
  .footer-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .footer-service-item {
    padding: 14px 10px;
  }
  .footer-service-item i {
    font-size: 24px;
  }
}

/* ======================== PROFILE SECTION ADDITIONS ======================== */

/* Profile dropdown — wider to accommodate storage block */
.profile-dropdown {
  width: 320px;
}

/* Profile header layout */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 0;
}

/* Large avatar with edit overlay */
.profile-avatar-lg {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--cyan-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--cyan);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.profile-avatar-lg:hover { border-color: var(--aws-orange); }
.avatar-edit-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 16px;
  color: #fff;
}
.profile-avatar-lg:hover .avatar-edit-overlay { opacity: 1; }

/* Profile info block */
.profile-info-block { flex: 1; }

/* Name display + edit button */
.profile-name-wrap {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.profile-name {
  font-size: 14px; font-weight: 700;
  color: var(--text-white);
}
.profile-edit-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 6px;
  color: var(--text-dim);
  font-size: 10px;
  transition: all var(--transition);
}
.profile-edit-btn:hover { border-color: var(--cyan-mid); color: var(--cyan); }

/* Name edit input */
.profile-name-edit-wrap {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 4px;
}
.profile-name-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--cyan-mid);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  width: 130px;
  outline: none;
}
.profile-save-btn {
  background: var(--green);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  color: #fff;
  font-size: 11px;
  transition: opacity var(--transition);
}
.profile-save-btn:hover { opacity: 0.85; }
.profile-cancel-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text-dim);
  font-size: 11px;
  transition: all var(--transition);
}
.profile-cancel-btn:hover { border-color: var(--red); color: var(--red); }

.profile-email {
  font-size: 11px;
  color: var(--text-dim);
}

/* ======================== PROFILE STORAGE BLOCK ======================== */
.profile-storage-block {
  padding: 14px 16px;
  background: var(--bg-tertiary);
  margin: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.profile-storage-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.profile-storage-stats {
  display: flex; gap: 0;
  margin-bottom: 10px;
}
.pss-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border);
}
.pss-item:last-child { border-right: none; }
.pss-label {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.pss-val {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  font-family: 'Orbitron', monospace;
}

/* Animated storage bar */
.profile-storage-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.profile-storage-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
  position: relative;
}
.profile-storage-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}
/* Color states */
.profile-storage-fill.yellow { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.profile-storage-fill.red    { background: linear-gradient(90deg, #EF4444, #DC2626); box-shadow: 0 0 8px rgba(239,68,68,0.5); }

.profile-storage-pct {
  display: flex; justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ======================== PROFILE MENU ======================== */
.profile-menu {
  padding: 4px 8px 8px;
}
.profile-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-gray);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.profile-menu li a:hover {
  background: var(--bg-tertiary);
  color: var(--text-white);
  border-color: var(--border);
}
.profile-menu li a i {
  width: 16px; text-align: center;
  color: var(--cyan);
}
.profile-menu li a.logout-link i { color: var(--red); }
.profile-menu li a.logout-link:hover { border-color: rgba(239,68,68,0.3); color: var(--red); }

/* ======================== AVATAR SMALL (navbar) ======================== */
.profile-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--cyan-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--cyan);
  overflow: hidden;
  transition: border-color var(--transition);
}
.profile-btn:hover .profile-avatar { border-color: var(--aws-orange); }

/* ======================== AVATAR CROP MODAL ======================== */
.crop-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.crop-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--cyan-mid);
  border-radius: 20px;
  padding: 28px;
  width: 340px;
  box-shadow: var(--glow-cyan);
  animation: popupIn 0.3s ease;
}
.crop-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}
.crop-modal-header button {
  background: transparent; border: none;
  color: var(--text-dim); font-size: 16px;
  transition: color var(--transition);
}
.crop-modal-header button:hover { color: var(--red); }
.crop-preview-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
}
.crop-image-container {
  width: 280px; height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--cyan-mid);
  box-shadow: var(--glow-cyan);
  background: var(--bg-tertiary);
}
.crop-image-container img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.crop-hint {
  font-size: 11px;
  color: var(--text-dim);
}
.crop-modal-btns {
  display: flex; gap: 10px; margin-top: 20px;
}
.crop-confirm-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--cyan), #0099CC);
  border: none;
  border-radius: 40px;
  padding: 10px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition);
}
.crop-confirm-btn:hover { transform: translateY(-2px); box-shadow: var(--glow-cyan); }
.crop-cancel-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px;
  color: var(--text-gray);
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition);
}
.crop-cancel-btn:hover { border-color: var(--red); color: var(--red); }

/* ======================== FOOTER AWS SERVICES ======================== */
.footer-aws-section {
  width: 100%;
  max-width: 900px;
  margin: 12px 0;
}
.footer-aws-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--aws-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
}
.footer-aws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.footer-aws-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
  text-align: left;
}
.footer-aws-card:hover {
  border-color: rgba(255,153,0,0.3);
  transform: translateY(-2px);
}
.footer-aws-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.footer-aws-info { flex: 1; }
.footer-aws-name {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
  font-family: 'Orbitron', monospace;
}
.footer-aws-desc {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ======================== FOOTER SERVICES GRID ======================== */
.footer-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.footer-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 16px;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.footer-service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

/* Hover glow effect */
.footer-service-item:hover {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(145deg, rgba(30, 42, 58, 0.9), rgba(30, 42, 58, 0.7));
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2), 0 0 60px rgba(34, 197, 94, 0.05);
}

.footer-service-item:hover::before {
  opacity: 1;
}

/* Active state - permanent glow */
.footer-service-item.active {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(145deg, rgba(30, 42, 58, 0.95), rgba(30, 42, 58, 0.85));
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.25), inset 0 0 20px rgba(34, 197, 94, 0.05);
}

.footer-service-item.active::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

/* Service icons with alternating green/orange colors */
.footer-service-item i {
  font-size: 32px;
  transition: all var(--transition);
}

.footer-service-item.service-green i { color: var(--green); }
.footer-service-item.service-orange i { color: var(--aws-orange); }

.footer-service-item:hover i {
  transform: scale(1.15);
}

.footer-service-item span {
  color: var(--text-white);
  font-weight: 600;
  display: block;
  font-size: 13px;
}

/* ======================== PROFILE DROPDOWN OPEN STATE ======================== */
.profile-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 10px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  min-width: 320px;
  z-index: 200;
  overflow: hidden;
  animation: dropdownIn 0.2s ease;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.profile-dropdown.open { display: flex; }

/* profile-wrap needs relative positioning */
.profile-wrap { position: relative; }

/* Profile divider */
.profile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

/* Remove old storage capacity section from main — keep only in profile */
.storage-capacity-section { display: none !important; }


/* ======================== AUTH LOGIN MODAL ======================== */
.auth-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.2s ease;
}
@keyframes authFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.auth-modal {
  background: linear-gradient(145deg, #131B2E, #1A2440);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 24px;
  padding: 48px 40px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(0,229,255,0.08), 0 20px 60px rgba(0,0,0,0.5);
  animation: authPopIn 0.3s ease;
  position: relative;
}
@keyframes authPopIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.auth-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 20px;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.auth-modal-close:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-white);
}
.auth-modal-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(255,153,0,0.08));
  border: 2px solid rgba(0,229,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--cyan);
}
.auth-modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}
.auth-modal-sub {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 28px;
}
.auth-modal-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 40px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-modal-btn.primary {
  background: linear-gradient(135deg, var(--aws-orange), #FF6600);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,153,0,0.3);
}
.auth-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,153,0,0.4);
}
.auth-modal-btn.secondary {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--cyan);
}
.auth-modal-btn.secondary:hover {
  background: rgba(0,229,255,0.15);
  transform: translateY(-2px);
}
.auth-modal-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-modal-footer i {
  color: var(--cyan);
  font-size: 11px;
}

/* Auth modal — OR divider */
.auth-modal-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-dim);
}
.auth-modal-or span:first-child,
.auth-modal-or span:last-child {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-modal-or span:nth-child(2) {
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

/* Auth modal — Google button */
.auth-modal-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-gray);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-modal-google:hover {
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
  color: var(--text-white);
  transform: translateY(-1px);
}
.auth-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sidebar section divider */
.sidebar-section-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 12px;
}

/* ======================== UPLOAD BOX LOCKED STATE ======================== */
.upload-box.auth-locked {
  position: relative;
  cursor: default;
  opacity: 0.6;
  border-color: rgba(239,68,68,0.3);
}
.upload-box.auth-locked::after {
  content: '023  Sign in to upload';
  font-family: 'Font Awesome 6 Free', 'Syne', sans-serif;
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 20px;
  color: var(--text-gray);
  font-size: 15px;
  font-weight: 600;
  z-index: 5;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.upload-box.auth-locked:hover::after {
  color: var(--cyan);
  background: rgba(0,0,0,0.6);
}
.upload-box.auth-locked .upload-browse-btn,
.upload-box.auth-locked .upload-title,
.upload-box.auth-locked .upload-sub,
.upload-box.auth-locked .upload-hint,
.upload-box.auth-locked .upload-icon-wrap {
  filter: blur(1px);
  pointer-events: none;
}

/* Service card cursor - clickable cards */
.service-card[data-url]:not(.service-card[data-url=""]) { cursor: pointer; }

/* ======================== PROFILE SECTION (injected) ======================== */
.profile-section {
  position: relative;
  animation: sectionFadeIn 0.3s ease;
  min-height: 300px;
}

.profile-section .panel-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 16px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.profile-section .panel-close-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
  transform: scale(1.08);
}

.profile-section-inner {
  width: 100%;
}

.profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-gray);
  font-size: 14px;
}

.profile-loading i {
  font-size: 32px;
  color: var(--cyan);
}

/* When profile section is open, hide the hero/upload/future behind it */
.profile-section {
  margin-top: 24px;
}

/* When profile pages are injected into the right panel, hide the
   duplicate sidebar — keep the layout container visible so content renders */
#profileSectionInner .profile-sidebar,
#profileSectionInner .profile-sidebar-nav,
#profileSectionInner .profile-sidebar-label,
#profileSectionInner .profile-sidebar-divider {
  display: none !important;
}

#profileSectionInner .profile-layout {
  height: auto;
  min-height: auto;
  flex-direction: column;
}

#profileSectionInner .profile-content {
  flex: 1 1 100%;
  max-width: 100%;
}

#profileSectionInner .profile-content-inner {
  max-width: 100%;
}

/* Fix scroll for injected section content */
#profileSectionInner {
  overflow-y: auto;
  max-height: calc(100vh - var(--topnav-height) - 48px);
}

#profileSectionInner body {
  min-height: auto !important;
  height: auto !important;
}

/* Mobile: stack nav-section-title under nav on small screens */
@media (max-width: 768px) {
  .nav-section-title.visible {
    display: none;
  }
}

/* ======================== COMPREHENSIVE RESPONSIVE OVERHAUL ======================== */

/* ── 1400px and below ── */
@media (max-width: 1400px) {
  .content { max-width: 100%; padding: 24px 28px; }
  .fav-folders-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 1200px and below ── */
@media (max-width: 1200px) {
  .content { padding: 20px 24px; }
  .files-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .mc-files-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .fav-folders-grid { grid-template-columns: repeat(3, 1fr); }
  .future-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-aws-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ── 1024px and below ── */
@media (max-width: 1024px) {
  .content { padding: 18px 20px; }
  .hero { flex-direction: column; gap: 24px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-heading { font-size: clamp(26px, 5vw, 40px); }
  .hero-sub { max-width: 100%; }
  .hero-badges { justify-content: center; }
  .hero-graphic { display: none; }
  .files-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .fav-folders-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .mc-files-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .future-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .footer-aws-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .about-services-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-dropdown { min-width: 280px; }
  .nav-search { display: none; }
  .nav-section-title.visible { display: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-brand-mobile { display: block; }
}

/* ── 900px and below ── */
@media (max-width: 900px) {
  .fav-folders-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-services-links { gap: 4px 10px; }
  .service-text-link { font-size: 11px; padding: 3px 6px; }
  .hero-heading { font-size: clamp(24px, 4.5vw, 34px); }
}

/* ── 768px and below ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 280px; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,0.5); }
  .sidebar-overlay.active { display: block; }
  .main-wrapper { margin-left: 0; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-brand-mobile { display: block; }
  .nav-search { display: none; }
  .content { padding: 14px 14px; }
  
  .hero { flex-direction: column; gap: 20px; text-align: center; min-height: auto; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-heading { font-size: clamp(22px, 5vw, 30px); text-align: center; }
  .hero-sub { max-width: 100%; text-align: center; font-size: 14px; }
  .hero-badges { justify-content: center; }
  .hero-graphic { display: none; }
  
  .storage-ticker-wrap { padding: 8px 14px; border-radius: 20px; margin-bottom: 24px; }
  .storage-ticker { font-size: 10px; animation-duration: 20s; }
  
  .upload-box { padding: 36px 20px; }
  .upload-cloud-icon { width: 64px; height: 64px; font-size: 26px; }
  .upload-title { font-size: 18px; }
  .upload-sub { font-size: 13px; }
  .upload-browse-btn { padding: 10px 22px; font-size: 13px; }
  
  .files-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .files-title { font-size: 14px; }
  .file-card { padding: 12px; }
  .file-card-name { max-width: 100px; font-size: 12px; }
  .file-card-meta { font-size: 10px; }
  
  .future-grid { grid-template-columns: repeat(2, 1fr); }
  .future-card { padding: 16px 12px; }
  .future-name { font-size: 11px; }
  
  .footer { padding: 18px 16px; }
  .footer-inner { gap: 10px; }
  .footer-aws-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-aws-card { padding: 10px; }
  .footer-aws-name { font-size: 11px; }
  .footer-aws-desc { display: none; }
  .footer-note { font-size: 11px; max-width: 100%; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer-services-links { gap: 3px 8px; }
  .service-text-link { font-size: 10px; padding: 2px 5px; }
  
  .storage-popup { padding: 28px 20px; }
  .storage-popup h2 { font-size: 16px; }
  .storage-popup p { font-size: 12px; }
  .storage-popup-btns { flex-direction: column; }
  .btn-upgrade, .btn-close-popup { padding: 10px; }
  
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: auto; width: 100%; font-size: 12px; padding: 10px 14px; }
  
  .notif-dropdown { width: 300px; right: -60px; }
  .notif-list { max-height: 350px; }
  
  .profile-dropdown { min-width: 280px; width: 280px; right: -10px; }
  
  .about-box { max-width: 100%; margin: 0 10px; max-height: 90vh; }
  .about-header { padding: 24px 20px 16px; }
  .about-body { padding: 16px 20px; }
  .about-services-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .about-service { padding: 10px 8px; }
  .about-footer { padding: 12px 20px 18px; }
  
  .future-popup-box { padding: 28px 20px; max-width: 340px; }
  
  .crop-modal { width: 90%; padding: 20px; }
  .crop-image-container { width: 100%; height: auto; aspect-ratio: 1; }
  
  .auth-modal { padding: 36px 24px 28px; }
  .auth-modal-title { font-size: 18px; }
  .auth-modal-sub { font-size: 13px; }
  
  .progress-steps { gap: 8px; flex-wrap: wrap; }
  .step { font-size: 10px; }
  .progress-filename { font-size: 12px; }
  
  /* Sidebar overlay */
  .sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    display: none;
  }
  .sidebar-overlay.active { display: block; }
  
  .sidebar-toggle { display: block; }
}

/* ── 600px and below ── */
@media (max-width: 600px) {
  .content { padding: 10px 10px; }
  
  .hero-heading { font-size: clamp(20px, 6vw, 26px); }
  .hero-eyebrow { font-size: 10px; padding: 4px 12px; }
  .hero-sub { font-size: 13px; }
  .badge { font-size: 10px; padding: 4px 10px; }
  
  .files-grid { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr 1fr; }
  
  .storage-ticker-wrap { margin-bottom: 16px; padding: 6px 12px; }
  .storage-ticker { font-size: 9px; animation-duration: 15s; }
  
  .upload-box { padding: 24px 14px; }
  .upload-cloud-icon { width: 56px; height: 56px; font-size: 22px; }
  .upload-title { font-size: 16px; }
  .upload-sub { font-size: 12px; }
  .upload-hint { font-size: 10px; }
  .upload-browse-btn { padding: 8px 18px; font-size: 12px; }
  
  .progress-panel { padding: 14px; }
  .progress-filename { font-size: 11px; }
  .progress-steps { gap: 6px; }
  .step { font-size: 9px; gap: 3px; }
  
  .topnav { padding: 0 10px; height: 56px; gap: 8px; }
  .nav-right { gap: 6px; }
  .notif-btn, .profile-btn { width: 34px; height: 34px; }
  .profile-avatar { width: 30px; height: 30px; font-size: 13px; }
  
  .notif-dropdown { width: calc(100vw - 20px); right: -10px; max-width: 360px; }
  .notif-header { padding: 12px 14px; }
  .notif-list { max-height: 300px; }
  .notif-list li { padding: 10px 12px; font-size: 11px; }
  
  .profile-dropdown { min-width: 260px; width: calc(100vw - 20px); right: -5px; }
  .profile-header { padding: 14px 14px 0; }
  .profile-avatar-lg { width: 48px; height: 48px; font-size: 18px; }
  .profile-name { font-size: 12px; }
  .profile-email { font-size: 10px; }
  .profile-storage-block { padding: 10px 12px; }
  .pss-val { font-size: 11px; }
  .profile-menu li a { padding: 8px 12px; font-size: 12px; }
  
  .storage-popup { max-width: 95%; padding: 24px 16px; }
  .storage-popup h2 { font-size: 15px; }
  .storage-popup-icon { font-size: 36px; }
  
  .about-box { border-radius: 14px; }
  .about-title { font-size: 17px; }
  .about-tagline { font-size: 11px; }
  .about-services-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .about-service i { font-size: 16px; }
  .about-service span { font-size: 10px; }
  .about-service small { font-size: 9px; }
  
  .future-popup-box { padding: 24px 16px; max-width: 300px; }
  .future-popup-title { font-size: 14px; }
  
  .auth-modal { padding: 28px 18px 24px; }
  .auth-modal-title { font-size: 16px; }
  .auth-modal-icon { width: 56px; height: 56px; font-size: 22px; }
  .auth-modal-btn { padding: 12px 20px; font-size: 14px; }
  
  .toast { font-size: 11px; padding: 8px 12px; }
  
  .sidebar { width: 260px; }
  .sidebar-logo { padding: 0 14px; }
  .sidebar-nav { padding: 12px 0; }
  .sidebar-nav-label { padding: 0 14px 8px; font-size: 10px; }
  .utility-menu { padding: 0 8px; }
  .utility-item { padding: 8px 10px; font-size: 12px; }
  .sidebar-storage { padding: 12px 12px 10px; margin: 6px 8px 0; }
  .sidebar-storage-label { font-size: 10px; }
  .sidebar-storage-value { font-size: 10px; }
  
  .footer { padding: 14px 12px; }
  .footer-brand { font-size: 12px; }
  .footer-aws-title { font-size: 10px; }
  .footer-aws-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .footer-aws-card { padding: 8px; }
  .footer-aws-name { font-size: 10px; }
  .footer-services-links { gap: 2px 6px; }
  .service-text-link { font-size: 9px; padding: 2px 4px; gap: 3px; }
  .service-text-link i { font-size: 9px; width: 12px; }
  .footer-note { font-size: 10px; }
  .footer-links { font-size: 10px; gap: 8px; }
}

/* ── 400px and below ── */
@media (max-width: 400px) {
  .content { padding: 6px 6px; }
  .hero-heading { font-size: 18px; }
  .hero-eyebrow { font-size: 9px; padding: 3px 10px; }
  .hero-sub { font-size: 12px; }
  .hero-badges { gap: 4px; }
  .badge { font-size: 9px; padding: 3px 8px; gap: 4px; }
  
  .topnav { padding: 0 6px; height: 50px; gap: 4px; }
  .nav-right { gap: 4px; }
  .notif-btn, .profile-btn { width: 30px; height: 30px; font-size: 13px; }
  .profile-avatar { width: 26px; height: 26px; font-size: 11px; }
  .nav-brand-mobile { font-size: 11px; }
  .nav-hamburger { font-size: 16px; }
  
  .files-grid { grid-template-columns: 1fr; gap: 8px; }
  .future-grid { grid-template-columns: 1fr; }
  .upload-box { padding: 20px 10px; }
  .upload-cloud-icon { width: 48px; height: 48px; font-size: 18px; }
  .upload-title { font-size: 14px; }
  .upload-sub { font-size: 11px; }
  
  .toast { font-size: 10px; padding: 6px 10px; }
  .toast i { font-size: 13px; }
  
  .sidebar { width: 240px; }
  
  .notif-dropdown { width: calc(100vw - 12px); max-width: none; right: -6px; }
  .profile-dropdown { width: calc(100vw - 12px); min-width: auto; }
  
  .about-header { padding: 20px 14px 12px; }
  .about-body { padding: 12px 14px; }
  .about-title { font-size: 15px; }
  .about-logo { width: 48px; height: 48px; font-size: 20px; }
  .about-services-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .about-service { padding: 8px 6px; }
  .about-service i { font-size: 14px; }
  .about-service span { font-size: 9px; }
  .about-service small { display: none; }
  .about-section-title { font-size: 12px; }
  .about-text { font-size: 11px; }
  .about-features li { font-size: 11px; }
  .about-btn { font-size: 12px; padding: 10px; }
  
  .future-popup-box { padding: 20px 14px; }
  .future-popup-title { font-size: 13px; }
  .future-popup-msg { font-size: 11px; }
  
  .sidebar-storage { padding: 10px 10px 8px; margin: 4px 6px 0; }
  .logo-title { font-size: 12px; }
  .logo-sub { font-size: 9px; }
  .logo-icon { width: 38px; height: 38px; font-size: 17px; }
}


/* ── DevTools / split-screen safety ── */
@media (max-width: 500px) and (min-resolution: 2dppx) {
  .main-wrapper { min-width: 0; }
  .content { max-width: 100vw; overflow-x: hidden; }
}

/* ── Ensure modals never exceed viewport in any scenario ── */
.about-box, .auth-modal, .storage-popup, .future-popup-box,
.crop-modal, .notif-dropdown, .profile-dropdown {
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Ensure images in hero never overflow ── */
.hero-graphic img { max-width: 100%; height: auto; }

/* ── Ensure topnav content wraps gracefully ── */
.nav-right { flex-wrap: nowrap; }

/* ── Fix long file names not breaking ── */
.file-card-name, .mc-file-name, .fav-file-name,
.fname, .ucm-file-item-name, .upf-card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── table-wrap for horizontal scroll ── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Sidebar toggle enhanced for mobile (the base display:none is in the original sidebar-toggle rule) ── */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,229,255,0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 16px;
    width: 34px;
    height: 34px;
    position: absolute;
    top: 18px;
    right: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .sidebar-toggle:hover {
    background: rgba(0,229,255,0.15);
    color: var(--cyan);
    border-color: var(--cyan-mid);
  }
}

/* ── Layout fixes for content injection (profile sections, etc.) ── */
#profileSectionInner {
  width: 100%;
  overflow-x: hidden;
}

/* ── Service pages inside iframe/content injection ── */
.favourite-section, .uploadfiles-section, .mycloud-section, .setting-section, .profile-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Make Font Awesome icons scale nicely ── */
.fa-fw { text-align: center; width: 1.25em; }

/* Small text-based service links in footer */
.footer-services-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 0 auto;
  max-width: 700px;
}

.service-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-gray);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.service-text-link:hover {
  color: var(--cyan);
  background: rgba(0,229,255,0.06);
}

.service-text-link i {
  font-size: 11px;
  color: var(--aws-orange);
  width: 14px;
  text-align: center;
}
