/* ===== LIRE GRATUIT — Frontend Styles ===== */

:root {
    --lg-primary: #f59e0b;
    --lg-primary-dark: #d97706;
    --lg-secondary: #1e293b;
    --lg-accent: #ef4444;
    --lg-success: #10b981;
    --lg-bg: #fafaf9;
    --lg-card-bg: #ffffff;
    --lg-text: #1e293b;
    --lg-text-light: #64748b;
    --lg-border: #e2e8f0;
    --lg-radius: 12px;
    --lg-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --lg-shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== Container ===== */
.lg-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero Section ===== */
.lg-hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-bottom: 24px; padding: 16px 0;
}
.lg-hero-reader {
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px 0;
}
.lg-hero-reader h1 {
    font-size: 28px; line-height: 1.3; margin: 0 0 14px;
    color: var(--lg-secondary);
}
.lg-hero-highlight {
    background: linear-gradient(135deg, var(--lg-primary), #f97316);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lg-hero-reader p {
    font-size: 15px; line-height: 1.6; color: var(--lg-text-light); margin: 0;
}
.lg-hero-author-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 16px; padding: 28px; color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.lg-hero-author-card h2 {
    font-size: 20px; margin: 0 0 8px; color: #fff;
}
.lg-hero-author-card > p {
    font-size: 14px; margin: 0 0 16px; opacity: 0.85;
}
.lg-hero-channels {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
.lg-hero-channel {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1); border-radius: 8px;
    padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.lg-hero-channel-icon {
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.lg-hero-ch-site { background: var(--lg-primary); color: #fff; }
.lg-hero-ch-fb { background: #1877F2; color: #fff; }
.lg-hero-ch-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.lg-hero-ch-tt { background: #000; color: #fff; }
.lg-hero-ch-li { background: #0A66C2; color: #fff; }
a.lg-hero-channel:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.lg-hero-option-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    background: var(--lg-primary); color: #fff;
    padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
}
.lg-hero-cta {
    display: block; text-align: center;
    background: var(--lg-primary); color: #fff;
    padding: 14px 24px; border-radius: 10px;
    font-weight: 700; font-size: 15px;
    text-decoration: none; transition: all 0.2s;
    margin-bottom: 8px;
}
.lg-hero-cta:hover {
    background: var(--lg-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.lg-hero-small {
    text-align: center; font-size: 12px;
    opacity: 0.6; margin: 0;
}

@media (max-width: 768px) {
    .lg-hero { grid-template-columns: 1fr; }
    .lg-hero-reader h1 { font-size: 22px; }
    .lg-hero-channels { gap: 6px; }
    .lg-hero-channel { padding: 6px 10px; font-size: 12px; }
}

/* ===== Filters Bar ===== */
.lg-filters-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 16px 0; margin-bottom: 8px;
    border-bottom: 1px solid var(--lg-border);
}
.lg-filter-btn {
    padding: 8px 16px; border: 1px solid var(--lg-border);
    border-radius: 20px; background: var(--lg-card-bg);
    cursor: pointer; font-size: 14px; color: var(--lg-text);
    transition: all 0.2s;
}
.lg-filter-btn:hover { border-color: var(--lg-primary); color: var(--lg-primary); }
.lg-filter-active { background: var(--lg-primary); color: #fff; border-color: var(--lg-primary); }

/* ===== Newsletter Bar ===== */
.lg-newsletter-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 20px; margin: 16px 0;
    background: linear-gradient(135deg, #fef3c7, #fff7ed);
    border-radius: var(--lg-radius); border: 1px solid #fde68a;
}
.lg-newsletter-bar span { font-weight: 600; color: var(--lg-secondary); }
.lg-newsletter-inline { display: flex; gap: 8px; }
.lg-newsletter-inline input[type="email"] {
    padding: 8px 14px; border: 1px solid var(--lg-border);
    border-radius: 8px; font-size: 14px; width: 220px;
}
.lg-newsletter-inline button {
    padding: 8px 18px; background: var(--lg-primary); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-weight: 600;
    transition: background 0.2s;
}
.lg-newsletter-inline button:hover { background: var(--lg-primary-dark); }

/* ===== Book Grid ===== */
.lg-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px; padding: 24px 0;
}

/* ===== Book Card ===== */
.lg-book-card {
    background: var(--lg-card-bg);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex; flex-direction: column;
}
.lg-book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lg-shadow-hover);
}

.lg-book-boosted { border: 2px solid var(--lg-primary); }
.lg-book-bestseller { border: 2px solid var(--lg-accent); }

/* Badges */
.lg-badge-coup-coeur, .lg-badge-bestseller {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}
.lg-badge-coup-coeur { background: var(--lg-primary); color: #fff; }
.lg-badge-bestseller { background: var(--lg-accent); color: #fff; }

/* Cover */
.lg-book-cover {
    width: 100%; aspect-ratio: 2/3;
    overflow: hidden; background: #f1f5f9;
}
.lg-book-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.lg-cover-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: #cbd5e1;
}

/* Info */
.lg-book-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.lg-book-title {
    font-size: 14px; font-weight: 700; margin: 0 0 4px;
    color: var(--lg-text); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.lg-book-author {
    font-size: 12px; color: var(--lg-text-light);
    margin: 0 0 4px;
}
.lg-book-rating {
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 4px; font-size: 11px;
}
.lg-stars { color: #f59e0b; font-size: 12px; letter-spacing: -1px; }
.lg-rating-text { font-weight: 600; color: var(--lg-text); }
.lg-reviews { color: var(--lg-text-light); }
.lg-book-desc {
    font-size: 11px; color: var(--lg-text-light);
    line-height: 1.4; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.lg-book-genres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.lg-genre-badge {
    font-size: 11px; padding: 2px 8px;
    background: #f1f5f9; color: var(--lg-text-light);
    border-radius: 10px;
}
.lg-book-urgency {
    font-size: 12px; color: var(--lg-accent);
    font-weight: 600; margin: 0 0 8px;
}

/* Amazon Button */
.lg-btn-amazon {
    display: block; text-align: center;
    padding: 10px 14px; margin-top: auto;
    background: var(--lg-primary); color: #fff;
    border-radius: 8px; text-decoration: none;
    font-weight: 700; font-size: 13px;
    transition: background 0.2s;
}
.lg-btn-amazon:hover { background: var(--lg-primary-dark); color: #fff; }

/* Share Bar */
.lg-share-bar {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid var(--lg-border);
}
.lg-share-label {
    font-size: 10px; color: var(--lg-text-light);
    white-space: nowrap;
}
.lg-share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%; border: 1px solid var(--lg-border);
    font-size: 11px; font-weight: 700;
    text-decoration: none; cursor: pointer;
    transition: all 0.2s; background: var(--lg-card-bg);
    color: var(--lg-text-light); line-height: 1;
}
.lg-share-btn:hover { transform: scale(1.15); }
.lg-share-fb { color: #1877F2; border-color: #1877F2; }
.lg-share-fb:hover { background: #1877F2; color: #fff; }
.lg-share-x { color: #000; border-color: #000; font-size: 10px; }
.lg-share-x:hover { background: #000; color: #fff; }
.lg-share-li { color: #0A66C2; border-color: #0A66C2; font-size: 10px; }
.lg-share-li:hover { background: #0A66C2; color: #fff; }
.lg-share-wa { color: #25D366; border-color: #25D366; font-size: 9px; font-weight: 800; }
.lg-share-wa:hover { background: #25D366; color: #fff; }
.lg-share-copy { color: var(--lg-text-light); font-size: 12px; padding: 0; }
.lg-share-copy:hover { background: var(--lg-primary); border-color: var(--lg-primary); }

.lg-no-books { text-align: center; padding: 60px 20px; color: var(--lg-text-light); font-size: 18px; }

/* ===== Best Sellers Header ===== */
.lg-bestsellers-header { text-align: center; padding: 30px 0 10px; }
.lg-bestsellers-header h2 { font-size: 28px; margin: 0; }
.lg-bestsellers-header p { color: var(--lg-text-light); }

/* ===== Submit Form ===== */
.lg-submit-container { max-width: 700px; margin: 0 auto; padding: 20px; }
.lg-submit-header { text-align: center; margin-bottom: 30px; }
.lg-submit-header h2 { font-size: 28px; margin: 0 0 8px; }

.lg-form-section {
    background: var(--lg-card-bg);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 24px; margin-bottom: 20px;
}
.lg-form-section h3 { margin: 0 0 16px; font-size: 18px; }
.lg-form-description { color: var(--lg-text-light); margin: 0 0 16px; font-size: 14px; }

.lg-field { margin-bottom: 16px; }
.lg-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.lg-field input, .lg-field select, .lg-field textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--lg-border); border-radius: 8px;
    font-size: 14px; box-sizing: border-box;
}
.lg-field input:focus, .lg-field select:focus {
    outline: none; border-color: var(--lg-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.lg-field small { display: block; margin-top: 4px; color: var(--lg-text-light); font-size: 12px; }
.lg-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Boost Options */
.lg-boost-options {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 16px;
}
.lg-boost-option { cursor: pointer; }
.lg-boost-option input { display: none; }
.lg-boost-card {
    border: 2px solid var(--lg-border); border-radius: 10px;
    padding: 16px; text-align: center;
    transition: all 0.2s; height: 100%;
}
.lg-boost-option input:checked + .lg-boost-card {
    border-color: var(--lg-primary);
    background: #fffbeb;
}
.lg-boost-card:hover { border-color: var(--lg-primary-dark); }
.lg-boost-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.lg-boost-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.lg-boost-card p { font-size: 12px; color: var(--lg-text-light); margin: 0 0 8px; }
.lg-boost-price { font-size: 18px; font-weight: 800; color: var(--lg-primary); }
.lg-boost-economy {
    display: block; font-size: 11px;
    background: var(--lg-success); color: #fff;
    padding: 2px 8px; border-radius: 10px;
    margin-top: 6px; display: inline-block;
}
.lg-boost-card-pack { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.lg-boost-notice { display: block; font-size: 11px; color: var(--lg-accent); margin-top: 6px; }

.lg-boost-total {
    text-align: right; font-size: 18px;
    padding: 12px; background: #f8fafc;
    border-radius: 8px;
}

.lg-form-notice-success {
    background: #ecfdf5; border: 1px solid #a7f3d0;
    color: #065f46; padding: 12px; border-radius: 8px;
}

.lg-checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.lg-checkbox input { margin-top: 2px; }

.lg-btn-submit {
    display: block; width: 100%; padding: 16px;
    background: var(--lg-primary); color: #fff;
    border: none; border-radius: var(--lg-radius);
    font-size: 18px; font-weight: 700; cursor: pointer;
    transition: background 0.2s;
}
.lg-btn-submit:hover { background: var(--lg-primary-dark); }
.lg-btn-submit:disabled { background: #cbd5e1; cursor: not-allowed; }

.lg-form-alert {
    padding: 10px; border-radius: 8px;
    font-size: 13px; margin-top: 6px;
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
}

/* ===== Newsletter Block ===== */
.lg-newsletter-block {
    text-align: center; padding: 40px;
    background: linear-gradient(135deg, #fef3c7, #fff7ed);
    border-radius: var(--lg-radius); margin: 30px 0;
}
.lg-newsletter-block h3 { margin: 0 0 8px; font-size: 22px; }
.lg-newsletter-block p { color: var(--lg-text-light); margin: 0 0 16px; }
.lg-newsletter-form { display: flex; justify-content: center; gap: 8px; }
.lg-newsletter-form input[type="email"] {
    padding: 12px 18px; border: 1px solid var(--lg-border);
    border-radius: 8px; font-size: 15px; width: 280px;
}
.lg-newsletter-form button {
    padding: 12px 24px; background: var(--lg-primary); color: #fff;
    border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
    font-size: 15px;
}
.lg-newsletter-form button:hover { background: var(--lg-primary-dark); }
.lg-newsletter-block small { display: block; margin-top: 12px; color: var(--lg-text-light); font-size: 11px; }
.lg-newsletter-partner-check {
    font-size: 11px; color: var(--lg-text-light);
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap; cursor: pointer;
}
.lg-newsletter-partner-block {
    display: block; text-align: center;
    font-size: 12px; color: var(--lg-text-light);
    margin-top: 10px; cursor: pointer;
}
.lg-newsletter-partner-block input,
.lg-newsletter-partner-check input { cursor: pointer; }

/* ===== Cookie Banner ===== */
#lg-cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--lg-secondary); color: #fff;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.lg-cookie-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.lg-cookie-content p { margin: 0; font-size: 14px; }
.lg-cookie-content a { color: var(--lg-primary); }
.lg-cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.lg-cookie-accept {
    padding: 8px 20px; background: var(--lg-primary); color: #fff;
    border: none; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.lg-cookie-refuse {
    padding: 8px 20px; background: transparent; color: #fff;
    border: 1px solid #fff; border-radius: 6px; cursor: pointer;
}

/* ===== Single Book Page ===== */
.lg-single-book {
    max-width: 900px; margin: 0 auto; padding: 20px;
}
.lg-single-layout {
    display: flex; gap: 30px;
    background: var(--lg-card-bg);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 24px; margin-bottom: 24px;
}
.lg-single-cover { width: 250px; flex-shrink: 0; }
.lg-single-cover-img {
    width: 100%; height: auto; border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.lg-single-cover-placeholder {
    width: 250px; height: 375px; background: #f1f5f9;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; font-size: 64px; color: #cbd5e1;
}
.lg-single-info { flex: 1; display: flex; flex-direction: column; }
.lg-single-badge {
    display: inline-block; padding: 4px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 700; margin-bottom: 8px; margin-right: 6px;
}
.lg-single-badge-cc { background: var(--lg-primary); color: #fff; }
.lg-single-badge-bs { background: var(--lg-accent); color: #fff; }
.lg-single-author { font-size: 18px; color: var(--lg-text-light); margin: 0 0 10px; }
.lg-single-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lg-single-stars { color: #f59e0b; font-size: 20px; }
.lg-single-rating-text { font-size: 16px; font-weight: 600; }
.lg-single-reviews { font-size: 14px; color: var(--lg-text-light); }
.lg-single-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lg-single-genres .lg-genre-badge { font-size: 13px; padding: 4px 12px; }
.lg-single-promo-info {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 16px; padding: 12px; background: #ecfdf5;
    border-radius: 8px; border: 1px solid #a7f3d0;
}
.lg-single-promo-badge { font-size: 16px; font-weight: 800; color: #10b981; letter-spacing: 1px; }
.lg-single-promo-dates { font-size: 14px; color: #065f46; }
.lg-single-urgency { font-size: 13px; font-weight: 700; color: var(--lg-accent); }
.lg-single-promo-soon { font-size: 14px; color: #92400e; }
.lg-single-promo-ended { font-size: 14px; color: var(--lg-text-light); }
.lg-single-btn-amazon { font-size: 16px; padding: 14px 24px; margin-bottom: 16px; }
.lg-single-share {
    display: flex; align-items: center; gap: 10px;
    padding-top: 12px; border-top: 1px solid var(--lg-border);
}
.lg-single-share-btns { display: flex; gap: 8px; }
.lg-single-share .lg-share-btn { width: 32px; height: 32px; font-size: 13px; }
.lg-single-description {
    background: var(--lg-card-bg); border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow); padding: 24px; margin-bottom: 24px;
}
.lg-single-description h3 { font-size: 18px; margin: 0 0 12px; }
.lg-single-description p { font-size: 15px; line-height: 1.7; color: var(--lg-text); margin: 0; }
.lg-single-newsletter {
    text-align: center; padding: 30px;
    background: linear-gradient(135deg, #fef3c7, #fff7ed);
    border-radius: var(--lg-radius); margin-bottom: 24px;
}
.lg-single-newsletter h3 { margin: 0 0 8px; font-size: 20px; }
.lg-single-newsletter p { color: var(--lg-text-light); margin: 0 0 14px; }
.lg-single-back { text-align: center; padding: 10px 0; }
.lg-single-back a { color: var(--lg-primary); text-decoration: none; font-weight: 600; font-size: 14px; }
.lg-single-back a:hover { color: var(--lg-primary-dark); }

@media (max-width: 768px) {
    .lg-single-layout { flex-direction: column; }
    .lg-single-cover { width: 100%; max-width: 250px; margin: 0 auto; }
    .lg-single-share { flex-direction: column; align-items: flex-start; }
}

/* ===== KDP Toolbox Promo ===== */
.lg-kdp-banner {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 14px 18px; margin-bottom: 20px;
    font-size: 14px; line-height: 1.5; color: #1e40af;
}
.lg-kdp-banner-icon { font-size: 24px; flex-shrink: 0; }
.lg-kdp-banner-text a {
    color: #1e40af; font-weight: 700; text-decoration: underline;
}
.lg-kdp-banner-text a:hover { color: #1d4ed8; }
.lg-kdp-cta {
    margin-top: 20px; padding: 28px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 14px; text-align: center; color: #fff;
}
.lg-kdp-cta-icon { font-size: 36px; margin-bottom: 8px; }
.lg-kdp-cta h3 {
    font-size: 20px; margin: 0 0 10px; color: #fff;
}
.lg-kdp-cta p {
    font-size: 14px; line-height: 1.6;
    margin: 0 0 16px; opacity: 0.92;
}
.lg-kdp-cta-btn {
    display: inline-block; background: #fff; color: #1e40af;
    padding: 12px 28px; border-radius: 8px;
    font-weight: 700; font-size: 15px;
    text-decoration: none; transition: all 0.2s;
}
.lg-kdp-cta-btn:hover {
    background: #f0f9ff; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.lg-kdp-banner-img {
    width: 100%; height: auto; border-radius: 10px;
    display: block;
}
.lg-kdp-banner-video {
    margin-bottom: 20px; text-align: center;
}
.lg-kdp-cta-img {
    max-width: 100%; height: auto; border-radius: 10px;
    margin-bottom: 14px;
}
.lg-kdp-cta-video {
    margin: 14px 0; text-align: center;
}

/* ===== Legal Pages ===== */
.lg-legal { max-width: 800px; margin: 0 auto; padding: 20px; }
.lg-legal h2 { font-size: 28px; margin-bottom: 20px; }
.lg-legal h3 { font-size: 20px; margin: 24px 0 8px; color: var(--lg-primary-dark); }
.lg-legal h4 { font-size: 16px; margin: 16px 0 8px; }
.lg-legal p, .lg-legal li { line-height: 1.7; color: var(--lg-text); }
.lg-legal ul { padding-left: 20px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .lg-book-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .lg-newsletter-bar { flex-direction: column; text-align: center; }
    .lg-boost-options { grid-template-columns: 1fr; }
    .lg-field-row { grid-template-columns: 1fr; }
    .lg-cookie-content { flex-direction: column; text-align: center; }
    .lg-newsletter-form { flex-direction: column; align-items: center; }
    .lg-newsletter-form input[type="email"] { width: 100%; }
}

/* ===== Author Panel ===== */
.lg-author-panel { max-width: 900px; margin: 0 auto; padding: 20px; }
.lg-ap-header { margin-bottom: 24px; }
.lg-ap-header h2 { font-size: 24px; margin: 0 0 8px; }
.lg-ap-header p { color: var(--lg-text-light); margin: 0; }
.lg-ap-login-box {
    background: var(--lg-card-bg); border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow); padding: 28px; max-width: 600px;
}
.lg-ap-login-box label { font-weight: 600; display: block; margin-bottom: 4px; }
.lg-ap-login-box small { color: var(--lg-text-light); display: block; margin-bottom: 12px; }
.lg-ap-email-row { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; width: 100%; }
.lg-author-panel .lg-ap-email-row input[type="email"],
.lg-author-panel .lg-ap-email-row input[type="text"],
.lg-author-panel .lg-ap-login-box input[type="email"],
.lg-author-panel .lg-ap-login-box input[type="text"] {
    flex: 1 1 auto !important; min-width: 0 !important; width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important; border: 1px solid var(--lg-border) !important;
    border-radius: 8px !important; font-size: 15px !important;
    height: auto !important; line-height: 1.4 !important;
    box-sizing: border-box !important;
    display: block !important;
}
.lg-ap-email-row .lg-btn-submit { white-space: nowrap; padding: 10px 20px; font-size: 14px; flex-shrink: 0; }
.lg-ap-msg { padding: 10px 14px; border-radius: 8px; margin-top: 12px; font-size: 14px; }
.lg-ap-msg-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lg-ap-msg-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.lg-ap-empty { text-align: center; padding: 40px 20px; color: var(--lg-text-light); }
.lg-ap-empty p { font-size: 16px; margin-bottom: 16px; }

/* Book cards */
.lg-ap-book-card {
    display: flex; gap: 20px; padding: 20px;
    background: var(--lg-card-bg); border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow); margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.lg-ap-book-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.lg-ap-book-cover { width: 80px; flex-shrink: 0; }
.lg-ap-book-cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.lg-ap-cover-placeholder { width: 80px; height: 120px; background: #f1f5f9; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.lg-ap-book-info { flex: 1; }
.lg-ap-book-info h3 { margin: 0 0 4px; font-size: 16px; }
.lg-ap-book-author { margin: 0 0 8px; color: var(--lg-text-light); font-size: 14px; }
.lg-ap-book-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.lg-ap-status { padding: 3px 10px; border-radius: 20px; font-weight: 600; font-size: 12px; }
.lg-ap-status-active { background: #ecfdf5; color: #065f46; }
.lg-ap-status-upcoming { background: #eff6ff; color: #1e40af; }
.lg-ap-status-expired { background: #fef2f2; color: #991b1b; }
.lg-ap-status-pending { background: #fefce8; color: #854d0e; }
.lg-ap-dates { color: var(--lg-text-light); }
.lg-ap-clicks { color: var(--lg-text-light); }
.lg-ap-book-actions { display: flex; gap: 8px; margin-top: 10px; }
.lg-ap-btn-edit, .lg-ap-btn-delete {
    padding: 6px 14px; border-radius: 6px; border: 1px solid var(--lg-border);
    background: var(--lg-card-bg); cursor: pointer; font-size: 13px;
    transition: all 0.2s;
}
.lg-ap-btn-edit:hover { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.lg-ap-btn-delete:hover { background: #fef2f2; border-color: #ef4444; color: #b91c1c; }

/* Modal */
.lg-ap-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.lg-ap-modal-content {
    background: #fff; border-radius: 14px; padding: 28px;
    max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.lg-ap-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.lg-ap-modal-header h3 { margin: 0; font-size: 18px; }
.lg-ap-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--lg-text-light); padding: 4px 8px; }
.lg-ap-modal-close:hover { color: var(--lg-text); }
.lg-ap-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.lg-ap-modal-actions .lg-btn-submit { flex: 1; }
.lg-ap-btn-cancel { padding: 10px 20px; border: 1px solid var(--lg-border); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; }
.lg-ap-btn-cancel:hover { background: #f8fafc; }

/* Dashboard header */
.lg-ap-dash-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; margin-bottom: 20px;
    background: var(--lg-card-bg); border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
}
.lg-ap-dash-header h2 { margin: 0 0 4px; font-size: 22px; }
.lg-ap-dash-header p { margin: 0; font-size: 14px; color: var(--lg-text-light); }
.lg-ap-dash-actions { display: flex; gap: 10px; align-items: center; }
.lg-ap-btn-logout {
    padding: 8px 16px; border: 1px solid var(--lg-border); border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 13px; color: var(--lg-text-light);
    transition: all 0.2s;
}
.lg-ap-btn-logout:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* Tabs */
.lg-ap-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    background: #f1f5f9; border-radius: 10px; padding: 4px;
}
.lg-ap-tab {
    flex: 1; padding: 10px 16px; border: none; border-radius: 8px;
    background: transparent; cursor: pointer; font-size: 14px;
    font-weight: 600; color: var(--lg-text-light); transition: all 0.2s;
}
.lg-ap-tab:hover { color: var(--lg-text); }
.lg-ap-tab-active {
    background: var(--lg-card-bg) !important; color: var(--lg-text) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Boost rows */
.lg-ap-boost-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; margin-bottom: 10px;
    background: var(--lg-card-bg); border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow); font-size: 14px;
}
.lg-ap-boost-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-ap-boost-badge {
    padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
    background: #ecfdf5; color: #065f46;
}

/* Profile */
.lg-ap-profile-box {
    background: var(--lg-card-bg); border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow); padding: 24px; max-width: 500px;
}
.lg-ap-profile-box h3 { margin: 0 0 20px; font-size: 18px; }

/* Boost checks in modal */
.lg-ap-boost-check {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 13px; cursor: pointer;
    transition: all 0.2s;
}
.lg-ap-boost-check:hover { border-color: #3b82f6; background: #f0f9ff; }
.lg-ap-boost-check input:checked + span { font-weight: 600; }

@media (max-width: 768px) {
    .lg-ap-book-card { flex-direction: column; }
    .lg-ap-book-cover { width: 60px; }
    .lg-ap-email-row { flex-direction: column; }
    .lg-ap-modal-content { margin: 10px; }
    .lg-ap-dash-header { flex-direction: column; gap: 12px; text-align: center; }
    .lg-ap-dash-actions { justify-content: center; }
    .lg-ap-tabs { flex-direction: column; }
    .lg-ap-boost-row { flex-direction: column; gap: 8px; align-items: flex-start; }
}
