/* 
   pakmobiling.com Global Stylesheet
   Premium Day Mode Design System
   Fonts: Outfit (Headings), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --primary-light: #fef2f2;
    --secondary: #0f172a;
    --accent: #10b981;
    --accent-hover: #059669;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    /* Neutral Shades */
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    
    /* Layout & Shadow constants */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Page Wrapper */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: var(--secondary);
}

.logo svg {
    width: 34px;
    height: 34px;
    fill: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #dbeafe;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.02);
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 90% 10%, #fff2f2 0%, #f8fafc 65%, #eff6ff 100%);
    background-image: radial-gradient(circle at 90% 10%, #fff2f2 0%, #f8fafc 65%, #eff6ff 100%), radial-gradient(rgba(220, 38, 38, 0.02) 1px, transparent 0);
    background-size: 100% 100%, 24px 24px;
    padding: 60px 24px 110px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, var(--background), transparent);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Premium Hero Pill Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.02);
    animation: heroBadgeFloat 4s ease-in-out infinite;
}

@keyframes heroBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero-badge-icon {
    font-size: 13px;
}

.hero-badge-text {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Outfit', sans-serif;
}

.hero h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--secondary);
    letter-spacing: -1.8px;
    text-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    font-family: 'Outfit', sans-serif;
}

/* Premium Logo Container Badge */
.hero-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-logo-badge:hover {
    transform: scale(1.05) rotate(1deg);
}

.hero-logo-badge img {
    height: 38px;
    object-fit: contain;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 45px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* Search Bar Home */
.search-container {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px;
    border-radius: 9999px;
    box-shadow: 0 15px 40px -10px rgba(15, 23, 42, 0.06);
    display: flex;
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.search-container:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 24px 50px -10px rgba(220, 38, 38, 0.18), 0 0 0 5px rgba(220, 38, 38, 0.08) !important;
    transform: translateY(-2px);
}

.search-field {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
}

.search-field svg {
    color: var(--text-muted);
    width: 22px;
    height: 22px;
}

.search-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
}

.search-container button {
    padding: 16px 38px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary), #b91c1c);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Trending Searches Quick Tags */
.quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.quick-tags-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.quick-tag-btn {
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-tag-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: rgba(220, 38, 38, 0.25);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px -3px rgba(220, 38, 38, 0.12);
}

.quick-tag-btn:active {
    transform: scale(0.96) translateY(0);
}

/* Formal Staggered Entrance Animation Delays */
.delay-1 { animation-delay: 0.08s !important; }
.delay-2 { animation-delay: 0.18s !important; }
.delay-3 { animation-delay: 0.28s !important; }
.delay-4 { animation-delay: 0.38s !important; }

