:root {
    /* Romantic Contemporary Theme - Colors from Hero Image */
    --bg-primary: #fef5e7;
    --bg-secondary: #fff5f7;
    --bg-light: #ffffff;
    --pink-heart: #f4a7c4;
    --pink-secondary: #e8b4d0;
    --cream-bg: #fef5e7;
    --beige: #fff9f0;
    --text-main: #2c1810;
    --text-secondary: #6b5d54;
    --accent-primary: #f4a7c4;
    --accent-primary-dark: #d4a5a5;
    --accent-primary-light: #fce4ec;
    --accent-secondary: #e8b4d0;
    --card-bg: #ffffff;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --divider: rgba(26,71,42,0.15);
    --nav-height: 68px;
    --nav-padding: 24px;
    --blog-pic-radius: 12px;
    --font-family-display: 'Great Vibes', cursive;
    --font-family-main: 'Lora', 'Inter', 'FKGroteskNeue', 'Geist', Arial, sans-serif;
    --font-size-hero: 5rem;
    --font-size-title: 2.4rem;
    --font-size-section: 2rem;
    --font-size-card: 1.15rem;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(.3, .8, .4, 1);
    --white: #fff;
    --error: #dc3545;
    --success: #4fb8c4;
    --input-bg: #ffffff;
    --input-border: #e8d4c8;
    --input-focus: #d97b9e;
    --border-light: #f0dfd5;
}

html {
    background: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-family-main);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family-main);
    font-size: 1.06rem;
    font-weight: 400;
    line-height: 1.7;
    background: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

    a:hover {
        color: var(--accent-primary-light);
        text-decoration: none;
    }

header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--nav-padding);
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

nav {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2rem;
    letter-spacing: 0.02em;
}

    nav a {
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        transition: all var(--transition);
        color: var(--text-main);
        position: relative;
        text-transform: uppercase;
        font-size: 0.88rem;
        letter-spacing: 0.05em;
    }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--accent-primary);
            transition: width var(--transition);
            border-radius: 2px;
        }

        nav a:hover {
            color: var(--accent-primary);
            text-decoration: none;
        }

            nav a:hover::after {
                width: 90%;
            }

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

            nav a.active::after {
                width: 90%;
            }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    background: transparent;
}

main section {
    margin-bottom: 80px;
    padding-top: 40px;
}

main {
    background: transparent;
}


/* Hero Section */
.hero {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 64px;
    padding: 60px 24px;
    background: url('css/header2.png') center top / cover no-repeat;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.15);
        z-index: 0;
    }

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(7rem, 15vw, 16rem);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.03em;
    line-height: 1.04;
    color: #000147;
    /** text-shadow: 3px 6px 32px #f4a7c4, 0 9px 48px rgba(244, 167, 196, 0.4), 0 2px 8px rgba(244, 167, 196, 0.25), 1px 1px 1px rgba(255,255,255,0.9); **/
}

.hero h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 11vw, 6rem);
    font-weight: 400;
    margin: 0;
    margin-top: 0px;
    letter-spacing: 0.03em;
    line-height: 1.04;
    color: #000147;
    /** text-shadow: 3px 6px 32px #f4a7c4, 0 9px 48px rgba(244, 167, 196, 0.4), 0 2px 8px rgba(244, 167, 196, 0.25), 1px 1px 1px rgba(255,255,255,0.9); **/
    margin-top: -0.8ex;
    text-align: right;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 0;
        transform: translateY(0);
    }
}

.section-divider {
    width: 80px;
    height: 3px;
    border-radius: 2px;
    margin: 60px auto 40px auto;
    background: var(--accent-primary);
    opacity: 0.3;
    border: none;
}

/* Subtle heart decorations */
.heart-decoration {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

    .heart-decoration svg {
        fill: var(--accent-primary);
    }

.section-wrapper {
    position: relative;
}


/* About Me Section */
#about {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-img {
    flex: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .about-img:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    }

    .about-img img {
        height: 320px;
        width: 380px;
        object-fit: cover;
        border-radius: var(--radius-lg);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        border: 3px solid var(--accent-secondary);
        background: var(--bg-secondary);
    }

