/* DESIGN SYSTEM & VARIABLES */
:root {
    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Outfit', sans-serif;

    /* Theme-independent colors */
    --gold: #d4af37;
    --gold-hover: #b8972e;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --star-color: #ffb800;
    
    /* Plan Colors */
    --plan-basic: #64748b;
    --plan-medium: #0d9488;
    --plan-full: #8b5cf6;
    --plan-advance: #ec4899;
    --plan-ultra: linear-gradient(135deg, #f59e0b, #d97706);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK THEME TOKENS */
[data-theme="dark"] {
    --bg-main: #070913;
    --bg-gradient: radial-gradient(circle at 50% 0%, #0d122b 0%, #060811 70%);
    --bg-surface: rgba(15, 22, 42, 0.45);
    --bg-surface-solid: #0f172a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #d4af37;
    --accent-secondary: #3b82f6;
    --accent-glow: rgba(212, 175, 55, 0.15);
    
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);
    --glass-blur: 16px;
    
    --input-bg: rgba(7, 9, 19, 0.6);
    --card-hover-bg: rgba(20, 30, 58, 0.6);
}

/* LIGHT THEME TOKENS */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-gradient: radial-gradient(circle at 50% 0%, #eff6ff 0%, #f8fafc 80%);
    --bg-surface: rgba(255, 255, 255, 0.7);
    --bg-surface-solid: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.18);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #b45309; /* darker gold for readability */
    --accent-secondary: #2563eb;
    --accent-glow: rgba(180, 83, 9, 0.1);
    
    --shadow-main: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.05);
    --glass-blur: 12px;
    
    --input-bg: rgba(255, 255, 255, 0.9);
    --card-hover-bg: rgba(241, 245, 249, 0.9);
}

/* GLOBAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* GLOBAL HEADINGS OVERRIDE */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans) !important;
    font-weight: 800 !important; /* ExtraBold */
    letter-spacing: -0.02em;
}

.serif-accent {
    font-family: var(--font-sans) !important;
    font-weight: 900 !important; /* Black */
    font-style: normal !important;
}

/* LOGO IMAGE STYLING */
.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

/* Theme-specific Logo display overrides */
[data-theme="dark"] .logo-img-dark {
    display: block;
}
[data-theme="dark"] .logo-img-light {
    display: none;
}

[data-theme="light"] .logo-img-dark {
    display: none;
}
[data-theme="light"] .logo-img-light {
    display: block;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* UTILITIES */
.accent-text {
    color: var(--accent-primary);
    font-weight: 700;
}

.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: var(--accent-primary);
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
    border-radius: 16px;
    transition: background-color var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal);
}

/* STICKY NAVBAR */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.multiline-nav-link {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.15 !important;
    vertical-align: middle !important;
    padding: 0 !important;
}

.multiline-nav-link span:first-child {
    font-size: 0.9rem;
}

.multiline-nav-link span:last-child {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    border-radius: 2px;
}

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

