/*
Theme Name: Thanjai Directory
Theme URI: https://thanjaidirectory.com
Author: Thanjai Directory Team
Author URI: https://thanjaidirectory.com
Description: Professional B2B Business Directory Listing Theme - Similar to JustDial, Sulekha, YellowPages. Features modern design, user dashboards, AI chatbot integration, and affiliate program.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thanjaidirectory
Tags: business-directory, listing, b2b, directory
*/

/* ============================================
   THANJAI DIRECTORY - MAIN STYLESHEET
   ============================================ */

:root {
    --td-primary: #2563eb;
    --td-primary-dark: #1d4ed8;
    --td-primary-light: #dbeafe;
    --td-secondary: #f97316;
    --td-secondary-dark: #ea580c;
    --td-success: #10b981;
    --td-danger: #ef4444;
    --td-warning: #f59e0b;
    --td-info: #06b6d4;
    --td-dark: #1e293b;
    --td-gray: #64748b;
    --td-gray-light: #f1f5f9;
    --td-white: #ffffff;
    --td-border: #e2e8f0;
    --td-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --td-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --td-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --td-radius: 12px;
    --td-radius-sm: 8px;
    --td-transition: all 0.3s ease;
    --td-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--td-font);
    color: var(--td-dark);
    line-height: 1.6;
    background: var(--td-gray-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { color: var(--td-primary); text-decoration: none; transition: var(--td-transition); }
a:hover { color: var(--td-primary-dark); }

img { max-width: 100%; height: auto; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.td-header {
    background: var(--td-white);
    box-shadow: var(--td-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.td-header-top {
    background: var(--td-dark);
    color: var(--td-white);
    padding: 8px 0;
    font-size: 13px;
}

.td-header-top a { color: #94a3b8; }
.td-header-top a:hover { color: var(--td-white); }

.td-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.td-logo img {
    max-height: 48px;
    width: auto;
}

.td-logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--td-primary);
    margin: 0;
}

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

.td-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.td-nav a {
    padding: 8px 16px;
    border-radius: var(--td-radius-sm);
    color: var(--td-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--td-transition);
}

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

.td-nav .td-btn-primary {
    background: var(--td-primary);
    color: var(--td-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.td-nav .td-btn-primary:hover {
    background: var(--td-primary-dark);
}

.td-nav .td-btn-secondary {
    background: var(--td-secondary);
    color: var(--td-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.td-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--td-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.td-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.td-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,192L48,176C96,160,192,128,288,138.7C384,149,480,203,576,213.3C672,224,768,192,864,165.3C960,139,1056,117,1152,128C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.td-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.td-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--td-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.td-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

/* Search Box */
.td-search-box {
    background: var(--td-white);
    border-radius: 60px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    margin: 0 auto;
}

.td-search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: var(--td-dark);
}

.td-search-box select {
    border: none;
    border-left: 2px solid var(--td-border);
    padding: 16px 20px;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: var(--td-gray);
    cursor: pointer;
    min-width: 160px;
}

.td-search-box button {
    background: var(--td-secondary);
    color: var(--td-white);
    border: none;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--td-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-search-box button:hover {
    background: var(--td-secondary-dark);
    transform: scale(1.02);
}

.td-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.td-hero-stat {
    text-align: center;
    color: var(--td-white);
}

.td-hero-stat .number {
    display: block;
    font-size: 36px;
    font-weight: 800;
}

.td-hero-stat .label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.td-section {
    padding: 80px 0;
}

.td-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.td-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.td-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--td-dark);
    margin-bottom: 12px;
}

.td-section-header p {
    font-size: 18px;
    color: var(--td-gray);
}

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

.td-category-card {
    background: var(--td-white);
    border-radius: var(--td-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--td-transition);
    border: 1px solid var(--td-border);
    cursor: pointer;
}

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

.td-category-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    background: var(--td-primary-light);
    color: var(--td-primary);
}

.td-category-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--td-dark);
}

.td-category-card span {
    font-size: 13px;
    color: var(--td-gray);
}

/* ============================================
   LISTING CARDS
   ============================================ */
.td-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

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

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

.td-listing-card .card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.td-listing-card:hover .card-image img {
    transform: scale(1.05);
}

.td-listing-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--td-secondary);
    color: var(--td-white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.td-listing-card .card-badge.verified {
    background: var(--td-success);
}

.td-listing-card .card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--td-transition);
    color: var(--td-gray);
    font-size: 18px;
}

.td-listing-card .card-favorite:hover,
.td-listing-card .card-favorite.active {
    color: var(--td-danger);
    background: var(--td-white);
}

