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

:root {
    --primary: #073B3A;
    --primary-light: #0D5957;
    --accent: #2EC4B6;
    --accent-dark: #25A99D;
    --bg-light: #EFF3F5;
    --bg-soft: #F8FAFB;
    --text-dark: #1F2A2A;
    --text-muted: #6B7B7B;
    --border: #E1E7E9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

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

/* HEADER */
header {
    background: var(--primary);
    color: #fff;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

.has-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-trigger .caret {
    font-size: 0.7rem;
    transition: transform 0.18s;
}

.has-dropdown.open .dropdown-trigger .caret,
.has-dropdown:hover .dropdown-trigger .caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(7, 59, 58, 0.18);
    border: 1px solid var(--border);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 150;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background 0.12s, color 0.12s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}

.dropdown-menu a:first-child {
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    padding-bottom: 12px;
    font-weight: 600;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.2s;
    cursor: pointer;
}

/* Header sepet ikonu (auth.js her sayfada inject eder) */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px;
}
.cart-link svg {
    stroke: #fff;
    transition: stroke 0.2s, transform 0.2s;
}
.cart-link:hover svg { stroke: var(--accent); transform: scale(1.08); }
.cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #ddd;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.cart-count.has-items {
    background: var(--accent);
    color: #fff;
}

