:root {
    --gold-1: #d4af77;
    --gold-2: #b89968;
    --rose: #b76e79;
    --rose-soft: #fdf1f3;
    --ink: #262228;
    --muted: #7c7681;
    --surface: #fffdf9;
    --line: #efe4d5;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 480px at 15% -10%, #fff7e7 20%, transparent 70%),
        radial-gradient(700px 380px at 90% -15%, #ffeef1 15%, transparent 65%),
        #f7f2ea;
    -webkit-text-size-adjust: 100%;
}

.app-shell {
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    box-shadow: 0 18px 48px rgba(35, 27, 22, 0.16);
}

.flash {
    margin: 12px 12px 0;
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.flash.success { background: #edfff6; color: #13663d; border-color: #a9e8c8; }
.flash.error { background: #fff2f4; color: #9a2042; border-color: #f6bcc8; }

.landing {
    background: url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 12, 9, 0.18), rgba(20, 12, 9, 0.78));
}

.landing .content {
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 24px;
}

h1, h2, h3 {
    font-family: "Cormorant Garamond", serif;
    margin: 0 0 8px;
    letter-spacing: 0.2px;
}

h1 { font-size: 3.2rem; text-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.date, .subtitle { margin: 0 0 14px; }

.cta,
.primary {
    display: inline-block;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-1));
    box-shadow: 0 10px 22px rgba(184, 153, 104, 0.35);
}

.app-screen { padding: 18px 14px 102px; }

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.top-header h2 {
    font-size: 2rem;
}

.mini-btn {
    border: none;
    border-radius: 999px;
    color: #fff;
    padding: 9px 14px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose), #cd8793);
    box-shadow: 0 8px 18px rgba(183, 110, 121, 0.3);
}

.feed, .list { display: grid; gap: 14px; }

.card {
    border-radius: 20px;
    padding: 15px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 12px 26px rgba(44, 35, 29, 0.08);
}

.card h3 { font-size: 1.45rem; }
.card p { line-height: 1.45; }

.card img,
.card video {
    width: 100%;
    display: block;
    margin-top: 10px;
    border-radius: 14px;
    max-height: 370px;
    object-fit: cover;
    background: #111;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-1), var(--rose));
}

.card-body { margin-top: 10px; }

.like-row {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.like-form { margin: 0; }

.like-btn {
    border: 1px solid #f4ced6;
    background: var(--rose-soft);
    color: #a63c53;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
}

.card ul {
    margin: 10px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}

.search-box { display: grid; gap: 8px; margin-bottom: 12px; }

.search-box input,
.search-box button,
textarea,
input[type="file"],
.upload-form input[type="text"],
.upload-form input[type="password"],
.upload-form input[type="number"],
.upload-form input[type="url"] {
    width: 100%;
    border: 1px solid #e7ddcf;
    border-radius: 13px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 16px;
    background: #fff;
}

input,
textarea,
select,
button {
    font-size: 16px;
}

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

.search-box button {
    border: none;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-1));
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: min(430px, 100%);
    padding: 10px 10px 17px;
    border-top: 1px solid #eadfce;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    box-shadow: 0 -12px 28px rgba(30, 20, 10, 0.08);
}

.bottom-nav a {
    text-decoration: none;
    color: var(--muted);
    border-radius: 14px;
    padding: 8px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.nav-icon { width: 21px; height: 21px; }
.nav-label { font-size: 0.74rem; }

.bottom-nav .active {
    background: linear-gradient(180deg, #fff4df, #ffe7bf);
    color: #947242;
    box-shadow: 0 8px 16px rgba(184, 153, 104, 0.25);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 8, 5, 0.5);
    display: grid;
    place-items: end center;
    padding: 16px;
}

.hidden { display: none; }

.modal-card {
    width: min(430px, 100%);
    border-radius: 22px 22px 0 0;
    background: #fff;
    border: 1px solid #efdfca;
    padding: 14px;
    box-shadow: 0 -8px 24px rgba(30, 20, 10, 0.16);
}

.modal-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.modal-actions button {
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    border: 1px solid #e8ddce;
    background: #fff;
}

.modal-actions .primary {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-1));
    box-shadow: 0 8px 16px rgba(184, 153, 104, 0.3);
}

.text-link {
    color: var(--rose);
    text-decoration: none;
    font-weight: 700;
}

.map-frame {
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e7ddcf;
    box-shadow: 0 10px 20px rgba(44, 35, 29, 0.08);
}

.map-frame iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

.inline-form {
    display: inline-block;
    margin-left: 8px;
}

.inline-form button {
    border: 1px solid #e7ddcf;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
}
