/* NirmanKonnect Unified Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* User-specified Harmonious Color System */
    --primary-color: #ea580c;
    --primary-hover: #c2410c;
    --secondary-color: #f5f5f4;
    --text-dark: #1c1917;
    --text-light: #786d6c;
    --border-color: #e7e5e4;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #786d6c;
    --stone-600: #575350;
    --stone-700: #444240;
    --stone-900: #1c1917;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    
    /* Dynamic premium gradients and helper tags based on user colors */
    --primary-light: #ffedd5;
    --primary-gradient: linear-gradient(135deg, var(--orange-400) 0%, var(--primary-color) 100%);
    --primary-gradient-hover: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    
    --navy-950: #1c1917; /* Mapped to user stone-900 */
    --navy-900: #292524; /* Mapped to user stone values */
    --navy-800: #444240; /* Mapped to user stone-700 */
    --navy-700: #575350; /* Mapped to user stone-600 */
    --navy-600: #786d6c; /* Mapped to user stone-500 */
    --navy-500: #a8a29e; /* Mapped to user stone-400 */
    
    --bg-light: var(--stone-50);
    --bg-white: #ffffff;
    
    /* Glassmorphic & Shadow Systems */
    --accent-glow: rgba(234, 88, 12, 0.15);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-dark: rgba(28, 25, 23, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    --shadow-sm: 0 1px 2px 0 rgba(28, 25, 23, 0.02);
    --shadow-md: 0 4px 12px -2px rgba(28, 25, 23, 0.05), 0 2px 6px -1px rgba(28, 25, 23, 0.02);
    --shadow-lg: 0 12px 24px -4px rgba(28, 25, 23, 0.06), 0 4px 12px -2px rgba(28, 25, 23, 0.03);
    --shadow-premium: 0 20px 32px -8px rgba(28, 25, 23, 0.08), 0 8px 16px -4px rgba(28, 25, 23, 0.04);
    
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-all);
}

a:hover {
    color: var(--primary-hover);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--stone-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--stone-400);
}

/* Glassmorphic Navigation Bar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0.75rem 0;
    transition: var(--transition-all);
}

.navbar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.logo-box {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary-gradient);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

.nav-link {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: var(--navy-600) !important;
    transition: var(--transition-all);
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 0.25rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-all);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-hover) !important;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-hover) !important;
}

/* Premium Buttons */
.btn {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: var(--transition-all);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white !important;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary, .btn-outline-secondary {
    background-color: transparent;
    color: var(--navy-700);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover, .btn-outline-secondary:hover {
    background-color: var(--stone-50);
    border-color: var(--primary-color);
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-hover);
    border: 1.5px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
}

/* Immersive Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.85) 0%, rgba(68, 66, 64, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    color: white;
}

.hero-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
    font-family: 'Outfit', sans-serif;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    font-family: 'Manrope', sans-serif;
}

/* Intelligent Search Bar with Autocomplete Suggestions */
.hero-form-container {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
    z-index: 1000;
}

.hero-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
    transition: var(--transition-all);
}

.hero-form:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

.hero-form input {
    border: none;
    background: transparent;
    color: white;
    flex: 1;
    font-family: 'Manrope', sans-serif;
    padding: 0.75rem;
    font-size: 1rem;
}

.hero-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-form input:focus {
    outline: none;
    box-shadow: none;
    color: white;
    background: transparent;
}

.btn-search {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 0.875rem;
    padding: 0.75rem 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
}

.btn-search:hover {
    background: var(--primary-gradient-hover);
    transform: scale(1.02);
}

/* Suggestion Box */
.autocomplete-suggestions {
    position: absolute !important;
    top: 105%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    z-index: 9999 !important;
    overflow: hidden;
    max-height: 250px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition-all);
    text-align: left;
}

.autocomplete-suggestions.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.suggestion-item {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-all);
    font-size: 0.9rem;
    color: var(--navy-700);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-light);
    color: var(--primary-hover);
    padding-left: 1.5rem;
}

.suggestion-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    font-family: 'Manrope', sans-serif;
}

.hero-stat-divider {
    width: 0.35rem;
    height: 0.35rem;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

.hero-stat-number {
    color: white;
    font-weight: 800;
}

/* Category Grid & Cards */
.categories-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.category-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-all);
    border: 1px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow-sm);
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    transition: var(--transition-all);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.category-name {
    color: white;
    font-weight: 750;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-all);
}

.category-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: var(--transition-all);
}

.category-count {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    transition: var(--transition-all);
}

/* Category card hover actions */
.category-card:hover {
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

.category-card:hover .category-description {
    opacity: 1;
    height: auto;
    margin-top: 0.5rem;
}

.category-card:hover .category-count {
    color: white;
}

/* Dynamic Verified Seller Card styling */
.sellers-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.seller-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.seller-header {
    height: 6.5rem;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.seller-header::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 12px 12px;
}

.seller-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.seller-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    margin-top: -3.5rem;
    border: 3.5px solid white;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    z-index: 5;
    margin-bottom: 0.75rem;
    transition: var(--transition-all);
    font-family: 'Outfit', sans-serif;
}

