/* ==========================================================================
   MikuDesu Bio Link - Modern APK Mobile-First Stylesheet
   Designed by Miku Nakano for Master Yanzz
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(26, 38, 64, 0.9);
  --bg-elevated: #151f33;

  --color-cyan: #00e5ff;
  --color-cyan-glow: rgba(0, 229, 255, 0.35);
  --color-blue: #38bdf8;
  --color-purple: #8b5cf6;
  --color-purple-glow: rgba(139, 92, 246, 0.35);
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-pink: #ec4899;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-cyan-glow: rgba(0, 229, 255, 0.3);
  --border-purple-glow: rgba(139, 92, 246, 0.3);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px -5px var(--color-cyan-glow);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.7);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

/* --------------------------------------------------------------------------
   Lightweight 60FPS Mobile Background (GPU-Optimized)
   -------------------------------------------------------------------------- */
body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(0, 229, 255, 0.16), transparent 45%),
    radial-gradient(circle at 100% 35%, rgba(139, 92, 246, 0.1), transparent 40%);
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   App Container (100% Full Width Mobile First)
   -------------------------------------------------------------------------- */
.app-container {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding-bottom: 96px; /* Space for floating island nav */
  margin: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar (Flush Edge-to-Edge Left & Right)
   -------------------------------------------------------------------------- */
.app-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #090e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--border-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.brand-icon {
  width: 20px;
  height: 20px;
}

.brand-logo-img,
.drawer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #ffffff, var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

/* Modern Icon Button */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.25s var(--ease-smooth);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--color-cyan);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* Hamburger Icon Animation */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s, background-color 0.2s;
}

.hamburger-btn[aria-expanded="true"] .line-1 {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--color-cyan);
}

.hamburger-btn[aria-expanded="true"] .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn[aria-expanded="true"] .line-3 {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--color-cyan);
}

/* --------------------------------------------------------------------------
   App Content Section
   -------------------------------------------------------------------------- */
.app-content {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Anime App Launcher Hero Stage
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 26, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.stage-backdrop {
  height: 90px;
  background: linear-gradient(135deg, #02203a 0%, #15103a 50%, #2b0b38 100%);
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}

.stage-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.35), transparent 70%);
}

.corner-venom-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(139, 92, 246, 0.35));
  border-bottom-left-radius: 14px;
  border-bottom: 1.5px solid rgba(0, 229, 255, 0.45);
  border-left: 1.5px solid rgba(0, 229, 255, 0.45);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.stage-core {
  padding: 0 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -50px;
  position: relative;
  z-index: 3;
}

/* App Squircle Avatar */
.app-avatar-box {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
}

.avatar-ring-glow {
  position: absolute;
  inset: -6px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  /* no heavy blur */
  opacity: 0.6;
}

.avatar-square {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #090d16;
  border: 2px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.avatar-svg {
  width: 100%;
  height: 100%;
}

.avatar-real-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.verified-emblem {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--color-cyan);
  color: #070a12;
  border: 2.5px solid #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.6);
}

.stage-text {
  width: 100%;
  margin-bottom: 18px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-cyan);
  letter-spacing: 0.5px;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.hero-subtext {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Hero CTA Group (Console / APK Launcher Style) */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-hero-primary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px -4px rgba(0, 162, 255, 0.5);
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 162, 255, 0.7);
}

.btn-hero-primary:active {
  transform: scale(0.97);
}

.btn-hero-left {
  flex-shrink: 0;
}

.btn-play-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-fill {
  fill: #ffffff;
}

.btn-hero-center {
  flex: 1;
  text-align: left;
}

.btn-top-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  opacity: 0.85;
}

.btn-main-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-hero-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge-size {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  text-align: left;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

.btn-sec-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-sec-text {
  flex: 1;
}

.btn-sec-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-sec-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Hero Rating Pill */
.hero-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-top: 10px;
}

