:root {
    --primary-color: #f59e0b;
    --bg-body-1: #1b1f2a;
    --bg-body-2: #0d1016;
    --header-bg: rgba(11, 14, 20, 0.95);
    --nav-bg: rgba(15, 18, 24, 0.9);
    --nav-hover-bg: rgba(245, 158, 11, 0.1);
    --player-bg-1: #f4f6fa;
    --player-bg-2: #e8edf4;
    --player-accent: #f97316;
    --play-btn-bg-1: #1f365a;
    --play-btn-bg-2: #0a1933;
    --play-btn-color: #ffffff;
    
    /* Fallback values if header.php vars are not loaded yet */
    --font-main: 'Inter', system-ui, sans-serif;
    --font-headings: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(12px);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Poglavlja */
    --chapter-inactive-bg: #1e293b; /* Svetlija teget boja koja sprečava efekat pure-black na AMOLED/Dark mode */
    --chapter-inactive-color: #cbd5e1;
    --chapter-active-bg: #f59e0b;
    --chapter-active-color: #0d1016;
}

* {
    box-sizing: border-box;
}

    body {
    margin: 0;
    font-family: var(--font-main);
    background: radial-gradient(circle at 50% 0%, var(--bg-body-1) 0%, var(--bg-body-2) 70%);
    color: #e6e8ee;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-wrap h1 {
    font-family: var(--font-headings);
    font-weight: 700;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: var(--logo-size);
    height: var(--logo-size);
    border-radius: 50%;
    object-fit: contain;
    border: var(--logo-border-width) solid var(--logo-border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    background: rgba(0,0,0,0.2); /* Slight background for transparent logos */
    padding: 2px;
}


.brand-wrap:hover .brand-logo {
    transform: rotate(-5deg) scale(1.05);
}

.site-header h1 {
    margin: 0;
    font-family: var(--title-font);
    font-size: var(--title-size);
    letter-spacing: -0.5px;
    color: var(--title-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.tagline {
    margin: 0;
    font-family: var(--tagline-font);
    color: var(--tagline-color);
    font-size: var(--tagline-size);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    padding: 10px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.main-nav a:hover {
    background: var(--nav-hover-bg);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.main-nav a.active, 
.main-nav .dropdown-trigger.active {
    background: var(--primary-color) !important;
    color: #0d1016 !important;
    font-weight: 700;
}

.nav-auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #f59e0b;
    font-size: 14px;
    font-weight: 600;
}

.status-points {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-user-panel {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px 4px 4px 12px;
    gap: 12px;
    margin-left: 10px;
    transition: var(--transition-smooth);
}
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e2e8f0;
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
}

.nav-logout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444 !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-logout-btn:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

.nav-login-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #0d1016 !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.nav-login-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
    filter: brightness(1.1);
}

/* Dropdown Meni */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: #111827;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 1050;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    animation: slideDown 0.3s ease;
}

/* Invisible bridge to prevent closing on hover-gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px; /* Bridge the 10px gap */
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: #e2e8f0;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-radius: 10px;
    border-bottom: none;
    margin-bottom: 2px;
}

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

.dropdown-trigger {
    color: #e8ebf4;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
}

.dropdown-trigger:hover {
    background: var(--nav-hover-bg);
    color: var(--primary-color);
}

.dropdown-trigger::after {
    content: '▾';
    margin-left: 8px;
    font-size: 12px;
}

/* Burger dugme */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* ========================
   RESPONSIVENESS
======================== */
@media (max-width: 768px) {
    /* Grid layout se kontrolise theme_layout.css */

    .search-filter-bar {
        flex-direction: column;
    }
    
    .search-filter-bar input[type="text"], 
    .search-filter-bar select {
        width: 100%;
    }

    .player-header {
        flex-direction: column;
    }

    .book-detail-cover {
        width: 100%;
        height: auto;
        max-height: 320px;
    }

    .stat-votes-grid {
        grid-template-columns: 1fr;
    }

    /* Burger meni logika */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111622;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        border-bottom: 2px solid var(--primary-color);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .main-nav.active .nav-links {
        display: flex;
    }

    .main-nav.active .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
    .main-nav.active .menu-toggle span:nth-child(2) { opacity: 0; }
    .main-nav.active .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

    .main-nav a, .main-nav .nav-user {
        width: 100%;
        padding: 12px 18px;
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
    }
}

.main-nav a:hover {
    background: #232a3a;
    color: #ffb648;
}

.main-nav .logout {
    margin-left: auto;
    color: #ff9a9a;
}

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

.narrow {
    max-width: 700px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
}

.card h2,
.card h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.grid-books {
    display: grid;
    /* Glavna definicija: koristi varijablu, default je 3 */
    grid-template-columns: repeat(var(--books-per-row, 3), minmax(0, 1fr));
    gap: 14px;
}

.book-card {
    position: relative;
    min-height: var(--book-card-height, 420px);
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.book-card-wrap {
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    perspective: 1000px;
}

.book-card-wrap:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
}

.book-card-wrap:hover .book-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border-color: rgba(245, 158, 11, 0.3);
}