.seller-name {
    font-size: 1.25rem;
    font-weight: 750;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
}

.seller-location {
    font-size: 0.85rem;
    color: var(--navy-500);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.seller-description {
    font-size: 0.9rem;
    color: var(--navy-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.875rem;
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.seller-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.seller-reviews {
    font-size: 0.8rem;
    color: var(--navy-500);
    font-weight: 600;
}

.seller-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--navy-700);
    font-weight: 600;
}

.seller-contact svg {
    width: 1rem;
    height: 1rem;
    color: var(--navy-500);
    flex-shrink: 0;
}

/* Seller Card Actions hover */
.seller-card:hover {
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.seller-card:hover .seller-avatar {
    transform: scale(1.08) rotate(5deg);
}

/* Standard Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--navy-500);
    max-width: 36rem;
    margin: 0 auto;
}

/* Brand Grid cards (Blog items in home) */
.category-card .category-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Section Styles */
.cta-section {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 6rem 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.9) 0%, rgba(68, 66, 64, 0.8) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 4.5rem 3rem;
    max-width: 46rem;
    color: white;
    box-shadow: var(--shadow-premium);
    margin: 0 auto;
}

.cta-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 850;
    color: white;
    margin-bottom: 1.25rem;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.cta-button {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* About & Contact Home Page Sections */
.about-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.about-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.about-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-light);
    color: var(--primary-hover);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--navy-900);
}

.about-card-text {
    font-size: 0.95rem;
    color: var(--navy-600);
    line-height: 1.7;
}

.contact-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.contact-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
}

.form-control-premium {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    transition: var(--transition-all);
    color: var(--navy-900);
}

.form-control-premium:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
    outline: none;
}

/* Breadcrumb Styling */
.breadcrumb {
    padding: 1.5rem 0 0.5rem;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--navy-500);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.breadcrumb-item a:hover {
    color: var(--primary-hover);
}

.breadcrumb-item.active {
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--stone-400);
}

/* Page Header Styling */
.page-header {
    padding: 4.5rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
    border-radius: 0 0 2.5rem 2.5rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--navy-900);
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--navy-600);
    max-width: 46rem;
    margin: 0 auto;
}

/* Footer Styling */
footer {
    background-color: var(--navy-950);
    color: white;
    padding: 6rem 0 2.5rem;
    margin-top: 8rem;
    border-top: 5px solid var(--primary-color);
    position: relative;
}

footer h5 {
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Outfit', sans-serif;
}

footer a {
    color: var(--navy-500);
    text-decoration: none;
    transition: var(--transition-all);
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.35rem 0;
}

footer a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

footer p {
    color: var(--navy-500);
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-divider {
    border-top: 1px solid var(--navy-800);
    margin-top: 4rem;
    padding-top: 2.25rem;
    text-align: center;
    color: var(--navy-500);
    font-size: 0.875rem;
}

/* Premium Modals & Forms UI */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal {
    background: white;
    border-radius: 2rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 60px -15px rgba(28, 25, 23, 0.25);
    border: 1px solid rgba(28, 25, 23, 0.08);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .custom-modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: var(--navy-900);
    font-family: 'Outfit', sans-serif;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--navy-500);
    transition: var(--transition-all);
    line-height: 1;
}

.modal-close:hover {
    color: var(--navy-900);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 72vh;
    overflow-y: auto;
}

/* Modal Tab System */
.modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-light);
    border-radius: 0.75rem;
    padding: 0.35rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.modal-tab-btn {
    border: none;
    background: transparent;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy-600);
    cursor: pointer;
    transition: var(--transition-all);
}

.modal-tab-btn.active {
    background: white;
    color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

/* Success Animation Panel */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #10b981;
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Full Blog Reader Modal Layout styles */
.blog-modal {
    max-width: 750px;
}

.blog-modal-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.blog-modal-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--navy-500);
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-modal-content {
    font-size: 1rem;
    color: var(--navy-700);
    line-height: 1.8;
}

.blog-modal-content p {
    margin-bottom: 1.25rem;
}

/* Category Quick chips active styles */
#category-chips button {
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
}

/* ============================================
   Seller Detail Profile Styles (seller-detail.html)
   ============================================ */
.profile-header {
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0 3rem;
    margin-bottom: 4rem;
}

.profile-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.25rem;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    font-family: 'Outfit', sans-serif;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--navy-900);
    font-family: 'Outfit', sans-serif;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-sm);
}

.profile-meta-label {
    color: var(--navy-500);
    font-weight: 600;
}

.profile-meta-value {
    color: var(--navy-900);
    font-weight: 700;
}

/* Review Card Styles */
.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.review-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 800;
    color: var(--navy-900);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.review-rating {
    color: #fbbf24;
    font-size: 1rem;
    margin-top: 0.25rem;
    letter-spacing: 1px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--navy-500);
    font-weight: 600;
}