.rating-stars-mini {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-filled {
  color: var(--color-amber) !important;
  fill: var(--color-amber);
}

.star-empty {
  color: rgba(255, 255, 255, 0.2) !important;
}

.rating-score-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.rating-store-text {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 8px;
}

/* --------------------------------------------------------------------------
   App Story Showcase & Interactive Trailer
   -------------------------------------------------------------------------- */
.story-showcase-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.story-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-story-card-wrapper {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.95), rgba(9, 14, 26, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 2px;
  font-size: 0.72rem;
}

.story-dev-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.story-dev-pill strong {
  color: var(--color-cyan);
  font-weight: 700;
}

.story-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.story-act-icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Google Play Store Real Rating & Reviews Section
   -------------------------------------------------------------------------- */
.reviews-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.85), rgba(12, 18, 32, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.rating-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.big-score {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.score-caption {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.rating-bars-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 8px;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: var(--radius-pill);
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card {
  background: rgba(18, 26, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.av-1 { background: linear-gradient(135deg, #0284c7, #0369a1); }
.av-2 { background: linear-gradient(135deg, #ec4899, #be185d); }
.av-3 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.reviewer-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.reviewer-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.review-body {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
  font-style: italic;
}

/* Button Write Review */
.btn-write-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: #f8fafc;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-write-review:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.7);
  transform: translateY(-1px);
}

.icon-nano {
  width: 10px;
  height: 10px;
}

/* --------------------------------------------------------------------------
   Bento App Hub (Asymmetric Grid Layout)
   -------------------------------------------------------------------------- */
.bento-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-emerald);
  letter-spacing: 0.5px;
}

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

.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card {
  position: relative;
  background: rgba(18, 26, 43, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
  text-align: left;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

.bento-card:active {
  transform: scale(0.98);
}

/* Featured Large Playstore Bento */
.bento-playstore {
  background: linear-gradient(135deg, rgba(14, 28, 48, 0.95), rgba(15, 23, 42, 0.85));
  border: 1.5px solid rgba(0, 229, 255, 0.4);
}

.bento-highlight-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-box {
  background: linear-gradient(135deg, #00e5ff, #3b82f6);
  color: #070a12;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.web-box {
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.bento-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-glow-cyan {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--color-cyan);
}

.pill-glow-purple {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--color-purple);
}

.pill-slate {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.bento-body {
  margin-bottom: 14px;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.bento-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-metric-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.bento-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-cyan);
  color: #070a12;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Community & Quick Services Grid (Lightweight & Clean)
   -------------------------------------------------------------------------- */
.community-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(18, 26, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, border-color 0.2s;
  text-align: left;
  width: 100%;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-link-card:active {
  transform: scale(0.97);
}

.quick-link-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-box { background: rgba(0, 229, 255, 0.15); }
.disc-box { background: rgba(99, 102, 241, 0.15); }
.feat-box { background: rgba(245, 158, 11, 0.15); }
.rep-box { background: rgba(236, 72, 153, 0.15); }

.quick-link-text {
  flex: 1;
  min-width: 0;
}

.quick-link-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-link-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Quick Action Grid Row
   -------------------------------------------------------------------------- */
.action-grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s var(--ease-spring);
}

.grid-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.grid-action-btn:active {
  transform: scale(0.94);
}

.action-btn-icon {
  width: 22px;
  height: 22px;
}

.action-btn-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   SEO Keyword Tags Pills
   -------------------------------------------------------------------------- */
.seo-keywords-section {
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
  width: 100%;
}

.keywords-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.kw-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.kw-pill:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.25);
  color: var(--color-cyan);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.app-footer {
  margin-top: 10px;
  padding: 18px 0 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-glass);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--color-cyan);
}

/* --------------------------------------------------------------------------
   APK Style Floating Island Bottom Navigation Bar (Ergonomic & Modern)
   -------------------------------------------------------------------------- */
.app-bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 410px;
  height: 60px;
  background: rgba(13, 20, 36, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 229, 255, 0.18);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s var(--ease-spring);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.bottom-nav-item:hover, .bottom-nav-item.active-nav {
  color: var(--color-cyan);
}

.bottom-nav-item:active {
  transform: scale(0.9);
}

.b-icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Slide-Over Drawer Panel (Hamburger Menu from Top-Right)
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #090e1a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  z-index: 100;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-panel.open {
  transform: translate3d(0, 0, 0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(13, 19, 34, 0.85);
  position: sticky;
  top: 0;
  z-index: 2;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid var(--border-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.drawer-version {
  font-size: 0.68rem;
  color: var(--text-dim);
  display: block;
}

.drawer-content {
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s var(--ease-smooth);
  width: 100%;
  text-align: left;
}

.drawer-nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.drawer-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-bg { background: rgba(0, 229, 255, 0.15); }
.web-bg { background: rgba(139, 92, 246, 0.15); }
.feat-bg { background: rgba(245, 158, 11, 0.15); }
.tg-bg { background: rgba(0, 229, 255, 0.15); }
.disc-bg { background: rgba(99, 102, 241, 0.15); }
.report-bg { background: rgba(236, 72, 153, 0.15); }
.copy-bg { background: rgba(16, 185, 129, 0.15); }

.drawer-nav-text {
  flex: 1;
  min-width: 0;
}

.drawer-link-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.drawer-link-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.drawer-info-card {
  margin-top: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.info-label {
  color: var(--text-dim);
}

.info-value {
  color: var(--text-muted);
  font-weight: 600;
}

.status-online {
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}

/* --------------------------------------------------------------------------
   Bottom Sheet Modal (Features)
   -------------------------------------------------------------------------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sheet-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 460px;
  background: #0d1322;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  z-index: 105;
  transition: transform 0.35s var(--ease-spring);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.sheet-modal.open {
  transform: translate(-50%, 0);
}

.sheet-handle-bar {
  padding: 12px 0 6px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 14px;
  border-bottom: 1px solid var(--border-glass);
}

.sheet-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.sheet-body {
  padding: 18px 20px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-cyan-soft { background: rgba(0, 229, 255, 0.12); }
.bg-purple-soft { background: rgba(139, 92, 246, 0.12); }
.bg-emerald-soft { background: rgba(16, 185, 129, 0.12); }
.bg-amber-soft { background: rgba(245, 158, 11, 0.12); }

.feature-text {
  flex: 1;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sheet-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-cyan), #0099ff);
  color: #070a12;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
  transition: transform 0.2s ease;
}

.sheet-cta-btn:hover {
  transform: translateY(-2px);
}

.sheet-cta-btn:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   Dialog Modals (Form & QR)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dialog-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: 90%;
  max-width: 400px;
  background: #0d1322;
  border: 1px solid var(--border-cyan-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
  overflow: hidden;
}

.dialog-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-form {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s, background-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--color-cyan), #0284c7);
  color: #070a12;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s;
}

.modal-submit-btn:hover {
  transform: translateY(-2px);
}

.modal-submit-btn:active {
  transform: scale(0.97);
}

/* QR Dialog Specific */
.qr-dialog .qr-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.qr-box {
  width: 170px;
  height: 170px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-purple-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.qr-svg {
  width: 100%;
  height: 100%;
}

.qr-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -100px);
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid var(--border-cyan-glow);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.25);
  z-index: 200;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
}

.toast-message {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Helper & Utility Icon Classes
   -------------------------------------------------------------------------- */
.icon-micro { width: 14px; height: 14px; }
.icon-tiny { width: 15px; height: 15px; }
.icon-xs { width: 16px; height: 16px; }
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 24px; height: 24px; }

.text-cyan { color: var(--color-cyan) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-emerald { color: var(--color-emerald) !important; }
.text-amber { color: var(--color-amber) !important; }
.text-indigo { color: #818cf8 !important; }
.text-pink { color: var(--color-pink) !important; }
.text-muted { color: var(--text-muted) !important; }

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  body {
    background-color: var(--bg-primary);
  }

  .app-container {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}