.book-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.book-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    z-index: 2;
}

.book-overlay h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #fff;
}

.book-overlay p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.book-overlay p.book-short-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: var(--transition-smooth);
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.book-card:hover .book-overlay p.book-short-text {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}

.form-grid {
    display: grid;
    gap: 10px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #c8d0df;
}

input,
textarea,
select,
button {
    font: inherit;
    padding: 9px;
    border: 1px solid #2c3446;
    border-radius: 8px;
    background: #111622;
    color: #e8ebf4;
}

button {
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 600;
}

button:hover {
    filter: brightness(1.08);
}

.search-row {
    display: flex;
    gap: 8px;
}

.search-row input {
    flex: 1;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table th,
.table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

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

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.error {
    color: #ff8b8b;
    font-weight: 600;
}

.ok {
    color: #7ddc9e;
    font-weight: 600;
}

.site-footer {
    padding: 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}


.report-wrap {
    display: grid;
    gap: 16px;
}

#loginReportChart {
    width: 100%;
    border: 1px solid #2c3446;
    border-radius: 10px;
    background: #0f1218;
}

.book-detail-cover {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #2a3347;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

/* Admin dashboard helpers */
.admin-top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-action-link {
    display: inline-block;
    text-decoration: none;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #d5dbe7;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}

.admin-action-link.primary {
    background: linear-gradient(180deg, #ff9f1a, #ea8a07);
    color: #fff;
    border-color: transparent;
}

.btn-clear {
    display: inline-block;
    text-decoration: none;
    color: #e8ebf4;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #2c3446;
    background: #111622;
    font-weight: 700;
}

.player-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.player-book-meta h2 {
    margin: 0 0 8px;
}

.player-book-meta p {
    margin: 7px 0;
}

.player-shell {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--player-bg-1), var(--player-bg-2));
    border: 1px solid #d8dee8;
    color: #111827;
}

.book-player-hidden {
    display: none;
}

.player-now {
    text-align: center;
}

.player-now h3 {
    margin: 4px 0 14px;
    color: #0f172a;
}

.player-chapter {
    margin: 0;
    font-size: 12px;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.player-seek-wrap {
    margin: 8px 0 16px;
    position: relative; 
}

.seek-bar {
    width: 100%;
    accent-color: var(--player-accent);
    height: 8px;
    cursor: pointer;
}

.note-markers-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    pointer-events: none;
    z-index: 1; /* Iznad pozadine, ali ispod thumb-a ako je moguće */
}

.note-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
    border-radius: 1px;
}

.player-times {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #475467;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 14px 0;
}

.icon-btn {
    min-width: 58px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d5dbe7;
    color: #0f172a;
    padding: 10px 12px;
}

.play-btn {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--play-btn-bg-1), var(--play-btn-bg-2));
    color: var(--play-btn-color);
    border: none;
    font-size: 28px;
    display: grid;
    place-items: center;
}

.player-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.player-actions button {
    background: #fff;
    color: #0f172a;
    border: 1px solid #d5dbe7;
}

.player-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.player-meta {
    margin: 14px 0 0;
    color: #475467;
    font-size: 13px;
    text-align: center;
}

.muted {
    color: #9aa3b6;
    font-size: 14px;
}

.muted.small {
    font-size: 13px;
    margin-top: 8px;
}

.book-meta-small {
    font-size: 12px;
    color: #c8d0df;
    margin-top: 6px;
}

.audio-dropzone {
    border: 1px dashed #747775;
    border-radius: 12px;
    padding: 14px;
    background: rgba(17, 22, 32, 0.55);
    text-align: center;
    color: #c8d0df;
    margin-top: 8px;
    user-select: none;
}

.audio-drop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.stat-hero {
    border-left: 4px solid var(--primary-color);
}