.review-text {
    color: var(--navy-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Keyframes Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Global Mobile Responsive Breakpoints */
@media (max-width: 991px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    footer {
        margin-top: 5rem;
        padding: 4.5rem 0 2rem;
    }
}

@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .page-header {
        padding: 3rem 0;
        margin-bottom: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .hero-form {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
        border-radius: 1rem;
    }

    .hero-form input {
        padding: 0.5rem;
    }

    .btn-search {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        font-size: 0.8rem;
        margin-top: 2rem;
    }

    footer {
        margin-top: 4rem;
        padding: 3.5rem 0 1.5rem;
    }

    footer .row > div {
        margin-bottom: 2.5rem;
    }

    .profile-header {
        padding: 2.5rem 0 2rem;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-info h1 {
        font-size: 1.75rem;
    }

    .cta-content {
        padding: 2.5rem 1.5rem;
        border-radius: 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 0.95rem;
    }

    .seller-card:hover, .category-card:hover {
        transform: none;
    }

    .seller-body {
        padding: 1.25rem;
    }

    .about-card {
        padding: 1.75rem 1.25rem;
    }

    .contact-card {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .profile-meta-item {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    .modal-body {
        max-height: 65vh;
        padding: 1.5rem;
    }

    .custom-modal {
        border-radius: 1.5rem;
    }

    footer {
        margin-top: 3rem;
        padding: 3rem 0 1rem;
    }

    .footer-divider {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }
}

/* ============================================
   Registration & Quotation Form Page Styles
   ============================================ */

/* Form Page Container */
.form-page-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

.form-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-page-header .logo-box {
    margin: 0 auto 1.5rem;
    width: 3rem;
    height: 3rem;
}

.form-page-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.form-page-header p {
    color: var(--navy-500);
    font-size: 1rem;
}

/* Form Card */
.form-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* Type Selector Tabs */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--stone-100);
    border-radius: 1rem;
    padding: 0.35rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    gap: 0.25rem;
}

.type-selector-btn {
    border: none;
    background: transparent;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy-600);
    cursor: pointer;
    transition: var(--transition-all);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.type-selector-btn.active {
    background: white;
    color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.type-selector-btn:hover:not(.active) {
    color: var(--primary-color);
}

.type-selector-btn i {
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.form-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-section-subtitle {
    font-size: 0.85rem;
    color: var(--navy-500);
    margin-bottom: 1.5rem;
}

/* Form Labels */
.form-label-premium {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
    font-family: 'Manrope', sans-serif;
}

.form-label-premium .required-star {
    color: #ef4444;
    margin-left: 2px;
}

.form-label-premium .optional-tag {
    color: var(--navy-500);
    font-weight: 500;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Category Chip Selector */
.chip-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-option {
    position: relative;
}

.chip-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip-option label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-700);
    background: white;
    cursor: pointer;
    transition: var(--transition-all);
    user-select: none;
    white-space: nowrap;
}

.chip-option label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.chip-option input:checked + label {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px var(--accent-glow);
}

.chip-option input:checked + label i {
    color: white;
}

/* File Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-all);
    background: var(--stone-50);
    position: relative;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-zone-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.upload-zone-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: 0.25rem;
}

.upload-zone-hint {
    font-size: 0.8rem;
    color: var(--navy-500);
}

/* Photo Preview Grid */
.photo-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.photo-preview-item {
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
    position: relative;
    transition: var(--transition-all);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-all);
}

.photo-preview-item:hover .remove-photo {
    opacity: 1;
}

/* Upload Count Badge */
.upload-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

.upload-count-badge.valid {
    background: #dcfce7;
    color: #16a34a;
}

.upload-count-badge.invalid {
    background: #fef2f2;
    color: #ef4444;
}

/* Working Area Radio */
.area-radio-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.area-radio-option {
    position: relative;
    flex: 1;
}

.area-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.area-radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-700);
    cursor: pointer;
    transition: var(--transition-all);
    text-align: center;
    width: 100%;
}

.area-radio-option input:checked + label {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.form-footer p {
    font-size: 0.9rem;
    color: var(--navy-500);
}

.form-footer a {
    font-weight: 700;
    color: var(--primary-color);
}

/* Form submit button full width */
.btn-submit-form {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 1rem;
    font-family: 'Outfit', sans-serif;
}

/* Validation States */
.form-control-premium.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control-premium.is-valid {
    border-color: #16a34a;
}

.invalid-feedback-custom {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* Conditional Area Field */
.conditional-field {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.conditional-field.show {
    display: block;
}

/* Form Page Responsive */
@media (max-width: 767px) {
    .form-page-container {
        padding: 1.5rem 1rem 4rem;
    }

    .form-card {
        padding: 1.5rem 1.25rem;
        border-radius: 1.5rem;
    }

    .form-page-header h1 {
        font-size: 1.5rem;
    }

    .type-selector {
        grid-template-columns: 1fr;
    }

    .type-selector-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .area-radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .chip-selector {
        gap: 0.4rem;
    }

    .chip-option label {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .photo-preview-item {
        width: 4rem;
        height: 4rem;
    }

    .upload-zone {
        padding: 1.5rem;
    }
}

.hover-border-primary {
    transition: var(--transition-all) !important;
}

.hover-border-primary:hover {
    border-color: var(--primary-color) !important;
    background: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