.td-listing-card .card-body {
    padding: 20px;
}

.td-listing-card .card-category {
    font-size: 12px;
    color: var(--td-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.td-listing-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--td-dark);
}

.td-listing-card h3 a {
    color: inherit;
}

.td-listing-card h3 a:hover {
    color: var(--td-primary);
}

.td-listing-card .card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.td-listing-card .card-rating .stars {
    color: var(--td-warning);
    font-size: 14px;
}

.td-listing-card .card-rating .count {
    font-size: 13px;
    color: var(--td-gray);
}

.td-listing-card .card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--td-gray);
    margin-bottom: 12px;
}

.td-listing-card .card-location i {
    color: var(--td-primary);
}

.td-listing-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.td-listing-card .card-tags span {
    background: var(--td-gray-light);
    color: var(--td-gray);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
}

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

.td-listing-card .card-footer .card-actions {
    display: flex;
    gap: 8px;
}

.td-listing-card .card-footer .card-actions a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--td-gray-light);
    color: var(--td-gray);
    font-size: 14px;
    transition: var(--td-transition);
}

.td-listing-card .card-footer .card-actions a:hover {
    background: var(--td-primary);
    color: var(--td-white);
}

.td-listing-card .card-footer .card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.td-listing-card .card-footer .card-status.open {
    color: var(--td-success);
}

.td-listing-card .card-footer .card-status.closed {
    color: var(--td-danger);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.td-pricing-section {
    background: linear-gradient(180deg, var(--td-gray-light) 0%, var(--td-white) 100%);
    padding: 80px 0;
}

.td-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1080px;
    margin: 0 auto;
}

.td-pricing-card {
    background: var(--td-white);
    border-radius: var(--td-radius);
    padding: 40px 32px;
    border: 2px solid var(--td-border);
    transition: var(--td-transition);
    position: relative;
    overflow: hidden;
}

.td-pricing-card.featured {
    border-color: var(--td-primary);
    transform: scale(1.05);
    box-shadow: var(--td-shadow-lg);
}

.td-pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--td-secondary);
    color: var(--td-white);
    padding: 6px 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.td-pricing-card:hover {
    border-color: var(--td-primary);
    box-shadow: var(--td-shadow-lg);
}

.td-pricing-card .plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--td-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.td-pricing-card .plan-price {
    margin-bottom: 8px;
}

.td-pricing-card .plan-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--td-dark);
}

.td-pricing-card .plan-price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--td-gray);
}

.td-pricing-card .plan-duration {
    font-size: 14px;
    color: var(--td-gray);
    margin-bottom: 30px;
}

.td-pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.td-pricing-card .plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--td-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--td-dark);
}

.td-pricing-card .plan-features li i {
    color: var(--td-success);
    font-size: 16px;
}

.td-pricing-card .plan-btn {
    display: block;
    text-align: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--td-transition);
    border: 2px solid var(--td-primary);
    color: var(--td-primary);
    background: transparent;
    cursor: pointer;
    width: 100%;
}

.td-pricing-card .plan-btn:hover,
.td-pricing-card.featured .plan-btn {
    background: var(--td-primary);
    color: var(--td-white);
}

.td-pricing-card.featured .plan-btn:hover {
    background: var(--td-primary-dark);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.td-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.td-step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.td-step-card .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--td-primary);
    color: var(--td-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.td-step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.td-step-card p {
    font-size: 14px;
    color: var(--td-gray);
}

/* ============================================
   SINGLE LISTING PAGE
   ============================================ */
.td-single-listing {
    padding: 30px 0 60px;
}

.td-listing-header {
    background: var(--td-white);
    border-radius: var(--td-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--td-shadow);
}

.td-listing-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 4px;
    height: 504px;
}

.td-listing-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-listing-gallery img:first-child {
    grid-row: span 2;
}

.td-listing-info {
    padding: 30px;
}

.td-listing-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.td-listing-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.td-listing-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--td-gray);
}

.td-listing-meta .meta-item i {
    color: var(--td-primary);
}

.td-listing-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.td-listing-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.td-listing-block {
    background: var(--td-white);
    border-radius: var(--td-radius);
    padding: 30px;
    box-shadow: var(--td-shadow);
}

.td-listing-block h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--td-border);
}

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

.td-sidebar-widget {
    background: var(--td-white);
    border-radius: var(--td-radius);
    padding: 24px;
    box-shadow: var(--td-shadow);
}

.td-sidebar-widget h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Contact Actions */
.td-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.td-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--td-radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--td-transition);
    width: 100%;
}

.td-contact-btn.phone {
    background: var(--td-success);
    color: var(--td-white);
}