.stat-lead {
    font-size: 1.25rem;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.stat-minutes {
    color: #7ddc9e;
    font-weight: 700;
}

/* ========================
   SEARCH + FILTER BAR
======================== */
.search-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.search-filter-bar input[type="text"] {
    flex: 1;
    min-width: 160px;
}

.search-filter-bar select {
    min-width: 160px;
}

/* ========================
   GRID BOOKS - dinamicki broj kolona
======================== */
/* Uklonjeno jer je gore globalno definisano sa varijablom */

/* fullscreen mode: container max-width 100% */
.fullscreen-books {
    max-width: 100% !important;
    padding: 0 8px;
    overflow-x: hidden;
}

.fullscreen-books .horizontal-scroll-wrapper {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

/* ========================
   BOOK CARD WRAP (ikonica + vote bar)
======================== */
.book-card-wrap {
    display: flex;
    flex-direction: column;
    position: relative;
}

.book-card-wrap .book-card-link {
    flex: 1;
}

/* ========================
   VOTE BAR (like / dislike)
======================== */
/* ========================
   VOTE BAR - REDIZAJN 2026
======================== */
.vote-bar {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 10px;
    justify-content: center;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    color: #cbd5e1;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vote-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.vote-btn:active {
    transform: translateY(0) scale(0.95);
}

.vote-btn.like-btn.active {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: #22c55e !important;
    color: #4ade80 !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.vote-btn.like-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.5);
}

.vote-btn.dislike-btn.active {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.vote-btn.dislike-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.vote-bar-readonly .vote-btn {
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
}

.like-count, .dislike-count {
    font-variant-numeric: tabular-nums;
    min-width: 15px;
    text-align: center;
}

.vote-icon {
    font-size: 20px;
    line-height: 1;
}

/* ========================
   STATISTIKA - LIKE/DISLIKE HERO
======================== */
.stat-votes-hero {
    border-left: 4px solid #3b82f6;
}

.stat-votes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.stat-vote-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(20, 26, 38, 0.8);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #2c3446;
}

.stat-like-box {
    border-color: rgba(34, 197, 94, 0.35);
}

.stat-dislike-box {
    border-color: rgba(239, 68, 68, 0.35);
}

.stat-vote-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.stat-vote-label {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9aa3b6;
}

.stat-vote-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d97706 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(245, 158, 11, 0.3);
    filter: brightness(1.1);
}

/* ========================
   SORTABLE TABLE
======================== */
.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable-table th.sortable:hover {
    background: #1e2535;
    color: #f59e0b;
}

.sort-arrow {
    color: var(--primary-color);
    font-size: 12px;
}

/* Sve responsivne izmene su sada u bloku iznad (768px) radi preglednosti */


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal {
    position: relative;
    width: min(480px, 100%);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #e2e8f0;
    overflow: hidden;
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    border-bottom: 1px solid #232938;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    position: absolute;
    top: 5px; right: 5px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 0;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
    transition: all 0.2s ease;
}

.modal-close:hover { 
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.guest-modal-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.modal-alert {
    margin: 12px 18px 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.modal-alert-error {
    background: rgba(255, 139, 139, 0.12);
    color: #ff8b8b;
    border: 1px solid rgba(255, 139, 139, 0.25);
}

.modal-alert-success {
    background: rgba(125, 220, 158, 0.12);
    color: #7ddc9e;
    border: 1px solid rgba(125, 220, 158, 0.25);
}

.modal-alert-info {
    background: rgba(245, 158, 11, 0.12);
    color: #ffb648;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.modal-tabs {
    display: flex;
    gap: 10px;
    padding: 14px 18px 0;
}

.modal-tabs .tab {
    background: transparent;
    border: 1px solid #2c3446;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.modal-tabs .tab.active {
    border-color: #f59e0b;
    color: #ffb648;
}

.modal-body {
    padding: 14px 18px 18px;
}

.modal-body .tab-panel label {
    margin-bottom: 12px;
}

.modal-hint {
    margin-top: 10px;
    font-size: 13px;
    color: #abb3c7;
}

/* ========================
   SISTEM KOMENTARA
======================== */
.comments-section {
    margin-top: 24px;
}

.comment-count-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}

.comment-form {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 12px;
    background: rgba(17, 22, 32, 0.7);
    border: 1px solid #2c3446;
    border-radius: 10px;
    line-height: 1.5;
    color: #fff;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-item {
    padding: 16px;
    margin-bottom: 12px;
    background-color: var(--comment-bg, #1c222e);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.comment-user {
    color: #fff;
    font-size: 14px;
}

.comment-time {
    margin-left: auto;
    font-size: 12px;
    color: #9aa3b6;
}

.comment-text {
    margin: 0;
    line-height: 1.6;
    color: #abb3c7;
    word-break: break-word;
}

.comment-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    color: #ff8b8b;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.comment-delete-btn:hover {
    opacity: 1;
}

.btn-load-more {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-load-more:hover {
    background: var(--nav-hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid #2c3446;
    border-radius: 6px;
    color: #abb3c7;
    text-decoration: none;
}

.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: #f59e0b;
}
/* Premium oznake */
.premium-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge {
    background-color: #f59e0b;
    color: #000;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #4b5563;
    color: #fff;
}

.age-restriction-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4757;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    text-transform: uppercase;
}

/* ========================
   PRICING & REWARDS
   ======================== */
.pricing-container {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-headings);
}
.pricing-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.pricing-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    border-color: #f59e0b;
}
.pricing-card.featured {
    border-color: #f59e0b;
    background: rgba(30, 41, 59, 0.9);
    scale: 1.05;
}
.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.package-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}
.package-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #f59e0b;
}
.package-currency {
    font-size: 1rem;
    color: #94a3b8;
    vertical-align: middle;
}
.package-duration {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.9rem;
}
.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}
.package-features li {
    margin-bottom: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.package-features li::before {
    content: "✓";
    color: #f59e0b;
    font-weight: bold;
}
.btn-buy {
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}
.btn-buy:hover {
    background: #fbbf24;
}
.payment-methods {
    margin-top: 50px;
    opacity: 0.6;
}
.payment-methods img {
    height: 30px;
    margin: 0 10px;
    filter: grayscale(1);
    transition: filter 0.3s;
}
.payment-methods img:hover {
    filter: grayscale(0);
}

/* ========================
   AUDIO PLAYER & BOOK DETAIL
   ======================== */
.player-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.book-detail-cover {
    width: 240px;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    flex-shrink: 0;
}

.player-book-meta {
    flex: 1;
}

.player-book-meta h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.player-shell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    margin-top: 20px;
}