/* Brands Grid */
.brands-section {
    max-width: 1200px;
    margin: -60px auto 70px auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.brands-container {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15.5px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

.brand-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.brand-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 12px 30px -8px rgba(220, 38, 38, 0.22);
}

.brand-logo-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.brand-card:hover .brand-logo-wrapper {
    transform: scale(1.1);
}

.brand-logo-wrapper svg,
.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card span {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

/* Buying Instructions Section */
.instructions-section {
    background-color: var(--surface);
    padding: 90px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.instructions-container {
    max-width: 1200px;
    margin: 0 auto;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.instruction-card {
    padding: 35px;
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.instruction-card:hover {
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08), 0 0 25px rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.15);
    transform: translateY(-8px);
}

.instruction-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.instruction-icon svg {
    width: 26px;
    height: 26px;
}

.instruction-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.instruction-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Popular Smartphone Comparisons */
.home-comparisons-section {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 85px 0;
    position: relative;
}

.home-comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.home-comparison-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.home-comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(220, 38, 38, 0.15);
}

.home-comparison-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.home-comparison-vs {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    transition: var(--transition);
}

.home-comparison-card:hover .home-comparison-vs {
    color: var(--primary);
    transform: rotate(360deg);
}

/* Vetting Blog & Technical Advice */
.home-blog-section {
    border-top: 1px solid var(--border);
    padding: 85px 0;
    background-color: var(--background);
}

.home-blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 45px;
    flex-wrap: wrap;
    gap: 20px;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.home-blog-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.home-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    border-color: rgba(220, 38, 38, 0.12);
}

.home-blog-img-container {
    height: 180px;
    overflow: hidden;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.home-blog-card:hover .home-blog-img-container img {
    transform: scale(1.08);
}

.home-blog-card-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* App Download Section */
.app-section {
    padding: 80px 24px;
}

.app-container-inner {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0f172a 0%, #030712 50%, #2e1014 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-lg);
    padding: 50px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(239, 68, 68, 0.1);
}

.app-content {
    flex: 1.2;
    z-index: 2;
}

.app-content h2 {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.app-content p {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 15.5px;
    line-height: 1.6;
}

/* Modern Action Buttons */
.cta-action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-modern-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-modern-cta svg {
    width: 20px;
    height: 20px;
}

.btn-buy-cta {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-buy-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
    background: #dc2626;
    border-color: #dc2626;
}

.btn-sell-cta {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-sell-cta:hover {
    transform: translateY(-3px);
    background: rgba(239, 68, 68, 0.08);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
}

.app-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.app-badge:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.app-badge svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-text span:first-child {
    font-size: 8px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.badge-text span:last-child {
    font-size: 13px;
    font-weight: 700;
}

.app-mockup {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 380px;
}

/* CSS Smart Phone Mockup */
.phone-frame {
    width: 200px;
    height: 390px;
    background-color: #0b0f19;
    border: 8px solid #1e293b;
    border-radius: 36px;
    position: absolute;
    bottom: -60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Persistent floating and glowing animations */
    animation: phoneFloating 7s ease-in-out infinite, 
               phoneGlow 7s ease-in-out infinite;
}

.phone-frame:hover {
    animation-play-state: paused; /* Pause floating when user hovers to interact */
    transform: translateY(-16px) rotate(-1.5deg) scale(1.03);
    box-shadow: 0 40px 90px -15px rgba(0, 0, 0, 0.95), 0 0 60px rgba(239, 68, 68, 0.35);
}

@keyframes phoneFloating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-1.5deg) scale(1.01); }
}

@keyframes phoneGlow {
    0%, 100% { box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(239, 68, 68, 0.32); }
}

.phone-screen {
    flex-grow: 1;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    padding: 24px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 10px;
    color: #fff;
    position: relative;
}

/* Dynamic Island Notch */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 10px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

/* Staggered pulsing float for phone cards */
.phone-card:nth-child(1) { animation: cardPulse 4.5s ease-in-out infinite; }
.phone-card:nth-child(2) { animation: cardPulse 4.5s ease-in-out infinite; animation-delay: 1.5s; }
.phone-card:nth-child(3) { animation: cardPulse 4.5s ease-in-out infinite; animation-delay: 3.0s; }

@keyframes cardPulse {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        background: rgba(255, 255, 255, 0.05); 
        border-color: rgba(255, 255, 255, 0.08);
    }
    50% { 
        transform: translateY(-3px) scale(1.02); 
        background: rgba(255, 255, 255, 0.09); 
        border-color: rgba(239, 68, 68, 0.22);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
}

.phone-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary) !important;
    transform: scale(1.05) translateY(-4px) !important;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.2) !important;
    animation-play-state: paused !important; /* Pause pulsing on direct hover */
}