.td-contact-btn.email {
    background: var(--td-primary);
    color: var(--td-white);
}

.td-contact-btn.whatsapp {
    background: #25d366;
    color: var(--td-white);
}

.td-contact-btn.chat {
    background: var(--td-secondary);
    color: var(--td-white);
}

/* Business Hours */
.td-business-hours table {
    width: 100%;
    border-collapse: collapse;
}

.td-business-hours td {
    padding: 10px 0;
    border-bottom: 1px solid var(--td-border);
    font-size: 14px;
}

.td-business-hours td:first-child {
    font-weight: 600;
}

.td-business-hours .open { color: var(--td-success); }
.td-business-hours .closed { color: var(--td-danger); }

/* Map */
.td-map-container {
    border-radius: var(--td-radius-sm);
    overflow: hidden;
    height: 250px;
    background: var(--td-gray-light);
}

/* Reviews */
.td-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.td-review-item {
    padding: 20px;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius-sm);
}

.td-review-item .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.td-review-item .review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--td-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--td-primary);
}

.td-review-item .review-stars {
    color: var(--td-warning);
    font-size: 14px;
}

.td-review-item .review-date {
    font-size: 12px;
    color: var(--td-gray);
}

/* ============================================
   DASHBOARD COMMON STYLES
   ============================================ */
.td-dashboard {
    display: flex;
    min-height: 100vh;
}

.td-dash-sidebar {
    width: 280px;
    background: var(--td-dark);
    color: var(--td-white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--td-transition);
}

.td-dash-sidebar .sidebar-logo {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.td-dash-sidebar .sidebar-logo h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--td-white);
}

.td-dash-sidebar .sidebar-logo h2 span {
    color: var(--td-secondary);
}

.td-dash-nav {
    padding: 20px 0;
}

.td-dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: var(--td-transition);
    border-left: 3px solid transparent;
}

.td-dash-nav a:hover,
.td-dash-nav a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--td-white);
    border-left-color: var(--td-primary);
}

.td-dash-nav a i {
    width: 20px;
    text-align: center;
}

.td-dash-nav .nav-section {
    padding: 12px 24px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    font-weight: 600;
}

.td-dash-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: var(--td-gray-light);
}

.td-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.td-dash-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

/* Dashboard Stats Cards */
.td-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.td-stat-card {
    background: var(--td-white);
    border-radius: var(--td-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--td-shadow);
    transition: var(--td-transition);
}

.td-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--td-shadow-md);
}

.td-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.td-stat-card .stat-icon.blue { background: var(--td-primary-light); color: var(--td-primary); }
.td-stat-card .stat-icon.green { background: #d1fae5; color: var(--td-success); }
.td-stat-card .stat-icon.orange { background: #fed7aa; color: var(--td-secondary); }
.td-stat-card .stat-icon.red { background: #fecaca; color: var(--td-danger); }

.td-stat-card .stat-info .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--td-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.td-stat-card .stat-info .label {
    font-size: 13px;
    color: var(--td-gray);
}

/* Dashboard Tables */
.td-table-wrap {
    background: var(--td-white);
    border-radius: var(--td-radius);
    box-shadow: var(--td-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.td-table-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.td-table {
    width: 100%;
    border-collapse: collapse;
}

.td-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--td-gray);
    background: var(--td-gray-light);
    border-bottom: 1px solid var(--td-border);
}

.td-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--td-border);
}

.td-table tr:hover td {
    background: rgba(37, 99, 235, 0.02);
}

/* Status Badges */
.td-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.td-badge.approved { background: #d1fae5; color: #065f46; }
.td-badge.pending { background: #fef3c7; color: #92400e; }
.td-badge.rejected { background: #fecaca; color: #991b1b; }
.td-badge.free { background: #e0e7ff; color: #3730a3; }
.td-badge.silver { background: #e2e8f0; color: #475569; }
.td-badge.gold { background: #fef3c7; color: #92400e; }

/* ============================================
   BUTTONS
   ============================================ */
.td-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--td-radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--td-transition);
}

.td-btn-primary { background: var(--td-primary); color: var(--td-white); }
.td-btn-primary:hover { background: var(--td-primary-dark); }
.td-btn-success { background: var(--td-success); color: var(--td-white); }
.td-btn-danger { background: var(--td-danger); color: var(--td-white); }
.td-btn-warning { background: var(--td-warning); color: var(--td-white); }
.td-btn-outline { background: transparent; border: 2px solid var(--td-primary); color: var(--td-primary); }
.td-btn-outline:hover { background: var(--td-primary); color: var(--td-white); }
.td-btn-sm { padding: 6px 14px; font-size: 13px; }
.td-btn-lg { padding: 14px 32px; font-size: 16px; }

/* ============================================
   FORMS
   ============================================ */
.td-form-group {
    margin-bottom: 20px;
}

.td-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--td-dark);
    margin-bottom: 6px;
}

.td-form-group .required { color: var(--td-danger); }

.td-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--td-border);
    border-radius: var(--td-radius-sm);
    font-size: 15px;
    transition: var(--td-transition);
    font-family: var(--td-font);
    outline: none;
}

.td-form-control:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.td-form-control::placeholder {
    color: #94a3b8;
}

textarea.td-form-control {
    min-height: 120px;
    resize: vertical;
}

select.td-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* File Upload */
.td-file-upload {
    border: 2px dashed var(--td-border);
    border-radius: var(--td-radius-sm);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--td-transition);
}

