/* ==========================================================================
   Khater Factory Linktree Design System (مصنع خاطر)
   Theme: Industrial Dark / Cyber Emerald / Radiant Amber
   ========================================================================== */

:root {
  --font-primary: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette inspired by the Khater Factory Logo */
  --bg-deep: #070b0e;
  --bg-surface: #0e151b;
  --bg-card: rgba(18, 27, 34, 0.75);
  --bg-card-hover: rgba(24, 37, 47, 0.9);
  --bg-glass: rgba(14, 21, 27, 0.65);
  
  /* Neon Lime / Emerald Accents */
  --primary: #00e676;
  --primary-glow: rgba(0, 230, 118, 0.35);
  --primary-dark: #00b359;
  --primary-light: #69f0ae;
  
  /* Amber / Gold Accents */
  --accent-gold: #ff9100;
  --accent-gold-glow: rgba(255, 145, 0, 0.3);
  --accent-gold-dark: #ff6d00;
  
  /* Neutral Shades */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 230, 118, 0.25);
  --border-gold: rgba(255, 145, 0, 0.3);

  /* Social Platform Colors */
  --color-whatsapp: #25d366;
  --color-phone: #00e676;
  --color-facebook: #1877f2;
  --color-instagram: #e1306c;
  --color-tiktok: #00f2fe;
  --color-youtube: #ff0000;
  --color-playstore: #01875f;
  
  /* Elevation Shadows & Lighting */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --shadow-gold-glow: 0 0 25px var(--accent-gold-glow);
  
  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-primary);
  background-color: var(--bg-deep);
  color: var(--text-main);
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(255, 145, 0, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(0, 230, 118, 0.08) 0%, transparent 50%),
    linear-gradient(to bottom, #070b0e 0%, #0a1015 100%);
  background-attachment: fixed;
}

/* Subtle Industrial Background Grid Mesh */
.bg-mesh-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

/* Main Container */
.app-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 6.5rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header Profile Section
   ========================================================================== */
.profile-header {
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo Badge with Glowing Rings */
.avatar-wrapper {
  position: relative;
  width: 136px;
  height: 136px;
  margin-bottom: 1.2rem;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent-gold), var(--primary-light), var(--primary));
  animation: rotateGlow 6s linear infinite;
  filter: blur(8px);
  opacity: 0.75;
}

.avatar-border {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  z-index: 1;
}

.profile-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #000;
  z-index: 2;
  border: 3px solid #070b0e;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), var(--shadow-md);
  transition: transform var(--transition-smooth);
}

.avatar-wrapper:hover .profile-avatar {
  transform: scale(1.04);
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Profile Details */
.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.verified-badge svg {
  width: 22px;
  height: 22px;
}

.profile-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px var(--accent-gold-glow);
}

.profile-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.profile-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.pill-badge.green {
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--primary-light);
  background: rgba(0, 230, 118, 0.08);
}

.pill-badge.gold {
  border-color: rgba(255, 145, 0, 0.35);
  color: #ffb74d;
  background: rgba(255, 145, 0, 0.1);
}

/* Profile Action Buttons Bar */
.profile-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
  margin-top: 0.5rem;
}