.player-now {
    text-align: center;
    margin-bottom: 24px;
}

.player-chapter {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.player-now h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

.player-seek-wrap {
    margin: 30px 0;
}

.seek-bar {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.player-times {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: monospace;
    font-size: 13px;
    color: #94a3b8;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.chapters-wrapper {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.chapters-wrapper h4 {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.chapters-modal-body {
    padding: 10px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 15px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.chapter-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.chap-num {
    font-weight: 800;
    color: var(--primary-color);
    min-width: 24px;
    font-family: var(--font-headings);
}

.chap-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f8fafc;
}

.chap-time {
    font-family: monospace;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Chapters Dropdown Modal */
.chapters-dropdown-modal {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    z-index: 1000;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chapters-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ch.ad-pre-roll-overlay .ad-info-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ad-premium-note {
    margin-top: 20px;
    font-size: 1rem;
    color: #ffd8a8;
    background: rgba(245, 158, 11, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    max-width: 80%;
    text-align: center;
}

/* GUEST MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content.guest-modal {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.guest-modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-content.guest-modal h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content.guest-modal p {
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.6;
}

.guest-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-reset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* .modal-close unified with main modal-close */

.chapters-modal-header strong {
    font-size: 1rem;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#closeChaptersBtn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

#closeChaptersBtn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.chapters-modal-body::-webkit-scrollbar {
    width: 6px;
}

.chapters-modal-body::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .chapters-dropdown-modal {
        width: 300px;
        max-width: 85vw;
        left: 20%; 
        transform: translateX(-50%);
    }
}


.premium-lock-container {
    padding: 60px 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
}

.premium-lock-container h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.premium-lock-container p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
}

.lock-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--primary-color));
}

@media (max-width: 768px) {
    .player-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .book-detail-cover {
        width: 180px;
        height: 260px;
    }
    .player-controls {
        gap: 15px;
    }
    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    .player-extra-controls {
        gap: 10px;
        flex-wrap: wrap;
    }
    .vote-bar {
        gap: 8px;
    }
    .vote-btn {
        padding: 8px 14px;
        font-size: 14px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .player-shell {
        padding: 15px;
    }
    .player-controls {
        gap: 10px;
    }
    .icon-btn {
        min-width: 45px;
        padding: 8px;
    }
    .timer-selector, .speed-selector {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 60px;
    }
    .extra-control-label {
        font-size: 0.65rem;
    }
    .vote-bar {
        gap: 5px;
    }
    .vote-btn {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 10px;
    }
    .vote-icon {
        font-size: 16px;
    }

    /* Navigacija mobilni */
    .nav-auth-section {
        gap: 6px;
    }
    .nav-user-status {
        padding-right: 8px;
        margin-right: 0;
        gap: 5px;
    }
    .points-label, .status-text {
        display: none; /* Sakrivamo tekst na mobilnom, ostavljamo ikone/vrednosti */
    }
    .nav-user-panel {
        gap: 8px;
        padding: 2px 2px 2px 8px;
    }
    .user-name {
        display: none; /* Sakrivamo ime korisnika na veoma malim ekranima ako treba, ili ga ostavljamo */
    }
}

/* Extra Player Controls (Speed, Timer) */
.player-extra-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.extra-control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative; /* Added for absolute children positioning */
}


