/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f5f7fa;
}

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

/* Header */
header {
    background: white;
    color: #2d3748;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo i {
    font-size: 1.5rem;
    color: #667eea;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin-bottom: 0px;
}

nav a {
    color: #2d3748;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #667eea;
    background-color: #2e2f2f;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2e2f2f;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1;
    right: 0;
}

.dropdown-content a {
    color: #f0eded;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}


.dropdown:hover .dropdown-content {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary {
    background-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a6fd8;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4a5568;
}

/* Search Box */
.search-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-box form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box input,
.search-box select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
}

/* Categories */
.categories {
    padding: 4rem 0;
    background: white;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.category-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.category-card p {
    color: #718096;
    margin-bottom: 1rem;
}

/* Postings Grid */
.postings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.posting-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.posting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.posting-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.posting-image img {
    width: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e0;
    font-size: 3rem;
}

.posting-content {
    padding: 1.5rem;
}

.posting-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.posting-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #dc3545;
}

.posting-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.posting-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #718096;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.posting-meta {
    display: flex;
    gap: 10px;
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.posting-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Index Page Specific Styles */
.index-body,
.auth-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
}

.index-hero {
    background: #1b1b1b;
    padding: 1rem 0;
    text-align: center;
}

.index-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-container form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.search-container select,
.search-container input,
.search-container button {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.search-container select,
.search-container input {
    background: #f8f9fa;
    color: #2d3748;
    transition: all 0.3s ease;
}

.search-container select:focus,
.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container button {
    background: #1a202c;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    border: none;
    margin-top: 18px;
}

.search-container button:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.3);
}

.featured-listings {
    padding: 4rem 0;
    background: #ffffff;
}

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

.listings-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listings-header a {
    color: #4a5568;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.listings-header a:hover {
    color: #2d3748;
}

.posting-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.posting-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    border: 1px solid #e2e8f0;
}

.posting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.posting-card a {
    text-decoration: none;
    color: inherit;
}

.posting-image {
    position: relative;
    width: 280px;
    height: 240px;
    flex-shrink: 0;
    background: #f8f9fa;
}


.vip-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #1a202c;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-gold {
    background: #f6ad55;
}

.vip-silver {
    background: #cbd5e0;
    color: #2d3748;
}

.vip-platinum {
    background: #9f7aea;
}

.posting-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.posting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.posting-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc3545;
    line-height: 1.4;
    flex: 1;
    margin-right: 1rem;
}

.posting-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #38a169;
    white-space: nowrap;
}

.posting-description {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
    word-wrap: break-word;
}

.posting-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #718096;
}

.posting-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.posting-actions {
    gap: 0.75rem;
    align-items: center;
}

.posting-actions a {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.call-btn {
    background: #1a202c;
    color: white;
}

.call-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.3);
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #006699;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.save-btn {
    background: #e2e8f0;
    color: #718096;
    padding: 0.65rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
}

.save-btn:hover {
    background: #cbd5e0;
    color: #2d3748;
    transform: scale(1.05);
}

.similar-postings {
    padding: 4rem 0;
    background: #262829;
}