.profile-actions-primary {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.profile-actions-secondary {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.action-btn-whatsapp {
  flex: 1;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
}

.action-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.action-btn-call {
  flex: 1;
  background: linear-gradient(135deg, #00e676, #00a854);
  color: #070b0e;
}

.action-btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.action-btn-sub {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  padding: 0.6rem 0.65rem;
}

.action-btn-sub:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   Category Filter Tabs
   ========================================================================== */
.tabs-nav-container {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 1.5rem 0 1.8rem 0;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(14, 21, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav-container::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1 0 auto;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #070b0e;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* ==========================================================================
   Sections & Cards Layout
   ========================================================================== */
.content-section {
  margin-bottom: 2.2rem;
  scroll-margin-top: 80px;
}

.content-section.hidden {
  display: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.4rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title .section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.section-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Base Link Card Styling */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  overflow: hidden;
  cursor: pointer;
}

/* Dynamic Hover State & Glow */
.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

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

.card-icon-box {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary);
  font-size: 1.4rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.link-card:hover .card-icon-box {
  transform: scale(1.08) rotate(2deg);
}

/* Card Content */
.card-content {
  flex-grow: 1;
  min-width: 0;
}

.card-headline-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(0, 230, 118, 0.25);
  white-space: nowrap;
}

.card-tag.gold {
  background: rgba(255, 145, 0, 0.15);
  color: #ffb74d;
  border-color: rgba(255, 145, 0, 0.3);
}

.card-description {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  flex-shrink: 0;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.link-card:hover .card-arrow {
  transform: translateX(-4px);
  color: var(--primary);
}

/* ==========================================================================
   Featured Hero Card (Official Website)
   ========================================================================== */
.featured-card {
  background: linear-gradient(135deg, rgba(22, 36, 46, 0.95), rgba(12, 19, 25, 0.95));
  border: 1.5px solid var(--border-accent);
  box-shadow: 0 10px 28px rgba(0, 230, 118, 0.12), var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.featured-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.featured-card .card-icon-box {
  background: linear-gradient(135deg, var(--primary), #00b359);
  color: #070b0e;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 14px;
  background: rgba(255, 145, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(255, 145, 0, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Google Play Store Apps Specific
   ========================================================================== */
.app-card .card-icon-box {
  background: rgba(1, 135, 95, 0.15);
  border-color: rgba(1, 135, 95, 0.35);
  color: #00e676;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.35rem;
}

/* ==========================================================================
   Videos & Field Tests Showcase (Interactive Video Grid / Cards)
   ========================================================================== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.video-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.2), var(--shadow-md);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.video-card:hover .video-thumb {
  transform: scale(1.06);
  opacity: 0.85;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--transition-fast);
}

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

.play-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.play-circle svg {
  width: 22px;
  height: 22px;
  margin-left: -2px; /* optical center */
}

.video-card:hover .play-circle {
  transform: scale(1.15);
  background: #ff0000;
}

.video-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-type-badge.shorts {
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.video-card-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.video-action-btn {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.btn-watch-modal {
  background: rgba(0, 230, 118, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.btn-watch-modal:hover {
  background: var(--primary);
  color: #070b0e;
}

.btn-open-yt {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-open-yt:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4d4d;
  border-color: rgba(255, 0, 0, 0.3);
}

/* ==========================================================================
   Quality & ISO Standards Section
   ========================================================================== */
.quality-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quality-card {
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.quality-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-2px);
}

.quality-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 145, 0, 0.12);
  border: 1px solid rgba(255, 145, 0, 0.3);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quality-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.quality-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Social Media Cards
   ========================================================================== */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.social-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
}

.social-card:hover .social-card-icon {
  transform: scale(1.15);
}

.social-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.social-card-handle {
  font-size: 0.72rem;
  color: var(--text-subtle);
  direction: ltr;
}

/* Specific Social Glows */
.social-card.tiktok .social-card-icon {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.social-card.tiktok:hover {
  border-color: #00f2fe;
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.2);
  transform: translateY(-3px);
}

.social-card.facebook .social-card-icon {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.3);
}
.social-card.facebook:hover {
  border-color: #1877f2;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.2);
  transform: translateY(-3px);
}

.social-card.instagram .social-card-icon {
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}
.social-card.instagram:hover {
  border-color: #e1306c;
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.2);
  transform: translateY(-3px);
}

.social-card.phone .social-card-icon {
  background: rgba(0, 230, 118, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.social-card.phone:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px var(--primary-glow);
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-section {
  text-align: center;
  padding: 2.5rem 1rem 1rem 1rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1.5rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 0.8rem auto;
  border: 2px solid var(--primary);
  display: block;
}

.footer-factory-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-flag {
  font-size: 1.1rem;
  vertical-align: middle;
}

/* ==========================================================================
   Bottom Floating Action Bar (Mobile-first speed dial)
   ========================================================================== */
.bottom-floating-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 520px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(14, 21, 27, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 230, 118, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px var(--primary-glow);
}

.float-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.float-btn.call {
  background: linear-gradient(135deg, var(--primary), #00b359);
  color: #070b0e;
}

.float-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
}

.float-btn-icon-only {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.float-btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

/* Bottom floating bar is mobile-first; hide on desktop */
@media (min-width: 768px) {
  .bottom-floating-bar {
    display: none !important;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

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

.modal-box {
  width: 100%;
  max-width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* QR Code Modal Box */
.qr-modal-box {
  max-width: 360px;
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.qr-code-frame {
  width: 200px;
  height: 200px;
  margin: 1.2rem auto;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-frame img, .qr-code-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(14, 21, 27, 0.95);
  border: 1px solid var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 540px) {
  .app-container {
    padding: 1.5rem 1rem 6.5rem 1rem;
  }
  
  .profile-name {
    font-size: 1.45rem;
  }
  
  .avatar-wrapper {
    width: 118px;
    height: 118px;
  }
  
  .profile-actions-bar {
    flex-wrap: wrap;
  }
  
  .action-btn {
    flex: 1 1 45%;
    font-size: 0.85rem;
    padding: 0.65rem 0.8rem;
  }
  
  .link-card {
    padding: 0.95rem 1rem;
    gap: 0.8rem;
  }
  
  .card-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .card-title {
    font-size: 0.94rem;
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
  }
}