.icon-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.icon-btn:hover {
    transform: scale(1.05);
    background-color: var(--card-hover-bg);
    border-color: var(--border-hover);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* SECTIONS STRUCTURE */
.view-section {
    display: none;
    padding-top: 88px; /* account for navbar */
    flex: 1;
}

.view-section.active {
    display: block;
    animation: fadeIn var(--transition-slow);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 80px 24px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glows {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-1 {
    top: -50px;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
}

.glow-2 {
    bottom: -50px;
    right: 20%;
    width: 350px;
    height: 350px;
    background: var(--accent-secondary);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero-badge i {
    width: 14px;
    height: 14px;
}

.hero-section h1 {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 800px;
    margin: 0 auto 16px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* SEARCH CONTAINER */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    padding: 8px;
    gap: 8px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-container input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.primary-btn {
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.primary-btn:hover {
    background-color: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.primary-btn i {
    width: 16px;
    height: 16px;
}

/* FILTERS SECTION */
.filter-header {
    text-align: center;
    margin-bottom: 24px;
}

.filter-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.filter-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filters-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none; /* Firefox */
}

.filters-scroll::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.filter-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-chip.active {
    background-color: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* LAWYERS GRID & CARDS */
.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 10px;
}

.lawyer-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.lawyer-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background-color: var(--card-hover-bg);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: rgba(0,0,0,0.1);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.lawyer-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 2;
}

.plan-basic { background: var(--plan-basic); }
.plan-medium { background: var(--plan-medium); }
.plan-full { background: var(--plan-full); }
.plan-advance { background: var(--plan-advance); }
.plan-ultra { background: var(--plan-ultra); }

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-header-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rating-badge i {
    width: 14px;
    height: 14px;
    color: var(--star-color);
    fill: var(--star-color);
}

.specialty-label {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-feature {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-feature i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.card-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.lawyer-card:hover .card-action-btn {
    transform: translateX(4px);
}

/* MODAL OVERLAY & POP-UP */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.modal-wrapper {
    width: 100%;
    max-width: 600px;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    animation: modalScaleIn var(--transition-normal) forwards;
    transform: scale(0.95);
}

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

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--border-hover);
    transform: scale(1.05);
}

.modal-close-btn i {
    width: 16px;
    height: 16px;
}

.modal-body {
    padding: 32px;
}

/* MODAL & INTERNAL PROFILE CONTENT */
.modal-profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
}

.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.modal-name-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-spec {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--border-color);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.info-item i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.modal-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* BOOKING SYSTEM STYLES */
.booking-section {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.booking-title {
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-title i {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.date-picker-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}

.date-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    min-width: 70px;
    transition: all var(--transition-fast);
}

.date-card:hover {
    border-color: var(--accent-primary);
}

.date-card.selected {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

.date-day {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.date-num {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2px;
}

.time-slots-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.time-slot {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-slot:hover {
    border-color: var(--accent-primary);
}

.time-slot.selected {
    background-color: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* PROFILE PAGE & ROUTED PROFILE SECTION */
.back-navigation {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.back-btn:hover {
    color: var(--text-primary);
}

.back-btn i {
    width: 16px;
    height: 16px;
}

.profile-standalone-container {
    max-width: 1000px !important;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 800px) {
    .profile-layout {
        grid-template-columns: 350px 1fr;
    }
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-main-card {
    padding: 24px;
    text-align: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.profile-main-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-details-card {
    padding: 24px;
}

.profile-details-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.details-list-item i {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    margin-top: 2px;
}

.details-list-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.details-list-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.profile-main-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-content-card {
    padding: 32px;
}

.profile-content-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-content-card h3 i {
    color: var(--accent-primary);
}

.profile-content-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Secondary Button style for standalone close button */
.secondary-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.secondary-btn:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--border-hover);
}

/* TOAST SYSTEM */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-surface-solid);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 320px;
    pointer-events: auto;
    animation: toastSlideIn var(--transition-normal) forwards;
}

.toast.removing {
    animation: toastSlideOut var(--transition-normal) forwards;
}

.toast-icon {
    color: var(--accent-primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* FOOTER */
.main-footer {
    background-color: rgba(7, 9, 19, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 30px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 320px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-icon i {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ABOUT SECTION WIDGETS */
.info-section {
    padding: 60px 24px;
    background: rgba(0,0,0,0.15);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    padding: 32px;
    text-align: center;
    transition: transform var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* LOADING & EMPTY STATES */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-secondary);
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes modalScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

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

/* RESPONSIVE DESIGN TYPOGRAPHY & LAYOUTS */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .search-container {
        flex-direction: column;
        padding: 12px;
    }
    .search-input-wrapper {
        padding-left: 8px;
        margin-bottom: 8px;
    }
    .primary-btn {
        width: 100%;
        justify-content: center;
    }
    .modal-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
}

/* STEPPER PROGRESS BAR */
.form-wizard-container {
    max-width: 800px !important;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step-progress-line {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

#step-progress-line {
    width: 0%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    height: 3px;
    position: absolute;
    top: 20px;
    left: 40px;
    z-index: 1;
    transition: width var(--transition-normal);
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-surface-solid);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all var(--transition-normal);
}

.step-label {
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-normal);
}

.step-node.active .step-circle {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.step-node.active .step-label {
    color: var(--text-primary);
}

.step-node.completed .step-circle {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

/* WIZARD FORM BOX */
.form-box-wrapper {
    padding: 40px;
    margin-bottom: 40px;
}

.form-step-page {
    display: none;
}

.form-step-page.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.form-page-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.form-page-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* PLANS SELECTION CARDS */
.plans-select-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .plans-select-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .plans-select-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plan-card-option {
    display: block;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-normal);
}

.plan-card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-card-inner {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card-option:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background-color: var(--card-hover-bg);
}

.plan-card-option input[type="radio"]:checked + .plan-card-inner {
    outline: 2px solid var(--accent-primary);
    border-radius: 15px;
    box-shadow: 0 0 25px var(--accent-glow);
    background-color: var(--card-hover-bg);
}

.plan-card-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0;
}

.plan-card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-card-features li i {
    width: 14px;
    height: 14px;
    color: #22c55e;
}

.plan-card-features li i.feat-disabled {
    color: #ef4444;
}

/* FORM GRID LAYOUT */
.form-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .form-grid-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group select option {
    background-color: var(--bg-surface-solid) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-group select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

[data-theme="light"] .form-group select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.input-help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.char-counter-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

/* REPEATERS SECTION */
.repeater-box {
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 24px;
    margin-top: 8px;
}

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

.repeater-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.repeater-add-btn {
    border-radius: 8px !important;
}

.repeater-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repeater-row {
    display: flex;
    gap: 12px;
    align-items: center;
    animation: fadeIn var(--transition-fast);
}

.repeater-remove-btn {
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}

.repeater-remove-btn:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.services-dual-inputs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .services-dual-inputs {
        grid-template-columns: 150px 1fr;
    }
}

.repeater-limit-msg {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-top: 12px;
    display: none;
    font-weight: 500;
}

/* DYNAMIC PANELS (SOCIAL & BILLING) */
.social-links-panel {
    padding: 32px;
    margin-top: 16px;
}

.social-links-panel h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.panel-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .social-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-alert-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    align-items: flex-start;
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-top: 8px;
}

.info-alert-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-alert-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* WIZARD FORM ACTIONS */
.form-actions-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* SUCCESS BOX */
.form-success-card {
    display: none;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.form-success-card.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalScaleIn var(--transition-normal);
}

.success-giant-icon {
    width: 64px;
    height: 64px;
    color: #22c55e;
    margin-bottom: 24px;
}

.form-success-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-success-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-actions-box {
    display: flex;
    justify-content: center;
}

/* PRICING PAGE & MATRIX COMPARISON STYLES */
.pricing-page-container {
    max-width: 1200px !important;
}

.pricing-header-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-header-wrap h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-header-wrap p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* BILLING TOGGLE SWITCH */
.billing-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-main);
}

.toggle-lbl {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.toggle-lbl.active {
    color: var(--text-primary);
}

.discount-badge {
    background-color: #22c55e;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text-primary);
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: #ffffff;
}

/* RESPONSIVE TABLE WRAPPER */
.pricing-table-responsive-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-main);
    background: var(--bg-surface);
}

.pricing-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
    min-width: 900px;
}

/* TABLE CELL PADDING & ALIGNMENT */
.pricing-matrix-table th,
.pricing-matrix-table td {
    padding: 6px 10px !important;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* CORNER LABEL CELL */
.matrix-corner-cell {
    text-align: left;
    background: rgba(0, 0, 0, 0.05);
}

.matrix-corner-cell .cell-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.row-label-cell {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.02);
}

/* COLUMN ALIGNMENT & COLOR CODES */
.col-basic   { background-color: rgba(92, 107, 115, 0.04); }
.col-medium  { background-color: rgba(43, 122, 94, 0.04); }
.col-full    { background-color: rgba(216, 159, 42, 0.04); }
.col-advance { background-color: rgba(206, 92, 61, 0.04); }
.col-ultra   { background-color: rgba(36, 37, 38, 0.04); }

/* Table Header Styles */
.pricing-matrix-table thead tr th {
    padding: 20px 16px;
    border-bottom: 2px solid var(--border-color);
}

.plan-header-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 12px;
}

.plan-header-badge.basic { background: #5c6b73; }
.plan-header-badge.medium { background: #2b7a5e; }
.plan-header-badge.full { background: #d89f2a; }
.plan-header-badge.advance { background: #ce5c3d; }
.plan-header-badge.ultra { background: #242526; border: 1px solid rgba(255,255,255,0.1); }

.matrix-price {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    transition: opacity var(--transition-fast);
}

.matrix-price-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* CTA Buttons */
.matrix-cta-btn {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.matrix-cta-btn.basic-btn {
    border: 1px solid #5c6b73;
    color: var(--text-primary);
}
.matrix-cta-btn.basic-btn:hover {
    background: #5c6b73;
    color: #ffffff;
}

.matrix-cta-btn.medium-btn {
    border: 1px solid #2b7a5e;
    color: var(--text-primary);
}
.matrix-cta-btn.medium-btn:hover {
    background: #2b7a5e;
    color: #ffffff;
}

.matrix-cta-btn.full-btn {
    background: #d89f2a;
    color: #ffffff;
}
.matrix-cta-btn.full-btn:hover {
    background: #b88621;
    box-shadow: 0 4px 15px rgba(216, 159, 42, 0.3);
}

.matrix-cta-btn.advance-btn {
    border: 1px solid #ce5c3d;
    color: var(--text-primary);
}
.matrix-cta-btn.advance-btn:hover {
    background: #ce5c3d;
    color: #ffffff;
}

.matrix-cta-btn.ultra-btn {
    background: var(--text-primary);
    color: var(--bg-main);
}
.matrix-cta-btn.ultra-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Recommended/Popular Column Highlight */
.pricing-matrix-table .col-full {
    background-color: rgba(216, 159, 42, 0.08) !important;
}

.pricing-matrix-table th.col-full {
    position: relative;
    border-left: 2px solid #d89f2a !important;
    border-right: 2px solid #d89f2a !important;
    border-top: 4px solid #d89f2a !important;
    z-index: 10;
}

.pricing-matrix-table td.col-full {
    border-left: 2px solid rgba(216, 159, 42, 0.25) !important;
    border-right: 2px solid rgba(216, 159, 42, 0.25) !important;
}

.pricing-matrix-table tr:last-child td.col-full {
    border-bottom: 2px solid #d89f2a !important;
}

.popular-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d89f2a;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 40;
}

/* STICKY TABLE HEADER ON DESKTOP */
@media (min-width: 992px) {
    .pricing-table-responsive-wrapper {
        overflow-x: visible !important;
    }
    
    .pricing-matrix-table th {
        position: sticky;
        top: 88px; /* height of header navbar */
        z-index: 30;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    /* Solid backgrounds for sticky headers in dark/light themes */
    [data-theme="dark"] .pricing-matrix-table th.matrix-corner-cell { background-color: #070913 !important; }
    [data-theme="light"] .pricing-matrix-table th.matrix-corner-cell { background-color: #f8fafc !important; }
    
    [data-theme="dark"] .pricing-matrix-table th.col-basic { background-color: #0f131f !important; }
    [data-theme="light"] .pricing-matrix-table th.col-basic { background-color: #f3f4f6 !important; }
    
    [data-theme="dark"] .pricing-matrix-table th.col-medium { background-color: #0b1717 !important; }
    [data-theme="light"] .pricing-matrix-table th.col-medium { background-color: #f2fbf7 !important; }
    
    [data-theme="dark"] .pricing-matrix-table th.col-full {
        position: sticky !important;
        top: 88px;
        z-index: 35 !important;
        background-color: #171415 !important;
    }
    [data-theme="light"] .pricing-matrix-table th.col-full {
        position: sticky !important;
        top: 88px;
        z-index: 35 !important;
        background-color: #fffbeb !important;
    }
    
    [data-theme="dark"] .pricing-matrix-table th.col-advance { background-color: #1b1216 !important; }
    [data-theme="light"] .pricing-matrix-table th.col-advance { background-color: #fff1f2 !important; }
    
    [data-theme="dark"] .pricing-matrix-table th.col-ultra { background-color: #0a0b0d !important; }
    [data-theme="light"] .pricing-matrix-table th.col-ultra { background-color: #f9fafb !important; }
}

/* SECTION HEADINGS ROWS */
.table-section-row td {
    background: rgba(212, 175, 55, 0.08) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    color: var(--accent-primary) !important;
    border-bottom: 2px solid var(--accent-primary) !important;
    padding: 12px 16px !important;
    letter-spacing: 0.08em;
}

/* ICONS & BADGES */
.chk-yes {
    color: #22c55e;
    width: 18px;
    height: 18px;
}

.chk-no {
    color: #ef4444;
    width: 16px;
    height: 16px;
    opacity: 0.4;
}

.table-limit-badge {
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.table-limit-badge.limit-unlimited {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.15);
}

.table-count-circle {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.table-count-circle.highlight {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.15);
}

.table-txt-bold {
    font-weight: 700;
    color: var(--text-primary);
}

.table-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-si {
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    vertical-align: middle;
}

.badge-si::before {
    content: "✔";
    font-size: 0.8rem !important;
}

[data-theme="dark"] .badge-si {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="light"] .badge-si {
    background-color: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-no {
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    vertical-align: middle;
}

.badge-no::before {
    content: "✖";
    font-size: 0.75rem !important;
}

[data-theme="dark"] .badge-no {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .badge-no {
    background-color: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.table-count-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.table-txt-highlight {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}

.table-chip-val {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .table-chip-val {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .table-chip-val {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Specific Plan Colors for Type of Profile tags */
[data-theme="dark"] .table-chip-val.select-full {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139,92,246,0.25);
}
[data-theme="light"] .table-chip-val.select-full {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
    border: 1px solid rgba(139,92,246,0.15);
}

[data-theme="dark"] .table-chip-val.select-adv {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236,72,153,0.25);
}
[data-theme="light"] .table-chip-val.select-adv {
    background: rgba(236, 72, 153, 0.1);
    color: #be185d;
    border: 1px solid rgba(236,72,153,0.15);
}

[data-theme="dark"] .table-chip-val.select-ultra {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.25);
}
[data-theme="light"] .table-chip-val.select-ultra {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.15);
}

/* Responsive navbar styling overrides */
@media (max-width: 992px) {
    .nav-links {
        gap: 16px;
    }
    .nav-link {
        font-size: 0.85rem;
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 24px;
        text-align: center;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .glass-navbar {
        position: relative;
    }
    .view-section {
        padding-top: 20px !important;
    }
}

/* HERO SECTION GRID & DYNAMIC CAROUSEL STYLES */
.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}

@media (min-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content-right {
    width: 100%;
}

/* Featured Lawyers Carousel Card */
.featured-carousel-wrapper {
    position: relative;
    padding: 30px 24px 24px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-normal);
}

.featured-carousel-wrapper:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.carousel-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.carousel-slides {
    position: relative;
    width: 100%;
    min-height: 180px;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.carousel-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 12px var(--accent-glow);
    flex-shrink: 0;
}

.carousel-info {
    flex: 1;
}

.carousel-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.carousel-info .specialty {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.carousel-info .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.carousel-info .rating i {
    width: 14px;
    height: 14px;
    color: var(--star-color);
    fill: var(--star-color);
}

.carousel-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 16px 0 0 0;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--accent-primary);
    opacity: 1;
    transform: scale(1.3);
}

/* Hide required asterisks on form labels */
.required {
    display: none !important;
}

/* MOBILE & TABLET LAYOUT OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Tighten the comparison table font and container size */
    .pricing-matrix-table {
        font-size: 0.8rem !important;
        min-width: 650px !important; /* Narrower columns to fit more on mobile screens */
    }
    
    .pricing-matrix-table th, 
    .pricing-matrix-table td {
        padding: 5px 6px !important;
    }
    
    /* Sticky first column (Characteristics names) so it stays visible on horizontal scroll */
    .pricing-matrix-table td:first-child,
    .pricing-matrix-table th:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 15 !important;
        box-shadow: 3px 0 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Ensure solid background behind the sticky first column depending on the theme */
    [data-theme="dark"] .pricing-matrix-table td:first-child,
    [data-theme="dark"] .pricing-matrix-table th:first-child {
        background-color: #060811 !important; /* solid dark background */
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    [data-theme="light"] .pricing-matrix-table td:first-child,
    [data-theme="light"] .pricing-matrix-table th:first-child {
        background-color: #f1f5f9 !important; /* solid light background */
        border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Ensure category header row colspan cell stays sticky too */
    .table-section-row td {
        position: sticky !important;
        left: 0 !important;
        z-index: 16 !important;
        text-align: center !important;
    }
    
    /* Make check/cross badges slightly smaller to fit mobile cells */
    .badge-si, .badge-no {
        width: 18px !important;
        height: 18px !important;
    }
    .badge-si::before {
        font-size: 0.75rem !important;
    }
    .badge-no::before {
        font-size: 0.7rem !important;
    }
}

/* Ensure maximum contrast for characteristic labels in light theme */
[data-theme="light"] .row-label-cell {
    color: #0f172a !important; /* Pure dark slate for high contrast */
    font-weight: 700 !important;
}

[data-theme="light"] .table-section-row td {
    color: #9a3412 !important; /* Darker accent color for high visibility */
    background: rgba(212, 175, 55, 0.15) !important;
}




