:root {
    --primary-color: #3143E1;
    --bg-color: #ffffff;
    --text-color: #111111;
    --navbar-height: 80px;
    --modal-bg: rgba(0, 0, 0, 0.85);
    --surface-soft: #f5f7ff;
    --border-soft: #dbe1ff;
    --success-color: #1f8f5f;
    --warning-color: #9b5d13;
    --error-color: #c0392b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background-color: white;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 18px;
}

.logo-box {
    background-color: #000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.logo {
    height: 24px;
    width: auto;
}

.nav-right {
    justify-content: flex-end;
}

.main-nav a, .nav-right a, .nav-right button {
    text-decoration: none;
    color: #111;
    padding: 12px 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
}

.main-nav a.active { background-color: #111; color: white; }
.main-nav a:hover:not(.active), .nav-right a:hover:not(.login-btn), .nav-right button:hover:not(.login-btn) { background-color: #f0f0f0; }

.nav-auth-link,
.logout-btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

.login-btn {
    background-color: var(--primary-color);
    color: white !important;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.user-email {
    max-width: 220px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: #eef1ff;
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: 999px;
}

/* Hero Header */
.hero-header {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-header h1 {
    font-size: 84px;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 32px;
    color: #111;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cat-btn {
    background-color: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #111;
}

.cat-btn:hover {
    background-color: #f0f0f0;
}

.cat-btn.active {
    background-color: #111;
    color: white;
}

/* Grid */
.container { padding: 0 20px 40px; }
.auth-shell {
    padding: 0 20px 20px;
}

.auth-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    color: #1d2558;
    font-size: 14px;
    font-weight: 600;
}

.auth-banner.success {
    background: #edf9f2;
    border-color: #b7e4c9;
    color: var(--success-color);
}

.auth-banner.warning {
    background: #fff7eb;
    border-color: #f4d3a3;
    color: var(--warning-color);
}

.masonry-grid {
    column-count: 5;
    column-gap: 16px;
}

@media (max-width: 1600px) { .masonry-grid { column-count: 4; } }
@media (max-width: 1200px) { .masonry-grid { column-count: 3; } }
@media (max-width: 800px) { .masonry-grid { column-count: 2; } }
@media (max-width: 500px) { .masonry-grid { column-count: 1; } }

.pin-card {
    break-inside: avoid;
    margin-bottom: 16px;
    cursor: pointer;
}

.pin-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #efefef;
}

.pin-media video {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.pin-card:hover .pin-media video {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.pin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.pin-card:hover .pin-overlay { opacity: 1; }

.save-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
}

.pin-info { padding: 8px 4px; font-size: 14px; font-weight: 600; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5vh auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
}

.auth-modal-content {
    max-width: 960px;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

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

.close-modal {
    position: absolute;
    right: 24px;
    top: 16px;
    font-size: 30px;
    font-weight: bold;
    color: #111;
    cursor: pointer;
    z-index: 10;
}

.close-auth-modal {
    position: absolute;
    right: 20px;
    top: 16px;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    z-index: 5;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.auth-modal-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(250px, 0.78fr);
    min-height: 640px;
}

.modal-video-side {
    flex: 1;
    min-width: 420px;
    background-color: #000;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
}

.modal-video-side video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-side {
    flex: 1;
    min-width: 480px;
    padding: 34px 32px 36px;
    background: #f2f3f7;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-info-side h2 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
    font-weight: 800;
}

.auth-modal-left {
    padding: 28px 40px 32px;
    background: #121315;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-copy {
    padding-top: 12px;
}

.auth-brand-logo {
    width: 42px;
    height: 42px;
    display: block;
    margin-bottom: 28px;
}

.auth-copy h2 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.auth-subheading {
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.6;
    margin-bottom: 34px;
}

.auth-provider-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-provider-btn {
    width: 100%;
    min-height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.01);
    color: white;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.auth-provider-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.auth-provider-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-provider-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
}

.provider-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.provider-svg {
    width: 24px;
    height: 24px;
    display: block;
}

.google-icon {
    color: white;
}

.apple-icon {
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.email-auth-panel {
    margin-top: 16px;
}

.auth-mode-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 4px;
    width: fit-content;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.auth-mode-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.auth-mode-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 18px rgba(49, 67, 225, 0.28);
}

.auth-label {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.78);
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(49, 67, 225, 0.9);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(49, 67, 225, 0.18);
}

.auth-input:disabled,
.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.auth-helper,
.auth-message {
    font-size: 14px;
    line-height: 1.5;
}

.auth-helper {
    color: rgba(255, 255, 255, 0.45);
}

.auth-message {
    min-height: 22px;
    color: rgba(255, 255, 255, 0.72);
}

.auth-message.success {
    color: var(--success-color);
}

.auth-message.warning {
    color: var(--warning-color);
}

.auth-message.error {
    color: var(--error-color);
}

.auth-submit {
    margin-top: 4px;
    border: none;
    border-radius: 16px;
    padding: 15px 18px;
    background: var(--primary-color);
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(49, 67, 225, 0.26);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 18px 0 8px;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    position: relative;
    padding: 0 14px;
    background: #121315;
    color: rgba(255, 255, 255, 0.34);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.auth-legal {
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 13px;
    line-height: 1.6;
}

.auth-visual-panel {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #26170f;
}

.auth-visual-image,
.auth-visual-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    display: block;
}

/* Recipe Styles */
.recipe-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.recipe-summary {
    font-size: 16px;
    line-height: 1.7;
    color: #59607a;
}

.recipe-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recipe-block-header h3 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #1b2240;
}

.ingredients-list,
.recipe-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ingredient-card,
.recipe-step-card {
    background: white;
    border: 1px solid #e2e6f4;
    border-radius: 22px;
    padding: 18px 18px 20px;
    box-shadow: 0 14px 34px rgba(23, 30, 76, 0.06);
}

.ingredient-line {
    font-size: 18px;
    line-height: 1.5;
    color: #1b223e;
}

.ingredient-line strong {
    font-weight: 800;
}

.ingredient-availability,
.availability-stack {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.availability-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6d7492;
}

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

.platform-logo-link {
    text-decoration: none;
}

.platform-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    background: white;
    border: 1px solid #dbe2ff;
    box-shadow: 0 8px 18px rgba(23, 30, 76, 0.06);
}