/* Sepet sayfasi */
.cart-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.cart-row {
    display: grid;
    grid-template-columns: 80px 1fr 140px 100px 30px;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
}
.cart-row img {
    width: 80px; height: 110px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 4px;
}
.cart-row .meta h3 { margin: 0 0 4px; font-size: 16px; }
.cart-row .meta p  { margin: 0; color: var(--text-light); font-size: 14px; }
.cart-row select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.cart-row .line-total { font-weight: 700; color: var(--primary); text-align: right; }
.cart-row .remove {
    background: none; border: none; cursor: pointer;
    color: var(--text-light); font-size: 20px; line-height: 1;
}
.cart-row .remove:hover { color: #c0392b; }
.cart-summary {
    margin-top: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.cart-summary .total { font-size: 22px; font-weight: 700; color: var(--primary); }
.cart-empty {
    margin-top: 30px;
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 6px;
}
.cart-empty p { color: var(--text-light); margin-bottom: 16px; }

.user-menu-trigger:hover {
    background: var(--accent-dark);
}

.user-menu .caret {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.user-menu.open .caret {
    transform: rotate(180deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(7, 59, 58, 0.15);
    border: 1px solid var(--border);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 100;
}

.user-menu.open .user-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-menu-header strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.user-menu-header span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.user-menu-item {
    display: block;
    padding: 11px 18px;
    color: var(--text-dark) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.user-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}

.user-menu-logout {
    width: calc(100% - 16px);
    margin: 6px 8px 4px;
    padding: 10px 14px;
    background: var(--bg-light);
    color: #c44848;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.15s;
}

.user-menu-logout:hover {
    background: #ffe1e1;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    overflow: visible;
    width: 260px;
    position: relative;
}

.search-box input {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.search-box button {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(7, 59, 58, 0.18);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    max-height: 320px;
    overflow-y: auto;
}

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

.search-result {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: var(--bg-light);
}

.search-result strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.search-result span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.search-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
}

.search-box input {
    border: none;
    padding: 10px 14px;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

.search-box button {
    background: var(--accent);
    border: none;
    padding: 10px 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: var(--accent-dark);
}

/* HERO */
.hero {
    background: var(--bg-light);
    padding: 80px 0 60px;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Hero slider */
.hero-slider {
    position: relative;
    min-height: 360px;
}

.hero-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

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

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(7, 59, 58, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot:hover {
    background: rgba(7, 59, 58, 0.5);
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.hero-tagline {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-desc {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 460px;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.carousel-controls {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: var(--accent);
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: var(--accent-dark);
    color: #fff !important;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* CATEGORIES */
.categories {
    padding: 80px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 16px 8px;
    border-radius: 10px;
    transition: transform 0.18s, background 0.18s;
}

.category-item:hover {
    transform: translateY(-4px);
    background: var(--bg-soft);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    transition: background 0.18s, color 0.18s;
}

.category-item:hover .category-icon {
    background: var(--accent);
    color: #fff;
}

.category-item h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.category-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 240px;
    margin: 0 auto;
}

/* ABOUT */
.about {
    background: var(--bg-light);
    padding: 80px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-illustration {
    display: flex;
    justify-content: center;
}

.about-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.about-text h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* TESTIMONIALS */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--primary);
    color: #fff;
    padding: 24px 24px 50px;
    border-radius: 8px;
    position: relative;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d4dadb;
}

.testimonial-card .quote-mark {
    position: absolute;
    bottom: 12px;
    left: 18px;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    flex-shrink: 0;
}

.author-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.author-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.testimonial-card.spaced {
    margin-top: 30px;
}

/* BOOK GRID */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 30px 0;
}

.book-card {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 1px solid var(--border);
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(7, 59, 58, 0.12);
    border-color: var(--accent);
}

.book-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 4px;
    margin-bottom: 8px;
    display: block;
}

.book-card h3 {
    color: var(--text-dark);
    font-size: 1.05rem;
}

.book-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.category {
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 12px;
    align-self: flex-start;
}

.price {
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

.status {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    align-self: flex-start;
    font-weight: 500;
}

.status.available {
    background: #d4f4ef;
    color: var(--primary);
}

.status.rented {
    background: #ffd6d6;
    color: #8b1a26;
}

.status.returned {
    background: #d1e7f5;
    color: #1a5680;
}

/* PAGE HEADER */
.page-header {
    background: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--text-dark);
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
}

.content {
    padding: 60px 24px;
}

.content h2 {
    color: var(--text-dark);
    margin: 24px 0 12px;
    font-size: 1.5rem;
}

.content p,
.content li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.content ul {
    padding-left: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* FORMS */
form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

form label {
    font-weight: 500;
    margin-top: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

form input,
form textarea,
form select {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-dark);
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--accent);
}

form button {
    margin-top: 12px;
    align-self: flex-start;
}

/* AUTH PAGES */
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: var(--bg-light);
}

.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(7, 59, 58, 0.08);
    width: 100%;
    max-width: 440px;
}

.auth-card h1 {
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 0.9rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    color: var(--text-muted);
    margin: 8px 0;
}

.checkbox-row a {
    color: var(--accent);
}

.forgot {
    color: var(--accent);
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* BOOK DETAIL */
.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.book-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 20px 0;
}

.book-detail-cover {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(7, 59, 58, 0.15);
    display: block;
}

.book-detail-info h1 {
    color: var(--text-dark);
    margin: 10px 0;
    font-size: 2rem;
}

.book-detail-info .author {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.meta-row {
    display: flex;
    gap: 12px;
    margin: 12px 0 20px;
    align-items: center;
}

.stock {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.book-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.book-meta strong {
    color: var(--primary);
}

.price-box {
    background: #fff;
    border: 2px solid var(--bg-light);
    padding: 24px;
    border-radius: 8px;
}

.price-big {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.price-big span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.related {
    margin-top: 60px;
}

.related h2 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* PROFILE */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.profile-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(7, 59, 58, 0.05);
    border: 1px solid var(--border);
}

.profile-card h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.profile-row:last-of-type {
    border-bottom: none;
}

.profile-label {
    color: var(--text-muted);
}

.profile-value {
    color: var(--text-dark);
    font-weight: 500;
}

.rental-list {
    list-style: none;
    padding: 0;
}

.rental-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}

.rental-list li:last-child {
    border-bottom: none;
}

.rental-list span {
    color: var(--accent);
    font-size: 0.9rem;
}

/* RENTAL CARDS */
.rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin: 20px 0 30px;
}

.rental-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(7, 59, 58, 0.04);
}

.rental-cover {
    width: 130px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 6px;
}

.rental-info h3 {
    color: var(--text-dark);
    margin-bottom: 4px;
}

.rental-author {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.rental-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.rental-dates strong {
    color: var(--text-dark);
    font-weight: 600;
}

.rental-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.rental-actions .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ADMIN */
body.admin {
    background: #f4f6f7;
}

.admin-header {
    background: var(--primary);
}

.admin-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 700;
    vertical-align: middle;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 24px 0;
}

.admin-sidebar ul {
    list-style: none;
    display: block;
}

.admin-sidebar li {
    margin: 2px 0;
}

.admin-sidebar a {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.admin-sidebar a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.admin-sidebar a.active {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--accent);
    font-weight: 600;
}

.admin-main {
    padding: 32px;
    overflow-x: auto;
}

.admin-main h1 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.admin-main section {
    margin-bottom: 40px;
}

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

.section-header h2 {
    color: var(--primary);
    font-size: 1.3rem;
}

.section-header .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
}

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

.stat-card {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.admin-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-soft);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.link-edit {
    color: var(--accent-dark);
    text-decoration: none;
    margin-right: 12px;
    font-size: 0.88rem;
    font-weight: 500;
}

.link-delete {
    color: #c44848;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}

.link-edit:hover,
.link-delete:hover {
    text-decoration: underline;
}

.empty-row {
    text-align: center !important;
    color: var(--text-muted);
    padding: 28px !important;
    font-style: italic;
}

.title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cover-thumb {
    width: 32px;
    height: 44px;
    object-fit: cover;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    flex-shrink: 0;
    display: block;
}

.cover-thumb-empty {
    border: 1px dashed var(--border);
    background: var(--bg-soft);
}

/* MODAL (yeni kitap ekleme/duzenleme) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 59, 58, 0.5);
}

.modal-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 92%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.modal-head h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-form {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 500;
}

.modal-form input,
.modal-form select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-dark);
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-soft);
    color: var(--text-dark);
}

/* FOOTER */
footer {
    background: var(--primary);
    color: #d4dadb;
    padding: 30px 0;
    text-align: center;
    margin-top: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-inner,
    .hero-slide,
    .about-inner,
    .contact-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 540px;
    }

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

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

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

    .book-detail {
        grid-template-columns: 1fr;
    }

    .book-detail-cover {
        max-width: 280px;
        margin: 0 auto;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        gap: 14px;
    }

    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box {
        width: 100%;
    }

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