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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Utility: top offset for fixed navbar */
.page-offset {
    padding-top: 120px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Mobile/Desktop visibility classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* Removed !important to allow Tailwind responsive classes to work */
.hidden {
    display: none;
}

.admin-only {
    display: none;
}

.admin-only.show {
    display: block;
}

.btn-mobile {
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Button size utility used in logs pages */
.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Text utilities used in logs pages */
.text-center { text-align: center; }
.text-danger { color: #dc2626; }

/* Generic compact form utilities (used by buy/sell quote and pickup forms) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.form-row + .form-row { margin-top: 0.75rem; }
.sell-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
}
.sell-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: #eaf2ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr; /* single column */
    gap: 2rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-search {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.search-input-wrapper i:first-child {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    z-index: 1;
}

.hero-search-input {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #1e293b;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: 0.75rem 1rem;  /* 1rem 1.5rem */                       
    border-radius: 0;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: none;
}

/* Mobile tweaks: refine hero layout and navbar scale */
@media (max-width: 480px) {
    .hero { padding: 96px 0 56px; min-height: auto; }
    .hero-title { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.25; }
    .hero-description { font-size: 1rem; margin-bottom: 1.25rem; }
    .search-input-wrapper { flex-direction: column; align-items: stretch; max-width: 100%; }
    .hero-search-input { padding: 0.875rem 1rem 0.875rem 2.5rem; font-size: 0.95rem; }
    .search-btn { width: 100%; border-radius: 0 0 12px 12px; }
    .nav-logo span { font-size: 1.25rem; }
    .nav-logo i { font-size: 1.75rem; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Background video wrapper */
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0; /* behind content, no overlay */
    pointer-events: none;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) saturate(1.1);
}

/* overlay removed */

/* removed Spline embed styles */

.book-stack {
    position: relative;
    width: 300px;
    height: 400px;
}

.book {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
}

.book-1 {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    top: 0;
    left: 0;
    z-index: 3;
}

.book-2 {
    background: linear-gradient(135deg, #059669, #047857);
    top: 20px;
    left: 20px;
    z-index: 2;
}

.book-3 {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    top: 40px;
    left: 40px;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

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

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Tilted Card Styles */
.tilted-card-figure {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tilted-card-mobile-alert {
    position: absolute;
    top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    display: none;
}

@media (max-width: 640px) {
    .tilted-card-mobile-alert {
        display: block;
    }
    .tilted-card-caption {
        display: none;
    }
}

.tilted-card-inner {
    position: relative;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
}

.tilted-card-img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 15px;
    will-change: transform;
    transform: translateZ(0);
    width: 100%;
    height: 100%;
}

.tilted-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    will-change: transform;
    transform: translateZ(30px);
    width: 100%;
    height: 100%;
}

.tilted-card-caption {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px;
    background-color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    color: #2d2d2d;
    opacity: 0;
    z-index: 3;
}

/* Tilted Feature Card Specific Styles */
.tilted-feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.tilted-feature-card .tilted-card-inner {
    padding: 2rem;
    background: white;
    border-radius: 16px;
}

.tilted-feature-card .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.tilted-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
    position: relative;
    z-index: 1;
}

.tilted-feature-card p {
    color: #64748b;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Browse Section */
.browse {
    padding: 80px 0;
    background: #f8fafc;
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 1;
}

.search-box input {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-right: none;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-box .search-btn {
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding: 1rem 1.5rem;
    height: 100%;
    min-width: 100px;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.book-author {
    color: #64748b;
    margin-bottom: 1rem;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.book-condition {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Sell Section */
.sell {
    padding: 80px 0;
    background: white;
}

.sell-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sell-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.sell-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.sell-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.sell-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #374151;
}

.sell-benefits i {
    color: #059669;
    font-size: 1.2rem;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1e293b;
    border-radius: 30px;
    padding: 20px;
    margin: 0 auto;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.app-interface {
    padding: 1rem;
}

.app-header {
    background: #2563eb;
    color: white;
    padding: 1rem;
    margin: -1rem -1rem 1rem -1rem;
    text-align: center;
    font-weight: 600;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

.team-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.person {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.person-2 {
    background: linear-gradient(135deg, #059669, #047857);
}

.person-3 {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* About section image */
.about-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Search Results Page */
.search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
    color: white;
}

.search-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.search-header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-results {
    padding: 60px 0;
    background: #f8fafc;
}

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

.results-count {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
}

.results-count span {
    color: #2563eb;
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 500;
    color: #64748b;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-results-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Book Cards for Search Results */
.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.book-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.book-condition {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-author {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.book-isbn {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.book-subject {
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.book-location {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.book-location i {
    margin-right: 0.25rem;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1rem;
}

.book-contact {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Responsive for Search Results */
@media (max-width: 768px) {
    .search-header {
        padding: 100px 0 40px;
    }
    
    .search-header-content h1 {
        font-size: 2rem;
    }
    
    .search-header-content p {
        font-size: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sort-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select {
        flex: 1;
        max-width: 200px;
    }
    
    /* Search filters mobile responsiveness */
    .search-filters {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .search-box {
        min-width: unset;
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .search-box input {
        width: 100%;
        border-radius: 8px;
        border-right: 2px solid #e2e8f0;
        padding: 1rem 1rem 1rem 3rem;
    }
    
    .search-box .search-btn {
        display: none;
    }
    
    .filters {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Books grid mobile responsiveness */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-card {
        margin: 0;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-title {
        font-size: 1rem;
    }
    
    .book-author {
        font-size: 0.85rem;
    }
    
    .book-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .book-subject,
    .book-course,
    .book-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .book-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .book-availability {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .stock-count,
    .date-added {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .search-header {
        padding: 80px 0 30px;
    }
    
    .search-header-content h1 {
        font-size: 1.75rem;
    }
    
    .search-header-content p {
        font-size: 0.9rem;
    }
    
    .search-results {
        padding: 40px 0;
    }
    
    .search-filters {
        margin-bottom: 1.5rem;
    }
    
    .search-box input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-box .search-btn {
        display: none;
    }
    
    .filter-select {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .results-header {
        margin-bottom: 1.5rem;
    }
    
    .results-count {
        font-size: 1rem;
    }
    
    .sort-select {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .book-card {
        border-radius: 8px;
    }
    
    .book-image {
        height: 180px;
    }
    
    .book-info {
        padding: 0.875rem;
    }
    
    .book-title {
        font-size: 0.95rem;
    }
    
    .book-author {
        font-size: 0.8rem;
    }
    
    .book-price {
        font-size: 1.25rem;
    }
    
    .book-contact {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    
    /* Book details page for very small screens */
    .book-details-container {
        padding: 0.75rem;
        padding-top: 4.5rem;
    }
    
    .book-title {
        font-size: 1.5rem !important;
    }
    
    .book-author {
        font-size: 0.9rem;
    }
    
    .current-price {
        font-size: 1.25rem;
    }
    
    .book-meta-item {
        padding: 0.625rem;
    }
    
    .book-meta-label {
        font-size: 0.75rem;
    }
    
    .book-meta-value {
        font-size: 0.85rem;
    }
    
    .book-description {
        padding: 0.875rem;
    }
    
    .btn-buy,
    .btn-sell {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .seller-info {
        padding: 0.875rem;
    }
    
    .seller-stat-value {
        font-size: 1.125rem;
    }
    
    .seller-stat-label {
        font-size: 0.75rem;
    }
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: #2563eb;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile/Desktop visibility */
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .nav-menu .mobile-only {
        margin: 1rem 0;
    }

    /* Mobile auth buttons styling */
    .nav-menu .mobile-only .btn {
        display: block;
        width: auto;
        max-width: 200px;
        margin: 0.5rem auto;
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .nav-menu .mobile-only .btn-primary {
        background: #2563eb;
        color: white;
        border: none;
    }

    .nav-menu .mobile-only .btn-secondary {
        background: transparent;
        color: #2563eb;
        border: 2px solid #2563eb;
    }
    
    /* Mobile user menu styling */
    .nav-menu .mobile-only .user-menu {
        width: 100%;
        margin: 1rem 0;
    }
    
    .nav-menu .mobile-only .user-menu button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .nav-menu .mobile-only .user-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0.5rem;
    }
    
    .nav-menu .mobile-only .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
        background: #f8fafc;
        color: #374151;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .nav-menu .mobile-only .dropdown-item:hover {
        background: #e2e8f0;
    }
    
    .nav-menu .mobile-only .dropdown-item i {
        width: 16px;
        text-align: center;
    }
    
    .nav-menu .mobile-only hr {
        margin: 0.5rem 0;
        border: none;
        border-top: 1px solid #e5e7eb;
    }

    /* Hide desktop user menu on mobile */
    .nav-buttons.desktop-only#userButtons {
        display: none !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-search {
        margin-bottom: 1.5rem;
    }
    
    .search-input-wrapper {
        max-width: 100%;
        position: relative;
    }
    
    .hero-buttons { justify-content: center; }

    /* ensure search icon stays inside on mobile */
    .search-input-wrapper i:first-child { 
        position: absolute; 
        top: 50%;
        left: 1rem;
        transform: translateY(-50%); 
    }

    .sell-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Hide About image on mobile */
    .about-image { display: none; }

    .search-filters {
        flex-direction: column;
    }

    .search-box {
        min-width: auto;
    }

    .search-box .search-btn {
        min-width: 80px;
        padding: 1rem 1rem;
    }

    .filters {
        justify-content: center;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Hide About image on tablets as well */
@media (max-width: 1024px) {
    .about-image { display: none; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading States */
.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.loading-state .spinner,
.loading-more .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-state p,
.loading-more p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

/* Error State */
.error-state {
    color: #dc2626;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dc2626;
}

.error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #dc2626;
}

.error-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

/* Enhanced Book Cards */
.book-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.book-card:active {
    transform: translateY(-2px);
}

/* Remove decorative arrow on hover */
.book-card::after { content: none; }

.book-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.92); /* deeper blue for stronger contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

/* Overlay action buttons container */
.overlay-actions {
    display: flex;
    gap: 0.75rem;
}

/* High-contrast buttons on overlay */
.book-overlay .btn {
    background: white;
    color: #1e3a8a; /* dark blue text to match overlay */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.book-overlay .btn:hover {
    transform: translateY(-2px);
}

.book-overlay .btn.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.book-overlay .btn.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
}

/* Allow showing overlay on mobile by adding .active to the card */
.book-card.active .book-overlay {
    opacity: 1;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.book-details {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.book-subject,
.book-course,
.book-category {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.book-condition {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.book-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.original-price {
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: line-through;
}

.book-availability {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.stock-count {
    font-weight: 500;
    color: #059669;
}

.date-added {
    font-style: italic;
}

/* Responsive adjustments for book cards */
@media (max-width: 768px) {
    .book-info {
        padding: 1rem;
    }
    
    .book-title {
        font-size: 1rem;
    }
    
    .book-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .book-availability {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Book details page mobile responsiveness */
    .book-details-container {
        padding: 1rem;
        padding-top: 5rem;
    }
    
    .book-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-main-image {
        max-width: 300px;
    }
    
    .book-title {
        font-size: 1.75rem !important;
    }
    
    .book-author {
        font-size: 1rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .book-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .book-meta-item {
        padding: 0.75rem;
    }
    
    .book-meta-label {
        font-size: 0.8rem;
    }
    
    .book-meta-value {
        font-size: 0.9rem;
    }
    
    .book-description {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-buy,
    .btn-sell {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .seller-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .seller-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .seller-stat-value {
        font-size: 1.25rem;
    }
    
    .seller-stat-label {
        font-size: 0.8rem;
    }
} 

/* Condition info styling */
.condition-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.condition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151;
}

.info-btn {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.1);
}

.condition-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.condition-tier {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #2563eb;
}

.condition-tier:nth-child(1) {
    border-left-color: #059669;
}

.condition-tier:nth-child(2) {
    border-left-color: #2563eb;
}

.condition-tier:nth-child(3) {
    border-left-color: #f59e0b;
}

/* Tier selection styling */
.condition-tier {
    cursor: pointer;
    transition: all 0.3s ease;
}

.condition-tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.condition-tier.selected {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.condition-tier.selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    pointer-events: none;
}

.condition-tier.unselected {
    transform: scale(0.98);
    opacity: 0.7;
}

.tier-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.tier-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.price-highlight {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.price-highlight.excellent {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.price-highlight.good {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.price-highlight.acceptable {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.price-highlight strong {
    font-size: 1.1rem;
    color: #fbbf24;
}

.stock-info {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
}

/* Form step styling */
.form-step {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-step h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.form-step:first-child {
    margin-top: 0;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Ensure minimum touch target size */
    .filter-select,
    .sort-select,
    .search-box .search-btn,
    .btn-buy,
    .btn-sell,
    .book-contact {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    /* Improve touch feedback */
    .book-card:active {
        transform: scale(0.98);
    }
    
    .btn-buy:active,
    .btn-sell:active {
        transform: scale(0.95);
    }
    
    /* Better spacing for touch */
    .filters {
        gap: 1rem;
    }
    
    .book-details {
        gap: 0.75rem;
    }
    
    .book-meta {
        gap: 0.75rem;
    }
    
    .book-availability {
        gap: 0.75rem;
    }
    
    /* Improve dropdown usability */
    .filter-select,
    .sort-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1em;
        padding-right: 2.5rem;
    }
} 

/* Book Details Shared Layout (used by general, buy, and sell pages) */
.book-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 6rem; /* space for fixed navbar */
}

.book-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.book-image-section { text-align: center; }

.book-main-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.book-thumbnails { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.book-thumbnail { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s ease; }
.book-thumbnail:hover, .book-thumbnail.active { border-color: #2563eb; }

.book-info-section { display: flex; flex-direction: column; gap: 1.5rem; }

.book-details-container .book-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.book-details-container .book-author { font-size: 1.125rem; color: #6b7280; margin: 0; }

.book-details-container .book-price-section { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.book-details-container .current-price { font-size: 2rem; font-weight: 700; color: #059669; }
.book-details-container .original-price { font-size: 1.125rem; color: #9ca3af; text-decoration: line-through; }
.book-details-container .price-savings { background: #dcfce7; color: #166534; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }

.book-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.book-meta-item { background: #f9fafb; padding: 1rem; border-radius: 8px; border-left: 4px solid #2563eb; }
.book-meta-label { font-size: 0.875rem; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.book-meta-value { font-size: 1rem; color: #1f2937; font-weight: 600; margin-top: 0.25rem; }

.book-description { background: #f9fafb; padding: 1.5rem; border-radius: 12px; line-height: 1.6; color: #374151; }

.action-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.btn-buy { background: linear-gradient(135deg, #059669, #047857); color: white; border: none; padding: 1rem 2rem; border-radius: 8px; font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3); }
.btn-sell { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border: none; padding: 1rem 2rem; border-radius: 8px; font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-sell:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3); }

/* Tablet and mobile adjustments for book details */
@media (max-width: 1024px) {
    .book-details-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Authentication Pages Styles */
.auth-section {
    min-height: 100vh;
    padding-top: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-input-group select {
    max-width: 120px;
    flex-shrink: 0;
}

.phone-input-group input {
    flex: 1;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #6b7280;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

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

.auth-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #6b7280;
    line-height: 1.5;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #059669, #047857);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2rem;
    color: white;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.success-message p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.email-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.email-tips p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #1e40af;
}

.email-tips i {
    margin-right: 0.5rem;
}

/* Dashboard Styles */
.dashboard-section {
    min-height: 100vh;
    background: #f8fafc;
    padding: 2rem 0;
}

/* Ensure sufficient spacing below fixed navbar on dashboard */
.dashboard-section.page-offset {
    padding-top: 8rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.welcome-message h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: #6b7280;
    font-size: 1.1rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
}

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

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: #2563eb;
}

.edit-link,
.view-all-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.edit-link:hover,
.view-all-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Profile Card */
.profile-card {
    grid-column: span 2;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 2rem;
    color: white;
}

.profile-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.profile-details p {
    color: #6b7280;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background: #f3f4f6;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: #2563eb;
    font-size: 0.9rem;
}

.activity-content p {
    margin: 0;
    font-weight: 500;
    color: #1f2937;
}

.activity-time {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Listings List */
.listings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.listing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.listing-item:hover {
    background: #f3f4f6;
}

.listing-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.listing-info p {
    margin: 0;
    color: #059669;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Stats Grid */
.stats-card {
    grid-column: span 2;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.stat-card:hover {
    background: #f3f4f6;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-content .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-content .stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.empty-state .text-muted {
    font-size: 0.9rem;
    opacity: 0.7;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item i {
    color: #6b7280;
    width: 16px;
}

.user-dropdown hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-card {
        grid-column: span 1;
    }
    
    .stats-card {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .quick-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    /* Auth section mobile adjustments */
    .auth-section {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 1rem;
    }

    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .auth-info {
        order: -1;
    }
}

@media (max-width: 480px) {
    .dashboard-section {
        padding: 1rem 0;
    }
    
    .dashboard-header {
        padding: 1rem;
    }
    
    .welcome-message h1 {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .phone-input-group select {
        max-width: none;
    }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 1rem;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #374151;
}

.form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 1% auto;
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}