.platform-logo-badge.compact {
    min-height: 36px;
    padding: 6px 10px;
    gap: 8px;
}

.platform-logo-label {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.platform-logo-image {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef1ff;
    border: 1px solid #dbe2ff;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

.platform-pill.compact {
    min-height: 30px;
    padding: 7px 11px;
}

.recipe-step-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recipe-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.recipe-step-number {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
}

.recipe-step-heading h4 {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #12172a;
}

.recipe-step-description {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: #515871;
}

.recipe-prompt-card {
    margin-top: 14px;
    background: linear-gradient(180deg, #f5f7fd 0%, #eef2fb 100%);
    border: 1px solid #dde3f4;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.recipe-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 10px 12px 0 18px;
}

.recipe-prompt-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7b83a4;
}

.copy-prompt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(49, 67, 225, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    color: var(--primary-color);
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(49, 67, 225, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.copy-prompt-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(49, 67, 225, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.copy-prompt-btn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 16px rgba(49, 67, 225, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.copy-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.recipe-prompt {
    font-size: 14px;
    line-height: 1.65;
    color: #32384d;
    background: transparent;
    padding: 0 18px 18px;
    white-space: pre-wrap;
}

.recipe-shot {
    position: relative;
    min-height: 220px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2c57 0%, #101631 100%);
}

.recipe-shot.has-image {
    background: #eef1f7;
    border: 1px solid #dfe4f3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.recipe-shot-image {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.recipe-shot::before,
.recipe-shot::after {
    content: "";
    position: absolute;
    inset: 0;
}

.recipe-shot::before {
    background:
        radial-gradient(circle at 30% 72%, rgba(255, 255, 255, 0.16), transparent 22%),
        radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%);
}

.recipe-shot::after {
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.3));
}

.theme-neon-street {
    background:
        linear-gradient(180deg, rgba(6, 18, 38, 0.32), rgba(6, 18, 38, 0.9)),
        linear-gradient(135deg, #0d1930 0%, #1e3158 36%, #ef4f84 100%);
}

.theme-neon-street::before {
    background:
        linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.16) 11%, transparent 12%, transparent 18%, rgba(100, 226, 255, 0.34) 19%, transparent 21%, transparent 38%, rgba(255, 91, 146, 0.34) 39%, transparent 41%, transparent 58%, rgba(160, 123, 255, 0.34) 59%, transparent 61%),
        linear-gradient(180deg, transparent 45%, rgba(155, 217, 255, 0.18) 46%, rgba(255, 255, 255, 0.06) 52%, transparent 78%),
        radial-gradient(circle at 50% 100%, rgba(116, 210, 255, 0.46), transparent 42%);
}

.theme-golden-sofa {
    background:
        linear-gradient(180deg, rgba(61, 36, 18, 0.14), rgba(24, 16, 8, 0.72)),
        linear-gradient(135deg, #f0ddbd 0%, #b67643 52%, #4e2b1b 100%);
}

.theme-golden-sofa::before {
    background:
        radial-gradient(circle at 65% 18%, rgba(255, 241, 209, 0.68), transparent 22%),
        radial-gradient(circle at 38% 72%, rgba(111, 54, 16, 0.52), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 35%);
}

.theme-cinema-closeup {
    background:
        linear-gradient(180deg, rgba(17, 10, 6, 0.2), rgba(17, 10, 6, 0.75)),
        linear-gradient(135deg, #efe1cb 0%, #ba8d5b 50%, #412318 100%);
}

.theme-cinema-closeup::before {
    background:
        radial-gradient(circle at 50% 55%, rgba(72, 40, 22, 0.58), transparent 25%),
        radial-gradient(circle at 50% 16%, rgba(255, 241, 216, 0.55), transparent 16%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 34%);
}

.theme-portrait-soft {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(170, 157, 206, 0.62)),
        linear-gradient(135deg, #f3d6cf 0%, #d8d6ef 55%, #7381b8 100%);
}

.theme-portrait-soft::before {
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 247, 245, 0.84), transparent 18%),
        radial-gradient(circle at 50% 65%, rgba(146, 101, 122, 0.3), transparent 22%);
}

.theme-abstract-gold {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 208, 104, 0.25), transparent 28%),
        linear-gradient(135deg, #100d12 0%, #422618 45%, #b97c21 100%);
}

.theme-abstract-gold::before {
    background:
        repeating-linear-gradient(120deg, transparent 0 10px, rgba(255, 205, 117, 0.12) 10px 12px),
        radial-gradient(circle at 30% 70%, rgba(255, 204, 102, 0.3), transparent 20%);
}

.theme-liquid-chrome {
    background:
        linear-gradient(135deg, #161f2f 0%, #30415d 38%, #9ac4f0 100%);
}

.theme-liquid-chrome::before {
    background:
        radial-gradient(circle at 24% 36%, rgba(255, 255, 255, 0.5), transparent 14%),
        radial-gradient(circle at 62% 72%, rgba(188, 224, 255, 0.36), transparent 16%),
        radial-gradient(circle at 68% 40%, rgba(255, 255, 255, 0.22), transparent 18%);
}

.theme-forest-cinema {
    background:
        linear-gradient(180deg, rgba(14, 26, 15, 0.16), rgba(8, 16, 10, 0.86)),
        linear-gradient(135deg, #20311f 0%, #47683f 48%, #9fb373 100%);
}

.theme-forest-cinema::before {
    background:
        radial-gradient(circle at 50% 22%, rgba(244, 224, 144, 0.46), transparent 18%),
        linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.12) 19%, transparent 21%, transparent 44%, rgba(255, 255, 255, 0.1) 45%, transparent 47%, transparent 74%, rgba(255, 255, 255, 0.08) 75%, transparent 77%),
        linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.18));
}