.about-text {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}

    .about-text h2 {
        font-family: var(--font-family-main);
        color: var(--accent-primary);
        font-size: 2.2rem;
        margin-bottom: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    .about-text p {
        color: var(--text-main);
        font-size: 1.08rem;
        line-height: 1.8;
        margin-bottom: 0;
    }


/* Blog Section */

/* Blog layout: full-width vertical list */
#blog {
    padding: 3rem 1.5rem;
}

/* Header with title and Buy Me a Coffee button */
.blog-header {
    position: relative;
    text-align: center;
}

    .blog-header .section-title {
        margin-bottom: 0;
    }

.buy-me-coffee-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    line-height: 0;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Each post as a full-width card */
.blog-post {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    margin-bottom: 1ex;
    position: relative; /* for absolute corner image */
}

/* Optional image */
.blog-post-image {
    flex: 0 0 160px;
    margin: 0;
}

    .blog-post-image img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 0.5rem;
    }

/* If there is no image, the .blog-post-main just fills the space */
.blog-post-main {
    flex: 1 1 auto;
}

/* Text and header */
.blog-post-header {
    margin-bottom: 0.5rem;
}

.blog-post-title {
    margin: 0;
    font-size: 1.2rem;
}

.blog-post-meta {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #777;
}

/* Preview / expansion behavior */
.blog-post-content {
    position: relative;
    max-height: 6.5rem; /* collapsed preview height */
    overflow: hidden;
    margin-top: 0.75rem;
}

    /* Faded gradient at the bottom when collapsed */
    .blog-post-content::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2.5rem;
        background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    }

/* Single post view: no height limit */
.single-post-view .blog-post-content {
    max-height: none;
    overflow: visible;
}

    .single-post-view .blog-post-content::after {
        display: none;
    }

/* Toggle button / Read more link */
.blog-post-toggle {
    margin-top: 0.75rem;
    background: none;
    border: none;
    color: var(--input-focus);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-size: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
}

    .back-link:hover {
        color: var(--accent-primary);
    }

/* Load more button (older posts) */
.load-more-button {
    margin-top: 2rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: 1px solid #b34700;
    background: #fff7f0;
    color: #b34700;
    font-weight: 600;
    cursor: pointer;
}

/* --- Type corner image (tech / romance) --- */
.blog-type-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    pointer-events: none;
    z-index: 2;
}

    .blog-type-corner img {
        width: 100%;
        height: auto;
        display: block;
    }
 

 
/* Responsive adjustments for the corner image */
@media (max-width: 768px) {
    .blog-type-corner {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }
}



/* Responsive: stack image on top on small screens */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
        padding: 1rem;
    }

    .blog-post-image {
        flex: 0 0 auto;
    }

	#buymeacoffeebild { height:85px;}

    /* Single post view - expand to nearly full width on mobile */
    .single-post-view {
        
    }
    #blog {padding:unset;}

    div.blog-post-content {
        margin-inline-end: 0em !important;
        padding-right: 0em !important;
    }
    .blog-post-content p {
        margin-inline-end: 0em !important;
        padding-right: 0em !important;
    }

    .single-post-view .blog-post-image {
        margin-left: 0;
        margin-right: 0;
    }
}

 #buymeacoffeebild {height:100px;}

/*old blog*/

/* Single post container styling */
#single-post-container {
    margin-bottom: 3rem;
}

#single-post-divider {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.subscribe-box {
    background: var(--bg-secondary);
    /*padding: 1em;*/
    padding-top: 1.5em;
    margin-top: 1em;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--card-shadow);
}

