:root {
    --ink: #1f1a17;
    --cream: #faf3e7;
    --peach: #f4a261;
    --mint: #2a9d8f;
    --sun: #e9c46a;
    --coral: #e76f51;
    --shadow: rgba(31, 26, 23, 0.12);
}

body {
    background-color: #f3e7d6 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
}

h1, h2, h3, .ui.header {
    font-family: 'Fraunces', serif;
}

.main-content {
    padding: 6.5rem 0 4rem;
}

.ht-topbar {
    background: rgba(250, 243, 231, 0.95);
    box-shadow: 0 8px 24px var(--shadow);
}

.brand-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--coral);
    margin-right: 8px;
}

.ht-hero {
    margin-top: 1rem;
}

.hero-card {
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 18px 40px var(--shadow);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--mint);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ht-feature-card {
    border-radius: 20px;
    background: linear-gradient(140deg, #fff7ea 0%, #fef0df 50%, #f7e0c8 100%);
    border: none;
}

.ht-spark {
    background: linear-gradient(120deg, #fff 0%, #fff6e9 100%);
    border: none;
    border-radius: 18px;
    box-shadow: 0 14px 30px var(--shadow);
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--coral);
}

.stat-caption {
    color: #6f5f56;
}

.ht-book-card {
    border-radius: 18px !important;
    box-shadow: 0 12px 28px var(--shadow) !important;
    max-width: 250px;
    color: inherit !important;
}

.ht-book-card .content .header {
    font-size: 1.2rem;
}

.ht-book-detail {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px var(--shadow);
}

.cover-frame {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #f4ede0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

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

.cover-frame.small {
    width: 56px;
    min-width: 56px;
    margin-bottom: 0;
}

.cover-frame.large {
    width: 140px;
    min-width: 140px;
    margin-bottom: 0;
}

.cover-frame.small .cover-placeholder {
    font-size: 0.7rem;
}

.cover-placeholder {
    color: #7a6a60;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.detail-hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.detail-meta {
    flex: 1;
}

.ht-cover-hero {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px var(--shadow);
    position: relative;
    overflow: hidden;
}

.ht-cover-hero .cover-meta {
    margin-top: 1rem;
}

.ht-cover-hero .cover-controls {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(250, 243, 231, 0.92);
    backdrop-filter: blur(6px);
    padding: 0.85rem;
    border-radius: 14px;
    box-shadow: 0 10px 24px var(--shadow);
}

.ht-cover-hero .cover-controls .field label {
    font-size: 0.85rem;
}

.ht-cover-hero .cover-controls input[type="url"],
.ht-cover-hero .cover-controls input[type="file"] {
    background: #fffaf0;
}

.ht-cover-hero .cover-frame {
    max-width: 190px;
    margin: 0 auto 4.5rem;
}

.ui.cards {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .ht-book-card {
        max-width: none;
    }
}

.ht-auth .column {
    max-width: 430px;
}

.ht-tip {
    border-radius: 18px;
    background: #fff7ec;
}

.scanner-box {
    width: 100%;
    min-height: 240px;
    background: #0f0b08;
    border-radius: 16px;
    overflow: hidden;
}

.scan-hint {
    margin-top: 1rem;
    color: #5f5047;
}

.ui.primary.button {
    background: var(--coral);
}

.ui.primary.button:hover {
    background: #d85f45;
}

.ui.label {
    border-radius: 999px;
}

@media (max-width: 768px) {
    .hero-card {
        padding: 2rem 1.5rem;
    }
    .ht-desktop-nav {
        display: none !important;
    }
    .ht-mobile-toggle {
        display: flex !important;
    }
}

.ht-mobile-toggle {
    display: none;
}

.pusher {
    background: var(--cream) !important;
}