/* Brand Models Drawer Dynamic Slide Down */
#models-drawer {
    animation: drawerSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes drawerSlideDown {
    from { 
        opacity: 0; 
        transform: translateY(-12px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.phone-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.phone-txt {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-line {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    width: 75%;
}

.phone-line-sm {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    width: 45%;
}

/* Footer styling */
footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 80px 24px 30px 24px;
    border-top: 1px solid #111827;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand img {
    filter: brightness(1.2);
    transition: var(--transition);
}

.footer-brand img:hover {
    transform: scale(1.02);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin-top: 16px;
}

.footer-links h3 {
    color: #f3f4f6;
    font-size: 16px;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #4b5563;
}

/* Forms (Login / Register / Add Listing) */
.form-container {
    max-width: 480px;
    margin: 50px auto;
    background-color: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    outline: none;
    font-size: 14px;
    background-color: var(--background);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

/* Browse Page styling */
.browse-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.filter-sidebar {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--secondary);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-item input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.listings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.listings-header h2 {
    font-size: 22px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.listing-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    z-index: 10;
}

.listing-image-container {
    height: 180px;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.listing-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.listing-card-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-price {
    font-size: 18px;
    color: var(--primary);
    font-weight: 800;
}

.listing-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.listing-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background-color: var(--background);
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-card-footer svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Listings Detail Page */
.detail-layout {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-container {
    height: 400px;
    background-color: #f1f5f9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-row {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    background-color: #f1f5f9;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-id {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    width: fit-content;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.detail-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.param-item {
    display: flex;
    flex-direction: column;
}

.param-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.param-val {
    font-weight: 600;
    font-size: 15px;
}

.seller-box {
    background-color: var(--background);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-name {
    font-weight: 700;
    font-size: 16px;
}

.seller-phone {
    font-size: 14px;
    color: var(--text-secondary);
}

/* OSM Leaflet Containers */
.osm-container {
    margin-top: 30px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.osm-map-wrapper {
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 16px;
}

/* Specs Browser Tab */
.specs-layout {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

.specs-search-box {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.specs-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.specs-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.specs-card-title {
    font-size: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.specs-table {
    font-size: 13px;
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 6px 0;
}

.specs-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
    width: 100px;
}

.specs-table td:last-child {
    font-weight: 600;
    color: var(--secondary);
}

/* Chat Module Layout */
.chat-layout {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    height: calc(100vh - 160px);
    min-height: 500px;
}

.chat-sidebar {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-threads {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-thread-item {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-thread-item:hover,
.chat-thread-item.active {
    background-color: var(--primary-light);
}

.chat-thread-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary);
}

.chat-thread-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.chat-window {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-window-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    position: relative;
}

.chat-bubble.sent {
    background-color: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-bubble.received {
    background-color: #fff;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.chat-bubble-time {
    font-size: 9px;
    margin-top: 4px;
    text-align: right;
    opacity: 0.8;
}

.chat-window-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background-color: #fff;
}

.chat-form {
    display: flex;
    gap: 12px;
}

/* Empty placeholder inside chats */
.chat-empty {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 16px;
    background-color: var(--background);
}

.chat-empty svg {
    width: 64px;
    height: 64px;
    stroke-width: 1;
}

/* Dropdown brand select model flow in Add Listing */
.brand-select-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Leaflet marker customization styling */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-sm) !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
}

.leaflet-popup-tip {
    background: white !important;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .browse-layout,
    .detail-grid,
    .chat-layout {
        grid-template-columns: 1fr;
    }
    
    .chat-layout {
        height: auto;
    }
    
    .app-container-inner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .app-mockup {
        height: 250px;
    }
    
    .phone-frame {
        bottom: -150px;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: var(--radius-md);
        gap: 8px;
    }
    
    .search-container button {
        width: 100%;
    }
}

/* Header User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.dropdown-trigger:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.dropdown-trigger .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown:hover .dropdown-trigger .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 550;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu a:hover svg {
    color: var(--primary);
}

.dropdown-menu a.logout-link:hover {
    background-color: #fef2f2;
    color: var(--danger);
}

.dropdown-menu a.logout-link:hover svg {
    color: var(--danger);
}

/* Dashboard Page Layout */
.dashboard-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.user-profile-summary {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 16px auto;
}

.user-profile-summary h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.user-profile-summary p {
    font-size: 13px;
    color: var(--text-secondary);
}

.dashboard-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
}

.dashboard-nav-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.dashboard-nav-item:hover svg,
.dashboard-nav-item.active svg {
    color: var(--primary);
}

.dashboard-content-panel {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    min-height: 500px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.panel-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.panel-header h2 {
    font-size: 22px;
    color: var(--secondary);
}

/* User Listings Grid & Cards */
.user-listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.user-listing-card {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--surface);
    transition: var(--transition);
    position: relative;
}

.user-listing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
}

.user-listing-img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    background-color: #cbd5e1;
    flex-shrink: 0;
}

.user-listing-details {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.user-listing-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.user-listing-title-row h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.user-listing-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.user-listing-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-listing-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-approved {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-pending {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-disapproved {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Form layouts in dashboard */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-form-section {
    background-color: var(--background);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    height: fit-content;
}

.dashboard-form-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.dashboard-form-section h3 svg {
    color: var(--primary);
}

.edit-listing-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.edit-listing-preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
}

.edit-listing-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-listing-preview-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.edit-listing-preview-delete:hover {
    background-color: var(--danger-hover);
}

/* Mobile Sidebar Drawer Overlay Styling */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar Drawer Navigation Panel */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    bottom: 0;
    width: 280px;
    background-color: var(--surface);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
}

.mobile-drawer.open {
    transform: translateX(280px);
}

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

.drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: var(--transition);
}

.drawer-close:hover {
    color: var(--danger);
}

.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-profile-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--background);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.drawer-profile-info {
    min-width: 0;
}

.drawer-profile-info h4 {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-profile-info p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.drawer-nav a:hover,
.drawer-nav a.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Acrylic Glassmorphism Bottom Floating Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    flex-grow: 1;
    height: 100%;
    transition: var(--transition);
}

.bottom-nav-item svg {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.bottom-nav-item:hover svg,
.bottom-nav-item.active svg {
    color: var(--primary);
    transform: translateY(-1px);
}

.mobile-hamburger-btn {
    background: none;
    border: none;
    padding: 6px;
    display: none; /* hidden on desktop */
    cursor: pointer;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.mobile-hamburger-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.mobile-hamburger-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive media queries adjustments for mobile screens */
@media (max-width: 768px) {
    .nav-links, 
    .nav-actions .btn, 
    .nav-actions .user-dropdown {
        display: none !important;
    }
    
    .mobile-hamburger-btn {
        display: inline-flex !important;
    }
    
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    body {
        padding-bottom: 70px; /* Make space for floating bottom nav */
    }
    
    .header-container {
        padding: 12px 16px;
    }
}

/* ==========================================================================
   Dashboard Modernization & SaaS Cockpit Styles
   ========================================================================== */

.dashboard-stats-cockpit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.stat-cockpit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-cockpit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: transparent;
    transition: var(--transition);
}

.stat-cockpit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border-color: var(--border);
}

.stat-cockpit-card.active-listings:hover::before { background-color: var(--accent); }
.stat-cockpit-card.unread-alerts:hover::before { background-color: var(--primary); }
.stat-cockpit-card.profile-verified:hover::before { background-color: #2563eb; }
.stat-cockpit-card.chat-threads:hover::before { background-color: #7c3aed; }

.stat-cockpit-info {
    display: flex;
    flex-direction: column;
}

.stat-cockpit-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.stat-cockpit-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 4px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-cockpit-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-cockpit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-cockpit-card:hover .stat-cockpit-icon {
    transform: scale(1.08);
}

.stat-cockpit-icon.red { background-color: var(--primary-light); color: var(--primary); }
.stat-cockpit-icon.green { background-color: #f0fdf4; color: var(--accent); }
.stat-cockpit-icon.blue { background-color: #eff6ff; color: #2563eb; }
.stat-cockpit-icon.purple { background-color: #faf5ff; color: #7c3aed; }

/* Status dot pulse */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Sidebar upgrades */
.dashboard-sidebar-header-card {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-sidebar-header-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    z-index: 1;
}

.dashboard-sidebar-header-card .user-profile-avatar {
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.dashboard-sidebar-header-card h3 {
    color: #ffffff;
    font-size: 18px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.dashboard-sidebar-header-card p {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 2px;
    position: relative;
    z-index: 2;
}

.dashboard-nav-item {
    position: relative;
    overflow: hidden;
    padding-left: 20px;
}

.dashboard-nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}

.dashboard-nav-item.active::after {
    transform: translateY(-50%) scaleY(1);
}

.dashboard-nav-item.active {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

.user-listing-card {
    transition: var(--transition);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.user-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.user-listing-actions .btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬
   Global State-of-the-Art Animations & Micro-Interactions System
   ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */

/* 1. Page Load Global Slide-up Entrance */
@keyframes globalPageFadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: globalPageFadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 2. Global Transition Easing System (Smooth Hover states) */
a, button, input, select, textarea, .btn, .card, .listing-card, .brand-card, .home-comparison-card, .home-blog-card, .instruction-card, .model-item-btn {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Staggered Grid popped-in entrance animations */
.listings-grid > *, .brands-grid > *, .home-comparisons-grid > *, .home-blog-grid > *, .instructions-grid > * {
    opacity: 0;
    animation: globalPageFadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.listings-grid > *:nth-child(1), .brands-grid > *:nth-child(1), .home-comparisons-grid > *:nth-child(1), .home-blog-grid > *:nth-child(1) { animation-delay: 0.04s; }
.listings-grid > *:nth-child(2), .brands-grid > *:nth-child(2), .home-comparisons-grid > *:nth-child(2), .home-blog-grid > *:nth-child(2) { animation-delay: 0.08s; }
.listings-grid > *:nth-child(3), .brands-grid > *:nth-child(3), .home-comparisons-grid > *:nth-child(3), .home-blog-grid > *:nth-child(3) { animation-delay: 0.12s; }
.listings-grid > *:nth-child(4), .brands-grid > *:nth-child(4), .home-comparisons-grid > *:nth-child(4) { animation-delay: 0.16s; }
.listings-grid > *:nth-child(5), .brands-grid > *:nth-child(5), .home-comparisons-grid > *:nth-child(5) { animation-delay: 0.20s; }
.listings-grid > *:nth-child(6), .brands-grid > *:nth-child(6), .home-comparisons-grid > *:nth-child(6) { animation-delay: 0.24s; }
.listings-grid > *:nth-child(n+7), .brands-grid > *:nth-child(n+7) { animation-delay: 0.28s; }

/* 4. Global Cards Enhanced Hovers */
.listing-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.25) !important;
}

.brand-card:hover {
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.15) !important;
    border-color: var(--primary) !important;
}

.home-comparison-card:hover, .home-blog-card:hover, .instruction-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.18) !important;
}

/* 5. Header Navigation Links Underline Micro-Animation */
.nav-links a {
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
    left: 0;
}

/* 6. Dynamic buttons pulsing shine hover and micro-feedback scale down on click */
.btn-primary:active, .btn-secondary:active, .btn-outline:active, .btn-modern-cta:active {
    transform: scale(0.96) !important;
}

/* 7. Global Staggered Fade-In Slide-Up Animation Utility */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 8. Modern Dynamic Brand Models Buttons Style */
.model-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px !important;
    background-color: var(--background) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--secondary) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.model-item-btn:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.18) !important;
}

/* 9. Hero Section Glowing Backdrop Blobs & Floating Keyframes */
.hero-glow-1 {
    position: absolute;
    top: -10%; left: 5%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatGlow1 9s ease-in-out infinite;
    z-index: 1;
}

.hero-glow-2 {
    position: absolute;
    bottom: 5%; right: 10%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatGlow2 9s ease-in-out infinite;
    animation-delay: 2.2s;
    z-index: 1;
}

@keyframes floatGlow1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(35px, 20px) scale(1.18); }
}

@keyframes floatGlow2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, -20px) scale(1.18); }
}

/* -------------------------------------------------------------
   pakmobiling.com responsive layouts and word-wrap enhancements
   ------------------------------------------------------------- */

/* Global text breaking to prevent half words or trailing scrollbar overflows */
h1, h2, h3, h4, h5, h6, p, span, a, button, li, td, th {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;
}

/* Fix grid layouts minimum bounds to fit smallest viewport widths (>= 320px) */
.home-comparisons-grid, 
.home-blog-grid, 
.specs-grid,
.brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

/* Ensure key dashboard column panels respect borders without horizontal scroll overflow */
.dashboard-content-panel {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Collapse brand selection or dynamic filtering dropdown row elements cleanly into columns on mobile viewports */
@media (max-width: 768px) {
    .brand-select-wrapper, 
    .form-row, 
    .search-filter-bar {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .brand-select-wrapper > *, 
    .form-row > *, 
    .search-filter-bar > * {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* Collapse user dashboard listings card list to column vertical stack on mobile screens under 600px width */
@media (max-width: 600px) {
    .user-listing-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
        gap: 16px !important;
    }
    
    .user-listing-img {
        width: 100% !important;
        height: 180px !important;
        border-radius: var(--radius-md) !important;
        object-fit: cover !important;
    }
    
    .user-listing-details {
        padding: 0 !important;
        width: 100% !important;
    }
}