.td-file-upload:hover {
    border-color: var(--td-primary);
    background: var(--td-primary-light);
}

.td-file-upload i {
    font-size: 36px;
    color: var(--td-primary);
    margin-bottom: 12px;
}

.td-file-upload p {
    font-size: 14px;
    color: var(--td-gray);
    margin: 0;
}

/* ============================================
   AI CHATBOT WIDGET
   ============================================ */
.td-chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.td-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--td-primary);
    color: var(--td-white);
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: var(--td-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
}

.td-chatbot-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--td-white);
    border-radius: var(--td-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.td-chatbot-window.active {
    display: flex;
}

.td-chatbot-header {
    background: var(--td-primary);
    color: var(--td-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.td-chatbot-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.td-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.td-chatbot-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.td-chatbot-msg.bot {
    background: var(--td-gray-light);
    color: var(--td-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.td-chatbot-msg.user {
    background: var(--td-primary);
    color: var(--td-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.td-chatbot-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--td-border);
    gap: 8px;
}

.td-chatbot-input input {
    flex: 1;
    border: 2px solid var(--td-border);
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.td-chatbot-input input:focus {
    border-color: var(--td-primary);
}

.td-chatbot-input button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--td-primary);
    color: var(--td-white);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.td-footer {
    background: var(--td-dark);
    color: #94a3b8;
    padding: 60px 0 0;
}

.td-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.td-footer h3 {
    color: var(--td-white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
}

.td-footer p {
    font-size: 14px;
    line-height: 1.8;
}

.td-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-footer ul li { margin-bottom: 10px; }

.td-footer ul li a {
    color: #94a3b8;
    font-size: 14px;
}

.td-footer ul li a:hover {
    color: var(--td-white);
}

.td-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.td-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.td-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--td-transition);
}

.td-footer-social a:hover {
    background: var(--td-primary);
    color: var(--td-white);
}

/* ============================================
   AFFILIATE SECTION
   ============================================ */
.td-affiliate-banner {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: var(--td-radius);
    padding: 50px;
    color: var(--td-white);
    text-align: center;
    margin: 40px 0;
}

.td-affiliate-banner h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.td-affiliate-banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .td-listing-content {
        grid-template-columns: 1fr;
    }
    .td-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .td-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .td-hero h1 { font-size: 32px; }
    .td-hero p { font-size: 16px; }

    .td-search-box {
        flex-direction: column;
        border-radius: var(--td-radius);
        padding: 12px;
    }

    .td-search-box input[type="text"],
    .td-search-box select {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--td-border);
        padding: 14px 16px;
    }

    .td-search-box button {
        width: 100%;
        justify-content: center;
    }

    .td-hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .td-nav { display: none; }
    .td-mobile-toggle { display: block; }

    .td-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .td-listings-grid {
        grid-template-columns: 1fr;
    }

    .td-pricing-grid {
        grid-template-columns: 1fr;
    }

    .td-pricing-card.featured {
        transform: none;
    }

    .td-section-header h2 { font-size: 28px; }

    .td-footer-grid {
        grid-template-columns: 1fr;
    }

    .td-listing-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 300px;
        height: auto;
    }

    .td-listing-gallery img:not(:first-child) {
        display: none;
    }

    .td-dash-sidebar {
        transform: translateX(-100%);
    }

    .td-dash-sidebar.active {
        transform: translateX(0);
    }

    .td-dash-content {
        margin-left: 0;
    }

    .td-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .td-hero h1 { font-size: 26px; }
    .td-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .td-stats-grid {
        grid-template-columns: 1fr;
    }
    .td-steps-grid {
        grid-template-columns: 1fr;
    }
    .td-chatbot-window {
        width: calc(100vw - 40px);
        right: -12px;
    }
}