.subscribe-box-singlepost {
    margin-bottom:1em;
    padding-top:1em;
    padding-bottom:0.6em;
}

    .subscribe-box label {
        color: var(--accent-primary);
        font-size: 1.15rem;
        font-weight: 700;
        /*flex: 1 1 100%;*/
        padding-top: 0.5rem;
        text-align: center;
        margin-bottom: 8px;
    }

    .subscribe-box input[type="email"] {
        border-radius: var(--radius-md);
        border: 1px solid var(--input-border);
        padding: 13px 22px;
        font-size: 1.03rem;
        outline: none;
        transition: all var(--transition);
        min-width: 300px;
        background: var(--input-bg);
        color: var(--text-main);
        font-family: var(--font-family-main);
    }

        .subscribe-box input[type="email"]:focus {
            border: 2px solid var(--input-focus);
            box-shadow: 0 0 0 3px rgba(26,71,42,0.15);
        }

    .subscribe-box button {
        background: var(--accent-primary);
        color: var(--white);
        border: 0;
        font-weight: 700;
        border-radius: var(--radius-md);
        padding: 13px 36px;
        font-size: 1.03rem;
        cursor: pointer;
        transition: all var(--transition);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

        .subscribe-box button:hover {
            background: var(--accent-primary-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

.subscribe-confirmation {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    flex: 1 1 100%;
    text-align: center;
    margin-top: 8px;
}

/* Bibliography Section */
#bibliography {
    min-height: 400px;
    scroll-margin-top: 80px;
}

.books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.bib-book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.books-list { /* Current usage in HTML is id=books-list, class=books-list */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.bib-book-card { /* Defined in HTML structure */
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    padding: 28px 20px 24px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
}

    .bib-book-card:hover {
        transform: translateY(-6px);
        border: 1px solid var(--accent-primary);
        box-shadow: var(--card-shadow-hover);
    }

    .bib-book-card.expanded {
        background: var(--card-bg);
        border: 2px solid var(--accent-primary);
        box-shadow: 0 12px 36px rgba(0,0,0,0.12);
        transform: translateY(-6px);
    }

.book-thumb {
    width: 140px;
    height: 210px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    margin-bottom: 20px;
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform var(--transition), box-shadow var(--transition);
}

.bib-book-card:hover .book-thumb {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.book-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.book-desc {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: center;
    flex-grow: 1;
}

.amazon-link {
    background: var(--accent-primary);
    color: var(--white);
    text-decoration: none;
    padding: 11px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .amazon-link:hover {
        background: var(--accent-primary-light);
        transform: translateY(-2px);
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }



/* Contact Section */
#contact {
    scroll-margin-top: 80px;
    min-height: 400px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 2px solid var(--accent-primary);
    padding: 48px 40px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-title {
    font-size: 2.05rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

    .contact-form label {
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--accent-primary);
        font-size: 1rem;
        display: block;
    }

    .contact-form input, .contact-form textarea {
        border-radius: var(--radius-md);
        border: 1px solid var(--input-border);
        padding: 13px 18px;
        font-size: 1rem;
        outline: none;
        font-family: var(--font-family-main);
        resize: vertical;
        transition: all var(--transition);
        background: var(--input-bg);
        color: var(--text-main);
        width: 100%;
        box-sizing: border-box;
    }

        .contact-form input:focus, .contact-form textarea:focus {
            border: 2px solid var(--input-focus);
            box-shadow: 0 0 0 3px rgba(26,71,42,0.15);
        }

    .contact-form textarea {
        min-height: 120px;
        max-height: 300px;
    }

    .contact-form button {
        align-self: center;
        background: var(--accent-primary);
        color: var(--white);
        border: 0;
        font-weight: 700;
        border-radius: var(--radius-md);
        padding: 15px 52px;
        font-size: 1.05rem;
        margin-top: 8px;
        cursor: pointer;
        transition: all var(--transition);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

        .contact-form button:hover {
            background: var(--accent-primary-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

/* Universal section titles */
.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--accent-primary);
    font-family: var(--font-family-main);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-light);
    padding: 38px 24px;
    text-align: center;
    color: var(--text-main);
    font-size: 1.02rem;
    box-shadow: 0 -2px 8px 0 rgba(0,0,0,0.04);
    margin-top: 40px;
}

    footer p {
        margin: 0;
        font-size: 1rem;
        color: var(--text-secondary);
    }

    footer a {
        color: var(--accent-primary);
        transition: color 0.23s;
    }

        footer a:hover {
            color: var(--accent-primary-light);
        }
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 0 12px;
    }

    nav {
        gap: 0.8rem;
        font-size: 0.81rem;
    }

        nav a {
            padding: 4px 8px;
        }

    .hero {
        height: 35vh;
    }

    .hero-name {
        font-size: 4rem;
    }

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

    #about {
        flex-direction: column;
        gap: 24px;
    }

    .about-img img {
        width: 180px;
        height: 230px;
    }

    .about-text h2 {
        font-size: 1.1rem;
    }

    .about-text {
        text-align: center;
    }

    .books-list {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .bib-book-card {
        min-height: 270px;
        padding: 18px 9px;
    }

    .book-thumb {
        width: 92px;
        height: 138px;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    #contact {
        padding: 20px 10px;
    }

    .contact-title {
        font-size: 1.02rem;
    }
}

@media (max-width: 480px) {
    nav {
        gap: 0.6rem;
        font-size: 0.75rem;
    }

        nav a {
            padding: 5px 6px;
        }

    .hero {
        height: 30vh;
    }

    .hero-name {
        font-size: 3.2rem;
    }

    .about-img img {
        width: 160px;
        height: 210px;
    }

    .about-text h2 {
        font-size: 1.3rem;
    }

    .books-list {
        grid-template-columns: 1fr;
    }

    .subscribe-box {
        padding: 18px 12px;
    }

        .subscribe-box input[type="email"] {
            min-width: 80%;
        }

        .subscribe-box button {
            width: 100%;
        }

    #contact {
        padding: 18px 12px;
    }
}

/* Fix blog error for Macs */
div.blog-post-content {
    margin-inline-end: 1.5em;
    padding-right: 1.5em;
}

.blog-post-content p {
    margin-inline-end: 1.5em;
    padding-right: 0;
}

/* ===== Coffee Modal Styles ===== */
.coffee-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.coffee-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-primary);
    padding: 0;
    max-width: 560px;
    width: 90%;
    z-index: 1000;
    overflow: hidden;
}