.theme-transform-grid {
    background:
        linear-gradient(135deg, #171425 0%, #35457f 44%, #e48db8 100%);
}

.theme-transform-grid::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.65;
}

.theme-skyline-rise {
    background:
        linear-gradient(180deg, rgba(255, 191, 132, 0.12), rgba(11, 18, 39, 0.82)),
        linear-gradient(135deg, #112142 0%, #36547d 46%, #f09062 100%);
}

.theme-skyline-rise::before {
    background:
        linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.14) 11%, transparent 12%, transparent 20%, rgba(255, 255, 255, 0.14) 21%, transparent 22%, transparent 32%, rgba(255, 255, 255, 0.14) 33%, transparent 34%),
        linear-gradient(180deg, transparent 48%, rgba(255, 214, 153, 0.22) 49%, transparent 70%);
}

.recipe-step-footer {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
}

.recipe-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: white;
    border: 1px solid #dbe1f2;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.recipe-link:hover {
    background: #eef1ff;
}

.recipe-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: 20px;
    background: #e9edfb;
    color: #1b2240;
    font-size: 16px;
}

.recipe-cost-row strong {
    font-size: 24px;
    letter-spacing: -0.03em;
}

@media (max-width: 850px) {
    .modal-body { flex-direction: column; }
    .modal-video-side, .modal-info-side { min-width: 100%; }
    .modal-video-side {
        height: 320px;
        position: relative;
    }
    .modal-info-side {
        padding: 28px 22px 30px;
    }
    .modal-info-side h2 {
        font-size: 32px;
    }
    .auth-modal-shell {
        grid-template-columns: 1fr;
    }
    .auth-modal-left {
        padding: 24px 22px 28px;
    }
    .auth-visual-panel {
        min-height: 300px;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: auto;
        align-items: flex-start;
        gap: 16px;
        padding: 18px 20px;
        flex-direction: column;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .user-menu {
        width: 100%;
        justify-content: space-between;
        padding-left: 0;
    }

    .hero-header h1 {
        font-size: 58px;
        letter-spacing: -2px;
    }

    .auth-modal-content {
        width: calc(100% - 24px);
    }

    .brand-mark {
        margin-right: 0;
    }

}

@media (max-width: 500px) {
    .main-nav {
        display: none;
    }

    .hero-header {
        padding-top: 36px;
    }

    .hero-header h1 {
        font-size: 42px;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-right button {
        width: 100%;
    }

    .auth-provider-btn {
        min-height: 58px;
        padding: 14px 16px;
    }

    .auth-copy h2 {
        font-size: 24px;
    }

    .auth-subheading {
        margin-bottom: 26px;
    }

    .auth-visual-panel {
        min-height: 300px;
    }

    .recipe-step-heading {
        flex-direction: column;
        gap: 4px;
    }

    .recipe-step-card,
    .ingredient-card {
        padding: 16px;
    }

    .recipe-shot {
        min-height: 180px;
    }

    .recipe-cost-row strong {
        font-size: 20px;
    }
}
