/* 
   Modern UI Premium Design System - YellowPage.pk
   V2.0: Dynamic, Alive, and Pixel-Perfect
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Vibrant & Refined */
    --primary-color: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.4);
    --primary-dark: #B8860B;
    --secondary-color: #121212;
    --accent-color: #FF4500;
    
    /* Semantic Colors */
    --text-main: #1A1A1B;
    --text-muted: #64748B;
    --text-inverse: #FFFFFF;
    
    --bg-base: #f1f5f9; 
    --bg-surface: #F8F9FA;
    --bg-dark: #0F172A;
    
    /* Spacing System - Pixel Perfect */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-section: 80px;

    /* Components Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 80px -10px rgba(0, 0, 0, 0.12);
    
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-out: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Global Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--secondary-color);
}

/* Layout Utilities - Spacing Fixes */
.py-section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Global Boxed Layout Container */
.boxed-layout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 50px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
}

.boxed-container {
    max-width: 1320px;
    margin: 30px auto;
    padding: var(--space-xl);
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

@media (max-width: 1400px) {
    .boxed-container { max-width: 1140px; }
}

@media (max-width: 1200px) {
    .boxed-container { max-width: 960px; margin: 20px auto; }
}

@media (max-width: 992px) {
    .boxed-container { margin: 15px; padding: var(--space-lg); }
}

/* Premium Containers */
.premium-card {
    background: var(--bg-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-out);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-glow);
}

/* Glassmorphism 2.0 */
.glass-surface {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft);
}

/* Modern Header Overhaul */
.header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.header-scrolled {
    padding: var(--space-xs) 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

/* Interactive Navigation */
.nav-link-modern {
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-base);
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link-modern:hover::after { width: 60%; }
.nav-link-modern:hover { color: var(--primary-dark); }

/* Premium Buttons */
.btn-premium {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition-out);
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: #FFC000;
}

.badge-success-soft { background: #DCFCE7 !important; color: #15803D !important; }
.badge-warning-soft { background: #FEF9C3 !important; color: #854D0E !important; }
.badge-danger-soft { background: #FEE2E2 !important; color: #B91C1C !important; }
.badge-info-soft { background: #E0F2FE !important; color: #0369A1 !important; }
.badge-light-soft { background: #F8FAFC !important; color: #475569 !important; }

/* Professional Auth Aesthetics - Glassmorphism 2.0 */
.auth-container {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: var(--space-3xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.auth-form-card:hover {
    transform: translateY(-5px);
}

.modern-input {
    width: 100%;
    padding: 14px var(--space-lg);
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    font-size: 1rem;
}

/* Dashboard Component Overhaul */
.dashboard-hero {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.stat-card-premium {
    background: var(--bg-base);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-md);
    transition: var(--transition-out);
    position: relative;
    overflow: hidden;
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin: var(--space-xs) 0;
}

.stat-icon-bg {
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 5rem;
    opacity: 0.04;
    transform: rotate(-15deg);
    transition: var(--transition-out);
}

.stat-card-premium:hover .stat-icon-bg {
    transform: rotate(0) scale(1.1);
    opacity: 0.08;
}

/* Premium Badges & Status */
.badge-premium {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    height: 24px;
}

.link-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.footer-link:hover .link-badge {
    background: var(--primary-color);
    color: #000;
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition-out);
}
.btn-premium-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Table Aesthetics */
.premium-table thead th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border: none;
    padding: var(--space-md) var(--space-lg);
}

.premium-table tbody td {
    padding: var(--space-lg);
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.premium-table tr:hover { background: rgba(0, 0, 0, 0.01); }

/* Pulsing Primary Button - Simplified & Slower for Performance */
.pulse {
    animation: premiumPulse 4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 217, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 217, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 217, 0, 0); }
}

/* Seller Packages Standardized Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.package-card-premium {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-out);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.package-price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: var(--space-md) 0;
}

.package-feature-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
    text-align: left;
    flex-grow: 1;
}

.package-feature-list li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.9rem;
}

.package-feature-list li i {
    color: var(--primary-dark);
    margin-right: var(--space-xs);
}
/* Floating Animation removed for performance (can be re-added subtly if needed) */
.float-element {
    /* animation: floatAnim 3s ease-in-out infinite; */
    transition: transform var(--transition-out);
}
.float-element:hover {
    transform: translateY(-5px);
}

/* Standardized Footer System - Pixel Perfect Premium */
.page-footer {
  position: relative;
  background: linear-gradient(145deg, #0A0A0A 0%, #1a1a1a 100%);
  color: #ffffff;
  margin-top: 100px;
  border-top: 4px solid var(--primary-color);
  overflow: hidden;
  font-family: 'Inter', 'Open Sans', sans-serif;
  width: 100%;
  clear: both;
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  animation: floatParticle 12s linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

.footer-main {
  position: relative;
  z-index: 5;
  padding: 60px 0 40px;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.logo-highlight { color: var(--primary-color); }

.logo-badge {
  background: var(--primary-color);
  color: #0A0A0A;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #0A0A0A;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.company-description {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition-out);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.social-link:hover {
  background: var(--primary-color);
  color: #0A0A0A;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--primary-glow);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 10px; }

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b0b0b0;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.footer-link:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
  border-left: 3px solid var(--primary-color);
}

.contact-info-footer { display: flex; flex-direction: column; gap: 12px; }

.contact-item-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-item-footer:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.contact-value { color: #fff; text-decoration: none; font-size: 0.85rem; }

.footer-bottom {
  background-color: #000000;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  padding: 20px 0;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.copyright { color: #b0b0b0; font-size: 0.85rem; }
.copyright strong { color: var(--primary-color); }

.footer-bottom-links { display: flex; gap: 15px; }
.footer-bottom-links a { color: #b0b0b0; text-decoration: none; font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--primary-color); }

.footer-bottom-payment { display: flex; gap: 12px; align-items: center; color: #b0b0b0; }
.footer-bottom-payment i { font-size: 1.2rem; }
.footer-bottom-payment i:hover { color: var(--primary-color); }

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #0A0A0A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
  cursor: pointer;
}

.back-to-top.show { opacity: 1; visibility: visible; }

@media (max-width: 1200px) {
  .footer-container { grid-template-columns: repeat(2, 1fr); padding: 0 30px; }
}

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-title, .footer-link, .social-links, .contact-item-footer { justify-content: center; }
  .footer-bottom-row { flex-direction: column; gap: 20px; text-align: center; }
}

/* Seller Packages Premium Layout */
.package-header-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
  color: var(--secondary-color);
  box-shadow: var(--shadow-xl);
}

.packages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: var(--space-3xl);
  align-items: stretch;
}

.package-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.package-header-top {
  padding: 30px 20px;
  text-align: center;
  color: #fff;
  background: var(--bg-dark);
}

.package-free .package-header-top { background: #64748B; }
.package-verified .package-header-top { background: #2563EB; }
.package-bronze .package-header-top { background: #B45309; }
.package-gold .package-header-top { background: var(--primary-dark); color: #000; }
.package-platinum .package-header-top { background: #1E293B; }

.package-price-bold {
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0;
}

.feature-list-modern {
  list-style: none;
  padding: 20px;
  margin: 0;
  flex-grow: 1;
}

.feature-list-modern li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list-modern li i {
  color: var(--primary-dark);
}

.tick-icon { color: #10B981; font-weight: bold; }
.cross-icon { color: #EF4444; font-weight: bold; }
.number-badge { 
  background: var(--primary-color); 
  color: #000; 
  padding: 2px 8px; 
  border-radius: 10px; 
  font-size: 0.75rem; 
  font-weight: 700; 
}