.coffee-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

/* Two-column layout: image on the left, content on the right */
.coffee-modal-layout {
    display: flex;
    align-items: stretch;
    min-height: 320px;
}

/* Left side: picture area spanning almost the entire modal height */
.coffee-modal-image {
    flex: 0 0 38%;
    background: linear-gradient(135deg, var(--accent-primary-light), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Placeholder for the picture - replace with actual image later */
.coffee-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
    opacity: 0.5;
}

.coffee-emoji {
    font-size: 3.5rem;
    line-height: 1;
}

.coffee-image-placeholder small {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Right side: text, input, and button */
.coffee-modal-content {
    flex: 1;
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coffee-modal-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 20px 0;
}

.coffee-input-row {
    display: flex;
    flex-wrap: nowrap;           /* Changed from wrap to nowrap */
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.coffee-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    transition: border 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.coffee-input-wrapper:focus-within {
    border: 2px solid var(--input-focus);
    box-shadow: 0 0 0 3px rgba(244, 167, 196, 0.2);
}

.currency-symbol {
    display: inline-flex;
    align-items: center;
    padding: 10px 2px 10px 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    user-select: none;
    background: var(--bg-secondary);
    height: 100%;
}

.coffee-input {
    width: 60px;
    padding: 10px 10px 10px 6px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-family-main);
    text-align: left;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Remove number input spinners for cleaner look */
.coffee-input::-webkit-outer-spin-button,
.coffee-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.preset-btn {
    padding: 10px 16px;
    border: 1px solid var(--accent-primary);
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
    white-space: nowrap;          /* Prevent button text from wrapping */
}

.preset-btn:hover {
    background: var(--accent-primary);
    color: var(--white);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.coffee-submit {
    background: var(--accent-primary);
    color: var(--white);
    border: none;
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 14px 40px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

.coffee-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--accent-primary-light);
    box-shadow: none;
}

.coffee-submit:not(:disabled):hover {
    background: var(--accent-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive: stack modal vertically on small screens */
@media (max-width: 480px) {
    .coffee-modal {
        max-width: 380px;
    }

    .coffee-modal-layout {
        flex-direction: column;
        min-height: auto;
    }

    .coffee-modal-image {
        flex: 0 0 130px;
        width: 100%;
    }

    .coffee-image-placeholder {
        flex-direction: row;
        gap: 8px;
    }

    .coffee-emoji {
        font-size: 2.5rem;
    }

    .coffee-modal-content {
        padding: 24px 20px;
    }

    .coffee-input-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .preset-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}