.similar-postings h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-postings {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.no-postings i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.no-postings h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.no-postings p {
    color: #718096;
    margin-bottom: 1rem;
}

/* Auth Form */
.auth-form {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.form-container p {
    text-align: center;
    margin-bottom: 2rem;
    color: #718096;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links p {
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.dashboard-header p {
    color: #718096;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #718096;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 3rem;
}

.quick-actions h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.action-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.action-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.action-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* Recent Postings */
.recent-postings {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.5rem;
    color: #2d3748;
}

.postings-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.posting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.posting-item:hover {
    background-color: #f8f9fa;
}

.posting-item:last-child {
    border-bottom: none;
}

.posting-info {
    flex: 1;
}

.posting-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #dc3545;
}

.posting-meta {
    display: flex;
    gap: 15px;
    color: #718096;
    font-size: 0.9rem;
}

.posting-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Account Settings */
.account-settings {
    margin-bottom: 2rem;
}

.account-settings h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.settings-grid {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background-color: #f8f9fa;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #2d3748;
}

.setting-info p {
    color: #718096;
    font-size: 0.9rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2d3748;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 1001;
    position: relative;
}

.hamburger:hover {
    color: #667eea;
}

.hamburger:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-nav.active {
    right: 0;
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2d3748;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #f8f9fa;
    color: #667eea;
}

.mobile-nav .dropdown-content {
    display: none;
    background: #f8f9fa;
    padding-left: 1rem;
}

.mobile-nav .dropdown.active .dropdown-content {
    display: block;
}

.mobile-nav .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav .dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.mobile-nav .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-nav-user {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.mobile-nav-user i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Terms Checkbox */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1rem 0;
}

.terms-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-group label {
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
}

.terms-group label a {
    color: #667eea;
    text-decoration: none;
}

.terms-group label a:hover {
    text-decoration: underline;
}

/* Admin Sidebar - Fixed Vertical */
.admin-sidebar {
    width: 250px;
    background: #2d3748;
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
}

.admin-sidebar .logo {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.admin-sidebar .logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.admin-sidebar .logo i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.admin-sidebar nav {
    padding: 0;
}

.admin-sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

.admin-sidebar nav ul li {
    margin-bottom: 0;
    width: 100%;
}

.admin-sidebar nav ul li a {
    color: #cbd5e0;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 0;
}

.admin-sidebar nav ul li a:hover,
.admin-sidebar nav ul li a.active {
    color: white;
    background-color: #667eea;
    width: 100%;
}

.admin-sidebar nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: inherit;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: block;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.sidebar-toggle:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Collapsed Sidebar State */
.admin-sidebar.collapsed {
    width: 70px;
    padding: 1rem 0;
}

.admin-sidebar.collapsed .logo h1 {
    display: none;
}

.admin-sidebar.collapsed .logo i {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.admin-sidebar.collapsed nav ul li a {
    padding: 0.75rem;
    justify-content: center;
}

.admin-sidebar.collapsed nav ul li a span {
    display: none;
}

.admin-sidebar.collapsed nav ul li a i {
    margin-right: 0;
    font-size: 1.25rem;
}

body.sidebar-collapsed .admin-main,
body.sidebar-collapsed .admin-header {
    margin-left: 70px;
}

body.sidebar-collapsed .admin-header {
    left: 70px !important;
}

/* Admin Main Content */
.admin-main {
    margin-left: 250px;
    padding: 2rem;
    padding-top: 80px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.admin-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: left 0.3s ease;
}

.admin-header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 600;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header .user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
}

table tr:hover {
    background: #f8f9fa;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-danger {
    background: #fee2e2;
    color: #dc3545;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #28a745;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Profile Page */
.profile {
    padding: 2rem 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin: 0;
}

.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: white;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: #718096;
    margin-bottom: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.profile-stat {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-stat h4 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.profile-stat p {
    font-size: 0.875rem;
    color: #718096;
}

.profile-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: #2d3748;
    font-weight: 500;
}

/* Add Posting / Edit Posting Page */
.post-create-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.editor-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publish-card,
.settings-card,
.tip-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.publish-card h3,
.settings-card h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 16px;
}

.publish-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.publish-btn:hover {
    background: #374151;
}

.draft-btn {
    width: 100%;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.draft-btn:hover {
    background: #e5e7eb;
}

.image-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.image-upload-area:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.image-upload-area i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.image-upload-area p {
    color: #6b7280;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

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

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-card i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.tip-card h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tip-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* DARK THEME - Public/User Pages (NOT Admin) */
body:not(.admin-main):not(.admin-page):not([class*="admin"]),
body.auth-body,
body.index-body {
    background-color: #000000 !important;
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) header,
body.auth-body header,
body.index-body header {
    background: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) header .logo h1,
body.auth-body header .logo h1,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) nav a,
body.auth-body nav a {
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) nav a:hover,
body.auth-body nav a:hover {
    background-color: #333 !important;
    color: #fff !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-container,
body.auth-body .form-container,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .profile-container,
body.auth-body .profile-container,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .post-create-container,
body.auth-body .post-create-container,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .editor-panel,
body.auth-body .editor-panel,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .publish-card,
body.auth-body .publish-card,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .settings-card,
body.auth-body .settings-card,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .tip-card,
body.auth-body .tip-card {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-container h2,
body.auth-body .form-container h2,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) h1,
body.auth-body h1,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) h2,
body.auth-body h2,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) h3,
body.auth-body h3 {
    color: #dc3545 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group label,
body.auth-body .form-group label,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) label,
body.auth-body label {
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group input,
body.auth-body .form-group input,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group select,
body.auth-body .form-group select,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group textarea,
body.auth-body .form-group textarea {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group input::placeholder,
body.auth-body .form-group input::placeholder {
    color: #888 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .btn-primary,
body.auth-body .btn-primary,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .publish-btn,
body.auth-body .publish-btn {
    background: #dc3545 !important;
    color: white !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .btn-primary:hover,
body.auth-body .btn-primary:hover,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .publish-btn:hover,
body.auth-body .publish-btn:hover {
    background: #c82333 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .draft-btn,
body.auth-body .draft-btn {
    background: #333 !important;
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .auth-form,
body.auth-body .auth-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-container,
body.auth-body .search-container {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-container select,
body.auth-body .search-container select,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-container input,
body.auth-body .search-container input {
    background: #2a2a2a !important;
    color: #f0f0f0 !important;
    border-color: #444 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-field label,
body.auth-body .search-field label {
    color: #888 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .featured-listings,
body.auth-body .featured-listings {
    background: #0a0a0a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-card,
body.auth-body .posting-card {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-card:hover,
body.auth-body .posting-card:hover {
    background: #2a2a2a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-image,
body.auth-body .posting-image {
    background: #2a2a2a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-title,
body.auth-body .posting-title,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-price,
body.auth-body .posting-price {
    color: #dc3545 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-price,
body.auth-body .posting-price {
    color: #48c78e !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-description,
body.auth-body .posting-description,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-meta,
body.auth-body .posting-meta {
    color: #a0aec0 !important;
    word-wrap: break-word;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) footer,
body.auth-body footer {
    background: #111 !important;
    color: #e0e0e0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .footer-column h4,
body.auth-body .footer-column h4,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .footer-column a,
body.auth-body .footer-column a {
    color: #a0aec0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .no-postings,
body.auth-body .no-postings {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .no-postings h3,
body.auth-body .no-postings h3 {
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .no-postings i,
body.auth-body .no-postings i {
    color: #4a5568 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .mobile-nav,
body.auth-body .mobile-nav {
    background: #1a1a1a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .mobile-nav a,
body.auth-body .mobile-nav a {
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group input,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group select,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group textarea {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .form-group input::placeholder {
    color: #888 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .btn-primary,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .publish-btn {
    background: #dc3545 !important;
    color: white !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .btn-primary:hover,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .publish-btn:hover {
    background: #c82333 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .draft-btn {
    background: #333 !important;
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .auth-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-container {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-container select,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-container input {
    background: #2a2a2a !important;
    color: #f0f0f0 !important;
    border-color: #444 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .search-field label {
    color: #888 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .featured-listings {
    background: #0a0a0a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-card {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-card:hover {
    background: #2a2a2a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-image {
    background: #2a2a2a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-title,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-price {
    color: #dc3545 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-price {
    color: #48c78e !important;
    display:none;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-description,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .posting-meta {
    color: #a0aec0 !important;
    word-wrap: break-word;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) footer {
    background: #111 !important;
    color: #e0e0e0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .footer-column h4,
body:not(.admin-main):not(.admin-page):not([class*="admin"]) .footer-column a {
    color: #a0aec0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .no-postings {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .no-postings h3 {
    color: #f0f0f0 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .no-postings i {
    color: #4a5568 !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .mobile-nav {
    background: #1a1a1a !important;
}

body:not(.admin-main):not(.admin-page):not([class*="admin"]) .mobile-nav a {
    color: #f0f0f0 !important;
}

/* Admin - Light Theme */
.admin-main,
.admin-page,
body[class*="admin"] {
    background: #f5f7fa !important;
    color: #2d3748 !important;
}

.admin-main .form-container,
.admin-main .stat-card,
.admin-main .action-card,
.admin-main table {
    background: white !important;
}

.admin-sidebar {
    background: #2d3748 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }
    .admin-main {
        margin-left: 200px;
    }
    .admin-header {
        left: 200px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #0f172a;
        color: #f1f5f9;
        border-bottom: 1px solid #334155;
    }
header .logo {
        order: 1;
    }
    header .logo i {
        color: #fbbf24;
    }
    .hamburger {
        order: 2;
        color: #f1f5f9;
    }
    .hamburger:hover {
        color: #fbbf24;
    }
    header .logo h1 {
        font-size: 1.1rem;
    }
    header .logo i {
        color: #fbbf24;
    }
    .hamburger {
        order: 1;
        color: #f1f5f9;
        display: block;
    }
    .hamburger:hover {
        color: #fbbf24;
    }
    body {
        padding-top: 70px;
    }
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    header .logo {
        display: flex;
        align-items: center;
    }
    .mobile-nav {
        background: #0f172a;
    }
    .mobile-nav ul {
        background: #0f172a;
    }
    .mobile-nav li {
        border-bottom: 1px solid #1e293b;
    }
    .mobile-nav a {
        color: #f1f5f9;
        padding: 1rem;
    }
    .mobile-nav a:hover,
    .mobile-nav a.active {
        background: #1e293b;
        color: #fbbf24;
    }
    .mobile-nav-header {
        background: #0f172a;
        border-bottom: 1px solid #334155;
    }
    .mobile-nav-header h2 {
        color: #fbbf24;
    }
    .mobile-nav-header .logo {
        color: #f1f5f9;
    }
    .mobile-nav-close {
        color: #f1f5f9;
    }
    .mobile-nav-close:hover {
        color: #fbbf24;
    }
    .mobile-nav-user {
        background: #0f172a;
        color: #f1f5f9;
        border-bottom: 1px solid #334155;
    }
    .mobile-nav li.dropdown .dropdown-toggle {
        color: #f1f5f9;
    }
    .mobile-nav .dropdown-content {
        background: #1e293b;
    }
    .mobile-nav .dropdown-content a {
        color: #f1f5f9;
        border-bottom: 1px solid #334155;
    }
    .mobile-nav .dropdown-content a:hover {
        background: #334155;
        color: #fbbf24;
    }
    .mobile-nav-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .index-hero {
        padding: 1.5rem 0.5rem;
    }
    .index-hero h1 {
        font-size: 1.5rem;
        color: #f1f5f9;
        margin-bottom: 1rem;
    }
    .search-container {
        padding: 0.75rem;
        border-radius: 8px;
        background: #1e293b;
    }
    .search-container form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-field {
        width: 100%;
        flex: none;
    }
    .search-field label {
        color: #94a3b8;
        font-size: 0.7rem;
    }
    .search-container select,
    .search-container input {
        width: 100%;
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        background: #0f172a;
        color: #f1f5f9;
        border: 1px solid #334155;
        border-radius: 6px;
    }
    .search-container select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        padding-right: 2rem;
    }
    .search-container button {
        width: 100%;
        min-width: unset;
        margin-top: 0;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .search-container .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .posting-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .posting-card {
        flex-direction: row;
        border-radius: 12px;
        border: 1px solid #334155;
        background: #1e293b;
    }
    .posting-image{
    width:35%; 
    }
    .posting-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #334155;
    }
.posting-content{
    padding:5px;
    flex: inherit;
}
.posting-description{
    margin-bottom:5px;
    word-wrap: break-word;
}
.posting-meta{
    margin-bottom:5px;
}
.posting-header{
    margin-bottom:0px;
}
    .posting-title {
        font-size: 13px;
        color: #f1f5f9;
        line-height: 1.3;
    }
    .posting-price {
        font-size: 1.1rem;
        color: #fbbf24;
    }
    .posting-description {
        color: #94a3b8;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .posting-image img {
    width: 100%;
    object-fit: cover;
    height: 100%;
}
    .posting-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.65rem;
        color: #94a3b8;
    }
    .posting-meta span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    .posting-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    .posting-actions a {
        flex: 1;
        font-size: 0.95rem;
        border-radius: 6px;
        text-align: center;
        margin:0px 8px;
    }
    .whatsapp-btn {
        background: #25D366;
    }
    .call-btn {
        background: #667eea;
    }
    .telegram-btn {
        background: #0088cc;
    }
    .no-postings {
        padding: 2rem 1rem;
        background: #1e293b;
        border-radius: 12px;
    }
    .no-postings i {
        color: #64748b;
        font-size: 2.5rem;
    }
    .no-postings h3 {
        color: #f1f5f9;
    }
    .no-postings p {
        color: #94a3b8;
    }
    .listings-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .featured-listings {
        padding: 2rem 0;
    }
    .featured-listings h2 {
        font-size: 1.25rem;
    }
    .vip-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    .search-box form {
        flex-direction: column;
    }
    .search-box input,
    .search-box select {
        width: 100%;
    }
    .categories h2 {
        font-size: 2rem;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .category-card {
        padding: 1.5rem;
    }
    .postings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .stat-card {
        padding: 1.5rem;
    }
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .stat-content h3 {
        font-size: 1.5rem;
    }
    .actions-grid {
        grid-template-columns: 1fr;
    }
    .hamburger {
        display: block;
    }
    header nav {
        display: none;
    }
    header .container {
        position: relative;
    }
    .logo h1 {
        font-size: 1.1rem;
    }
    .logo i {
        font-size: 1.3rem;
    }
    .mobile-nav {
        display: block;
    }
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    .form-container h1 {
        font-size: 1.5rem;
    }
    .profile-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .post-create-container {
        grid-template-columns: 1fr;
    }
    .sidebar-toggle {
        display: block;
    }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 250px;
        z-index: 1001;
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    .admin-header {
        left: 0;
        padding: 1rem;
    }
    .table-container {
        overflow-x: auto;
    }
    table {
        font-size: 0.85rem;
    }
    th, td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    header .container {
        padding: 0.75rem 15px;
    }
    .logo h1 {
        font-size: 1rem;
    }
    .logo i {
        font-size: 1.2rem;
    }
    .mobile-nav {
        width: 100vw;
    }
    .stats-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }
    .profile-stats {
        grid-template-columns: 1fr;
    }
    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    .form-container {
        padding: 1.25rem !important;
        margin: 0 5px;
    }
    .btn {
        width: 100%;
        padding: 1.1rem;
    }
    .hero {
        padding: 2rem 0;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .categories {
        padding: 2rem 0;
    }
    .categories h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 1rem;
    }
    .category-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .category-card h3 {
        font-size: 0.9rem;
    }
    .postings-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #1e293b;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-link:hover {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-current {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: 600;
}

.pagination-ellipsis {
    color: #64748b;
    padding: 0 0.5rem;
    font-size: 1.2rem;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
}

@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    .pagination-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    .pagination-link i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        justify-content: space-between;
        gap: 0.25rem;
    }
    .pagination-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    .pagination-link:not(.pagination-prev):not(.pagination-next) {
        display: none;
    }
    .pagination-current {
        display: inline-flex;
    }
}
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .stat-content h3 {
        font-size: 1.2rem;
    }
}