/* TextileHub India - Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; background: #f8f7f4; font-size: 15px; line-height: 1.6; }
a { color: #e07b00; text-decoration: none; }
a:hover { color: #c06800; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Navbar */
.navbar { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.nav-inner { display: flex; align-items: center; gap: 2rem; padding: .9rem 1.25rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; color: #1a1a2e; font-weight: 700; }
.logo-icon { font-size: 1.5rem; }
.logo strong { color: #e07b00; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: #444; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: #e07b00; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-left: auto; }
@media(max-width:768px){
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; border-bottom: 1px solid #eee; gap: .75rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.btn-primary { background: #e07b00; color: #fff; border-color: #e07b00; }
.btn-primary:hover { background: #c06800; border-color: #c06800; color: #fff; }
.btn-outline { background: transparent; color: #e07b00; border-color: #e07b00; }
.btn-outline:hover { background: #e07b00; color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-success { background: #16a34a; color: #fff; border-color: #16a34a; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-sm { padding: .3rem .75rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

/* Flash / Alerts */
.flash { padding: .85rem 1.25rem; font-weight: 500; text-align: center; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Badges */
.badge { display: inline-block; padding: .25rem .65rem; border-radius: 20px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-sell { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-buy { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-lg { padding: .35rem 1rem; font-size: .88rem; }

/* Hero */
.hero { position: relative; background: url('../images/hero-textile.jpg') center/cover no-repeat, linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%); min-height: 520px; display: flex; align-items: center; color: #fff; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,.85), rgba(224,123,0,.4)); }
.hero-content { position: relative; z-index: 1; text-align: center; width: 100%; padding: 4rem 1.25rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: .4rem 1rem; border-radius: 20px; font-size: .85rem; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 .highlight { color: #f59e0b; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; color: #f59e0b; }
.hero-stats span { font-size: .85rem; opacity: .8; }
@media(max-width:600px){ .hero h1 { font-size: 2rem; } }

/* Sections */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; color: #1a1a2e; margin-bottom: .5rem; }
.section-header p { color: #666; font-size: 1rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.section-header.center { justify-content: center; flex-direction: column; }

/* Categories */
.categories-section { background: #fff; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.category-card { background: #f8f7f4; border: 2px solid #eee; border-radius: 12px; padding: 1.5rem 1rem; text-align: center; transition: all .2s; color: #1a1a2e; }
.category-card:hover { border-color: #e07b00; background: #fff7ed; color: #e07b00; transform: translateY(-2px); }
.cat-icon { font-size: 2rem; margin-bottom: .5rem; }
.cat-name { font-weight: 700; font-size: .95rem; }
.cat-count { font-size: .78rem; color: #888; margin-top: .2rem; }

/* Listings Grid */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.listing-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; transition: box-shadow .2s; }
.listing-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-date { font-size: .78rem; color: #999; }
.listing-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.listing-card h3 a { color: #1a1a2e; }
.listing-card h3 a:hover { color: #e07b00; }
.card-desc { font-size: .88rem; color: #666; line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: #555; }
.meta-item { background: #f4f4f4; padding: .2rem .6rem; border-radius: 20px; }
.price { color: #e07b00; font-weight: 700; font-size: .95rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: #666; padding-top: .5rem; border-top: 1px solid #f0f0f0; }
.phone-blur { color: #999; font-style: italic; }
.card-btn { width: 100%; justify-content: center; margin-top: .5rem; }

/* How It Works */
.how-section { background: #1a1a2e; color: #fff; padding: 4rem 0; }
.how-section .section-header h2 { color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 2rem; }
.step { text-align: center; }
.step-num { width: 50px; height: 50px; background: #e07b00; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin: 0 auto 1rem; }
.step h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { opacity: .8; font-size: .9rem; }

/* Footer */
.footer { background: #1a1a2e; color: #ccc; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-logo strong { color: #f59e0b; }
.footer-desc { font-size: .88rem; line-height: 1.6; }
.footer h4 { color: #fff; margin-bottom: .75rem; font-size: .95rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .4rem; }
.footer ul li a { color: #aaa; font-size: .88rem; }
.footer ul li a:hover { color: #f59e0b; }
.footer p { font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .82rem; color: #888; }
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px){ .footer-grid { grid-template-columns: 1fr; } }

/* Page Header */
.page-header { background: #1a1a2e; color: #fff; padding: 2.5rem 0; margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header p { opacity: .8; margin-top: .3rem; }
.page-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Listings Page */
.listings-page { padding-bottom: 3rem; }
.listings-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters-sidebar { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 1.5rem; position: sticky; top: 80px; }
.filters-sidebar h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1rem; }
.filter-group label { display: block; font-size: .85rem; font-weight: 600; color: #555; margin-bottom: .4rem; }
.filter-group input, .filter-group select { width: 100%; padding: .55rem .75rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: .9rem; background: #fafafa; }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: #e07b00; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: .9rem; color: #555; }
.clear-filters { color: #dc2626; font-size: .85rem; }
.empty-state { text-align: center; padding: 4rem 2rem; color: #888; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; color: #444; margin-bottom: .5rem; }
@media(max-width:768px){ .listings-layout { grid-template-columns: 1fr; } .filters-sidebar { position: static; } }

/* Pagination */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.page-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #ddd; color: #444; font-size: .9rem; }
.page-link.active { background: #e07b00; color: #fff; border-color: #e07b00; }
.page-link:hover:not(.active) { border-color: #e07b00; color: #e07b00; }

/* Listing Detail */
.listing-detail-page { padding: 2rem 0 4rem; }
.breadcrumb { font-size: .85rem; color: #888; margin-bottom: 1.5rem; }
.breadcrumb a { color: #e07b00; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.detail-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem; }
.detail-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.detail-date { font-size: .85rem; color: #999; }
.detail-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.detail-item { background: #f8f7f4; padding: .75rem 1rem; border-radius: 8px; }
.detail-item strong { display: block; font-size: .78rem; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.detail-item span { font-size: .95rem; color: #1a1a2e; }
.price-big { color: #e07b00; font-weight: 700; font-size: 1.1rem; }
.detail-desc h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.contact-sidebar { position: sticky; top: 80px; }
.contact-card { background: #fff; border: 1.5px solid #e07b00; border-radius: 12px; padding: 1.5rem; text-align: center; }
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.locked-contact p { font-size: .9rem; color: #555; margin: .75rem 0; }
.phone-blur-display { font-size: 1.25rem; font-weight: 700; color: #999; background: #f4f4f4; padding: .75rem 1.5rem; border-radius: 8px; letter-spacing: .1em; }
.lock-icon { font-size: 2.5rem; margin: 1rem 0; }
.small-note { font-size: .8rem; color: #999; margin-top: .75rem; }
.unlocked-contact .phone-number { font-size: 1.6rem; font-weight: 800; color: #16a34a; margin: 1rem 0; }
.unlocked-contact .contact-icon { font-size: 2rem; }
.enquiry-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 2rem; }
.enquiry-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
@media(max-width:768px){ .detail-layout { grid-template-columns: 1fr; } .contact-sidebar { position: static; } }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: #444; margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .65rem .9rem; border: 1.5px solid #ddd; border-radius: 8px; font-size: .92rem; font-family: inherit; background: #fafafa; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #e07b00; background: #fff; }
.form-group textarea { resize: vertical; }
.form-group small { display: block; font-size: .78rem; color: #888; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* Auth pages */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 120px); padding: 2rem 1rem; background: #f8f7f4; }
.auth-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 480px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h2 { font-size: 1.6rem; font-weight: 800; }
.auth-header p { color: #666; font-size: .9rem; margin-top: .3rem; }
.auth-footer { text-align: center; font-size: .88rem; color: #666; margin-top: 1rem; }

/* Post Listing / Form page */
.form-page { padding-bottom: 4rem; }
.form-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 2rem; max-width: 760px; }
.form-note { font-size: .82rem; color: #888; margin-top: .75rem; }

/* My listings table */
.table-wrapper { overflow-x: auto; border-radius: 10px; border: 1px solid #eee; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { background: #f4f4f4; padding: .85rem 1rem; text-align: left; font-weight: 700; color: #444; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.data-table td { padding: .85rem 1rem; border-top: 1px solid #f0f0f0; vertical-align: middle; }
.data-table tr:hover td { background: #fafafa; }
.status-badge { display: inline-block; padding: .22rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-utr_submitted, .status-utr-submitted { background: #dbeafe; color: #1e40af; }

/* Unlock page */
.unlock-page { max-width: 640px; margin: 2rem auto; padding-bottom: 4rem; }
.unlock-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 2.5rem; }
.unlock-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.unlock-listing { color: #666; font-size: .9rem; margin-bottom: 1.5rem; }
.unlock-steps { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 1.5rem; }
.unlock-step { background: #f8f7f4; border-radius: 12px; padding: 1.5rem; }
.step-header { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.step-num { width: 28px; height: 28px; background: #e07b00; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; flex-shrink: 0; }
.upi-box { background: #fff; border: 2px solid #e07b00; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.upi-label { font-size: .78rem; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.upi-id { font-size: 1.1rem; font-weight: 800; color: #1a1a2e; margin: .3rem 0; cursor: pointer; }
.copy-btn { font-size: .8rem; color: #e07b00; margin-left: .5rem; }
.upi-amount { font-size: .9rem; color: #555; }
.pending-info { text-align: center; padding: 2rem 0; }
.pending-icon { font-size: 3rem; margin-bottom: 1rem; }
.pending-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }

/* Admin */
.admin-body { background: #f4f6f9; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #1a1a2e; color: #ccc; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-logo { padding: 1.5rem 1.25rem; font-size: 1.1rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo strong { color: #f59e0b; }
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav a { display: block; padding: .75rem 1.25rem; color: #bbb; font-size: .92rem; font-weight: 500; transition: all .15s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left: 3px solid #f59e0b; }
.admin-sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-footer a { display: block; color: #999; font-size: .85rem; padding: .4rem 0; }
.admin-sidebar-footer a:hover { color: #fff; }
.admin-main { flex: 1; overflow-x: hidden; }
.admin-content { padding: 2rem; }
.admin-content h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-page-header h1 { margin-bottom: 0; }
.admin-section { margin-top: 2rem; }
.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-section-header h2 { font-size: 1.15rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.5rem 1.25rem; border: 1px solid #eee; text-align: center; }
.stat-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: #1a1a2e; }
.stat-label { font-size: .8rem; color: #888; margin-top: .2rem; }
.stat-warn .stat-value { color: #d97706; }
.stat-success .stat-value { color: #16a34a; }
.stat-primary .stat-value { color: #e07b00; }
.action-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab { padding: .45rem 1rem; border-radius: 20px; background: #fff; border: 1px solid #ddd; font-size: .88rem; color: #555; font-weight: 500; }
.tab.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.revenue-badge { background: #dcfce7; color: #166534; padding: .5rem 1.25rem; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.text-success { color: #16a34a; font-size: .85rem; }
.text-muted { color: #999; font-size: .85rem; }
code { background: #f4f4f4; padding: .1rem .4rem; border-radius: 4px; font-family: monospace; font-size: .88rem; }

/* Admin Login */
.admin-login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #1a1a2e; padding: 1rem; }
.admin-login-card { background: #fff; border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 400px; text-align: center; }
.admin-login-logo { font-size: 3rem; margin-bottom: 1rem; }
.admin-login-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.admin-login-card p { color: #888; margin-bottom: 1.5rem; }