.extra-control-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8; /* Visible gray */
    font-weight: 600;
}

.speed-selector, .timer-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; /* White text for buttons */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 80px;
    text-align: center;
}

.speed-selector:hover, .timer-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.timer-selector.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.timer-active {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
}

.timer-display {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Notes Modal Specifics */
.notes-modal {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 300px;
    max-height: 500px;
    flex-direction: column;
    margin-bottom: 15px;
}

.note-item {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.note-time {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 6px;
}

.note-content {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.note-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.note-item:hover .note-delete-btn {
    opacity: 1;
}

.note-delete-btn:hover {
    color: #ef4444;
}

.notes-modal-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.notes-modal-footer textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    resize: none;
    margin-bottom: 10px;
    min-height: 60px;
}

.btn-primary-small {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.btn-primary-small:hover {
    transform: translateY(-1px);
}

/* ========================
   ADMIN DASHBOARD
   ======================== */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.quick-action-card span {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-action-card p {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.admin-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Ad Pre-roll & AdSense */
.ad-pre-roll-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 14, 20, 0.98);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

.ad-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

.ad-icon-pulsar {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: ad-pulse 2s infinite ease-in-out;
}

@keyframes ad-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.ad-info-text {
    color: #fff;
    font-family: var(--font-headings);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    font-weight: 800;
    text-transform: uppercase;
}

.ad-subtext {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ad-premium-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.85rem;
    color: #fbd38d;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.8s ease-out;
}

.ad-premium-note .star-icon {
    color: var(--primary-color);
}

.ad-action-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-skip-ad {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: not-allowed;
    opacity: 0.8;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    min-width: 200px;
}

.btn-skip-ad.active {
    background: var(--primary-color);
    color: #0d1016;
    border-color: var(--primary-color);
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.logout-all-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.logout-all-link:hover {
    color: var(--primary-color);
}


.adsense-container {
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================
   HOME PAGE SECTIONS
   ======================== */
.section-container {
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    padding-left: 5px;
    border-left: 4px solid var(--primary-color);
}

.horizontal-scroll-wrapper {
    position: relative;
    margin: 0 -16px;
    padding: 10px 16px 30px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

/* Hide default scrollbar */
.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.horizontal-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
}

.horizontal-scroll .book-card-wrap {
    flex: 0 0 220px; /* Fixed width for better scroll snap */
    scroll-snap-align: start;
}

.horizontal-scroll .book-card {
    height: 320px; /* Consistent height for sections */
}

/* Sticky Category Nav */
.category-nav {
    position: sticky;
    top: var(--header-height);
    background: rgba(13, 16, 22, 0.85);
    backdrop-filter: blur(15px);
    z-index: 90;
    padding: 15px 0;
    margin: -20px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

.category-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-link {
    padding: 8px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.category-link:hover, .category-link.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================
   ADMIN SUB-PAGES UNIFICATION
   ======================== */
.admin-header-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.admin-actions-row {
    display: flex;
    gap: 10px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

/* Modern Forms */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.08);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Custom Dropzone */
.custom-dropzone {
    background: rgba(255,255,255,0.02);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.custom-dropzone:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-color);
}

.drop-icon {
    font-size: 2rem;
    opacity: 0.5;
}

/* Chapters Admin */
.chapters-admin-section {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.chapters-grid-admin {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.chapter-admin-row {
    display: grid;
    grid-template-columns: 1fr 120px 40px;
    gap: 10px;
    align-items: center;
}

.chapter-admin-row input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* Premium Toggle Card */
.premium-toggle-card {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.toggle-control input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
}

.toggle-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Table Enhancements */
.card-header-with-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-search-form {
    display: flex;
    gap: 8px;
}

.admin-search-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    width: 200px;
}

.btn-search {
    background: var(--primary-color);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-reset {
    padding: 8px 15px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.modern-table th {
    padding: 12px 15px;
    text-align: left;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.modern-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.002);
}

.modern-table td {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.modern-table td:first-child {
    border-left: 1px solid rgba(255,255,255,0.03);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.modern-table td:last-child {
    border-right: 1px solid rgba(255,255,255,0.03);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.genre-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.free-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.edit-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    cursor: pointer;
}

.edit-btn:hover { background: #3b82f6; color: #fff; }
.delete-btn:hover { background: #ef4444; color: #fff; }

/* User Admin Specifics */
.user-inline-edit {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.username-input {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 2px 8px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 4px;
    color: #fff;
}

.email-input {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    padding: 2px 8px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 4px;
}

.mini-save {
    background: #6366f1;
    border: none;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    cursor: pointer;
    margin-top: 2px;
    transition: var(--transition-smooth);
}

.mini-save:hover { background: #4f46e5; }

.user-status-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
}

.status-dot.active { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
.status-dot.inactive { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }

.status-label { font-size: 0.8rem; font-weight: 600; }

.premium-expiry-form {
    display: flex;
    gap: 5px;
    align-items: center;
}

.premium-expiry-form input {
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
}

.btn-refresh-expiry {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-refresh-expiry:hover { background: #3b82f6; color: #fff; }

.user-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.unlock-btn { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.unlock-btn:hover { background: #10b981; color: #fff; }

.key-btn { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.key-btn:hover { background: #f59e0b; color: #fff; }

.password-reset-inline {
    display: flex;
    gap: 4px;
}

.password-reset-inline input {
    width: 100px;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
}

.user-inactive {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.lockout-notice {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: bold;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    width: fit-content;
}

/* Modern Pagination */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.page-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.page-dots {
    color: #4b5563;
    font-weight: bold;
}

/* Comment Admin Specifics */
.comment-bubble-admin {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d1d5db;
    max-width: 500px;
}

.user-info-mini, .book-info-mini {
    display: flex;
    flex-direction: column;
}

.username-bold {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.book-title-small {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-primary {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.muted {
    color: #64748b;
}

/* Log Viewer Modern */
.log-viewer-modern {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.log-viewer-header {
    background: #161b22;
    padding: 8px 15px;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.log-info {
    font-size: 0.75rem;
    color: #8b949e;
    font-family: var(--font-mono);
}

.log-content-scroll {
    max-height: 700px;
    overflow-y: auto;
    padding: 10px 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}

.log-row {
    padding: 4px 15px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background 0.2s;
}

.log-row:hover {
    background: rgba(255,255,255,0.03);
}

.log-number {
    color: #484f58;
    min-width: 40px;
    text-align: right;
    user-select: none;
    border-right: 1px solid #30363d;
    padding-right: 15px;
}

.log-text {
    color: #c9d1d9;
    word-break: break-all;
    line-height: 1.4;
}

.log-row-error { background: rgba(239, 68, 68, 0.08); }
.log-row-error .log-text { color: #ff8a8a; font-weight: 600; }

.log-row-warning { background: rgba(245, 158, 11, 0.05); }
.log-row-warning .log-text { color: #facc15; }

.empty-state-logs {
    padding: 40px;
    text-align: center;
    color: #64748b;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.log-selector-inline select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.text-primary { color: var(--primary-color) !important; }

/* Skalabilnost: Unified Card Styles */
.book-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.horizontal-scroll-wrapper {
    position: relative;
    padding: 0 40px;
    margin: 0 -40px;
}

.horizontal-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 40px;
    scrollbar-width: none; /* Firefox */
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.horizontal-scroll .book-card-wrap {
    flex: 0 0 calc((100% / var(--books-per-row-scroll, 4)) - 10.5px);
    min-width: 250px;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    opacity: 0;
    font-size: 24px;
}

.horizontal-scroll-wrapper:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.scroll-arrow.left { left: 20px; }
.scroll-arrow.right { right: 20px; }

.loading-wrap {
    margin-top: 20px;
    margin-bottom: 40px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(245, 158, 11, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Nav Utility CSS moved from nav.php */
.utility-bar {
    display: flex;
    justify-content: flex-end;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 6px 40px;
}
.brand-mobile-flex {
    display: flex;
    align-items: center;
}
.nav-script-toggle {
    display: flex;
    align-items: center;
}
.script-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.script-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.nav-premium-cta {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    animation: pulse-gold 2s infinite;
}
.nav-premium-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
