/* ==============================================================================
   REALCLIC CORE GLASSMORPHISM ENGINE
   File: assets/css/realclic-core.css
   Standards: High-performance mobile-first CSS3, GPU acceleration, 0-dependencies
   ============================================================================== */

:root {
  --primary-accent: #00f2fe;
  --secondary-accent: #4facfe;
  --accent-glow: rgba(0, 242, 254, 0.45);
  --bg-dark: #090d16;
  --bg-dark-secondary: #0f172a;
  --glass-surface: rgba(15, 23, 42, 0.65);
  --glass-surface-hover: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-focus: rgba(0, 242, 254, 0.5);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success-color: #10b981;
  --card-radius: 28px;
  --pill-radius: 9999px;
  --btn-radius: 18px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  min-height: 100%;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Animated Mesh Background */
.realclic-mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(127, 0, 255, 0.12) 0%, transparent 50%),
              var(--bg-dark);
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  animation: blobFloat 16s ease-in-out infinite alternate;
}

.mesh-blob-1 {
  top: -100px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--primary-accent) 0%, rgba(79, 172, 254, 0) 70%);
}

.mesh-blob-2 {
  bottom: -150px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #7f00ff 0%, rgba(225, 0, 255, 0) 70%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

@keyframes blobFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.1); }
  100% { transform: translate3d(-20px, 60px, 0) scale(0.95); }
}

/* Responsive Viewport Constrainer */
.realclic-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  justify-content: flex-start;
}

/* Glassmorphism Card Frame */
.realclic-card {
  position: relative;
  background: var(--glass-surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 2.25rem 1.5rem 1.75rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Header & Profile Section */
.profile-avatar-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: block;
}

.status-ring {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--success-color);
  border: 3px solid var(--bg-dark-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.status-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--success-color);
  animation: pulseRipple 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.business-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.business-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--accent-glow);
  flex-shrink: 0;
}

.business-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--pill-radius);
  font-size: 0.775rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.75rem;
}

.schedule-dot {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 6px #34d399;
}

/* Quick Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.725rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 0.4rem;
}

.action-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.action-item:hover, .action-item:active {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--glass-border-focus);
  transform: translateY(-2px);
  color: var(--primary-accent);
}

.action-item:hover svg {
  transform: scale(1.1);
}

/* Call to Actions & Button Styles */
.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.05rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
  color: #040914;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--btn-radius);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: lightShimmer 4s infinite;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Interactive Link List */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--btn-radius);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.link-btn-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.link-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-accent);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-btn-chevron {
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.25s ease;
}

.link-btn:hover {
  background: var(--glass-surface-hover);
  border-color: var(--glass-border-focus);
  transform: translateX(3px);
}

.link-btn:hover .link-btn-chevron {
  transform: translateX(3px);
  color: var(--primary-accent);
}

/* Standardized Footer Badge */
.realclic-badge-wrapper {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.realclic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pill-radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.realclic-badge:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: badgeGlow 2s infinite ease-in-out;
}

@keyframes badgeGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 12px #38bdf8; }
}

/* Toast notification for link copying */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--pill-radius);
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  pointer-events: none;
}

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

/* ==============================================================================
   NATIVE APP-STYLE SLIDE-OVER SCREEN (RIGHT TO LEFT)
   ============================================================================== */
.app-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              visibility 0.38s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
}

.app-screen.active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
}

/* Internal screen viewport constrained to mobile card width */
.app-screen-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 1.25rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
}

/* Navigation Header with Back Action */
.app-screen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.btn-screen-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem 0.95rem;
  border-radius: var(--pill-radius);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-screen-back:hover, .btn-screen-back:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-focus);
  color: var(--primary-accent);
}

.app-screen-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Service / Package Catalog Cards */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.catalog-item {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.catalog-item:hover {
  border-color: var(--glass-border-focus);
  transform: translateY(-2px);
}

.catalog-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.catalog-item-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.catalog-item-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-accent);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.catalog-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.catalog-item-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-item-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.catalog-item-features svg {
  color: var(--primary-accent);
  flex-shrink: 0;
}

.btn-book-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--primary-accent);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.35rem;
}

.btn-book-service:hover, .btn-book-service:active {
  background: var(--primary-accent);
  color: #040914;
  box-shadow: 0 4px 16px var(--accent-glow);
}

