/* =========================================================
   Venidai — TAKE YOUR TIME
   Main Stylesheet
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

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


/* =========================================================
   BODY
   ========================================================= */

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #f7f4ee;
    color: #252525;
    line-height: 1.6;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    width: 100%;

    padding: 20px 35px;

    display: flex;

    align-items: center;

    background: #f7f4ee;

    border-bottom: 1px solid #d8d2c7;

}

.logo {

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.35rem;

    font-weight: normal;

    letter-spacing: 0.12em;

}



.site-header nav {

    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 22px;

}

.site-header nav a {

    text-decoration: none;

    color: #555;

    font-size: 0.85rem;

}

.site-header nav a:hover {

    color: #202020;

    text-decoration: none;

}


/* =========================================================
   DASHBOARD HEADER — GIFT HEART
   ========================================================= */

.gift-heart {

    border: none;

    background: none;

    padding: 0;

    margin: 0;

    color: #b8b3aa;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.25rem;

    line-height: 1;

    cursor: pointer;

    transition: color 0.2s ease;

}

.gift-heart:hover {

    color: #252525;

}

.gift-heart.has-new-gift {

    color: #9f2f2f;

}

.gift-heart.has-new-gift:hover {

    color: #7f2020;

}


@media (max-width: 600px) {

    .gift-heart {

        font-size: 1.15rem;

    }

}

/* =========================================================
   GENERAL
   ========================================================= */

main {
    width: 100%;
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #777;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-block;
    padding: 13px 25px;
    text-decoration: none;
    border: 1px solid #333;
    transition: 0.2s ease;
}

.button.primary {
    background: #252525;
    color: white;
}

.button.primary:hover {
    background: #444;
}

.button.secondary {
    color: #252525;
    background: transparent;
}

.button.secondary:hover {
    background: #e9e4da;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    border-bottom: 1px solid #d8d2c7;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: normal;
    line-height: 1;
    margin: 20px 0;
    letter-spacing: -2px;
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 35px;
    color: #666;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how-it-works {
    padding: 100px 7%;
    border-bottom: 1px solid #d8d2c7;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 3rem;
    font-weight: normal;
    line-height: 1.2;
    margin-top: 15px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.step {
    border-top: 1px solid #999;
    padding-top: 20px;
}

.step-number {
    font-size: 0.8rem;
    color: #777;
    letter-spacing: 2px;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 15px 0 10px;
}

.step p {
    color: #666;
    max-width: 320px;
}


/* =========================================================
   CLOSING SECTION
   ========================================================= */

.closing {
    text-align: center;
    padding: 120px 20px;
}

.closing h2 {
    font-size: 3rem;
    font-weight: normal;
    line-height: 1.2;
    max-width: 700px;
    margin: 20px auto 35px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid #d8d2c7;
    padding: 35px 7%;
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.85rem;
}


/* =========================================================
   ACCOUNT / REGISTRATION PAGE
   ========================================================= */

.account-page {
    min-height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.account-container {
    width: 100%;
    max-width: 520px;
}

.account-container h1 {
    font-size: 3.5rem;
    font-weight: normal;
    line-height: 1.1;
    margin: 18px 0 15px;
}

.account-introduction {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 45px;
}


/* =========================================================
   GENERAL FORM FIELDS
   ========================================================= */

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #bbb;
    background: #fbf9f5;
    color: #252525;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus {
    border-color: #555;
}

.form-group input::placeholder {
    color: #999;
}

.field-note {
    margin-top: 7px;
    font-size: 0.8rem;
    color: #888;
}

.privacy-note {
    border-top: 1px solid #d8d2c7;
    border-bottom: 1px solid #d8d2c7;
    padding: 18px 0;
    margin: 35px 0;
}

.privacy-note p {
    font-size: 0.85rem;
    color: #777;
}

.account-button {
    width: 100%;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.account-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #777;
}

.account-footer-text a {
    color: #252525;
    text-decoration: underline;
}


/* =========================================================
   PASSWORD FIELDS
   ========================================================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #777;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

.password-toggle:hover {
    color: #252525;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-options {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 28px;
}

.login-options a {
    color: #777;
    font-size: 0.85rem;
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}


/* =========================================================
   DASHBOARD PAGE
   ========================================================= */

.dashboard-page {
    min-height: 650px;
    padding: 90px 20px 100px;
}

.dashboard-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.dashboard-container h1 {
    font-size: 3.8rem;
    font-weight: normal;
    line-height: 1.1;
    margin: 18px 0 15px;
}

.dashboard-introduction {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 55px;
    line-height: 1.6;
}


/* =========================================================
   OLD DASHBOARD CARD SUPPORT
   ========================================================= */

.dashboard-card {
    border-top: 1px solid #d8d2c7;
    padding: 32px 0;
}

.dashboard-card:last-child {
    border-bottom: 1px solid #d8d2c7;
}

.dashboard-card h2 {
    font-size: 1.55rem;
    font-weight: normal;
    line-height: 1.4;
    margin: 0 0 10px;
}

.dashboard-card:nth-of-type(2) h2 {
    font-size: 2rem;
    letter-spacing: 0.02em;
}


/* =========================================================
   DASHBOARD LABELS / NOTES
   ========================================================= */

.dashboard-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #8a857d;
    margin-bottom: 12px;
}

.dashboard-note {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
}

.dashboard-button {
    display: inline-block;
    margin-top: 20px;
}


/* =========================================================
   FOUR-PANEL DASHBOARD
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #d8d2c7;
    background: #fbf9f5;
    margin-top: 28px;
}

.dashboard-panel {
    min-height: 245px;
    padding: 35px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.dashboard-panel:hover {
    background: #f7f4ee;
}
/* =========================================================
   YOUR CORRESPONDENCE — TOP ALIGNMENT
   ========================================================= */

.dashboard-panel:nth-child(4) {

    justify-content: flex-start;

}

/* ---------------------------------------------------------
   PANEL DIVIDING LINES
   --------------------------------------------------------- */

.dashboard-panel:nth-child(1),
.dashboard-panel:nth-child(2) {
    border-bottom: 1px solid #d8d2c7;
}

.dashboard-panel:nth-child(1),
.dashboard-panel:nth-child(3) {
    border-right: 1px solid #d8d2c7;
}


/* ---------------------------------------------------------
   PANEL LABEL
   --------------------------------------------------------- */

.dashboard-panel .dashboard-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #8a857d;
    margin: 0 0 14px;
}


/* ---------------------------------------------------------
   PANEL HEADINGS
   --------------------------------------------------------- */

.dashboard-panel h2 {
    font-size: 1.6rem;
    font-weight: normal;
    line-height: 1.35;
    color: #252525;
    margin: 0 0 12px;
}


/* ---------------------------------------------------------
   BOX NUMBER
   --------------------------------------------------------- */

.dashboard-panel .dashboard-box-number {
    font-size: 2.1rem;
    letter-spacing: 0.02em;
}


/* ---------------------------------------------------------
   PANEL DESCRIPTION
   --------------------------------------------------------- */

.dashboard-panel .dashboard-note {
    color: #777;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}


/* ---------------------------------------------------------
   PANEL BUTTONS
   --------------------------------------------------------- */

.dashboard-panel .dashboard-button {
    align-self: flex-start;
    margin-top: 22px;
    text-decoration: none;
}


/* =========================================================
   DASHBOARD IDENTITY
   ========================================================= */

.dashboard-identity {
    margin-top: 45px;
    margin-bottom: 0;
    text-align: center;
}

.dashboard-identity .dashboard-label {
    margin-bottom: 8px;
}

.dashboard-identity h2 {
    font-size: 1.45rem;
    font-weight: normal;
    margin: 0;
    color: #252525;
}


/* =========================================================
   SEND A GIFT POPUP
   ========================================================= */

.gift-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(37, 37, 37, 0.35);
    z-index: 1000;
}

.gift-modal.active {
    display: flex;
}

.gift-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 42px;
    background: #f7f4ee;
    border: 1px solid #d8d2c7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.gift-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    cursor: pointer;
}

.gift-modal-close:hover {
    color: #252525;
}

.gift-modal-content h2 {
    font-size: 2rem;
    font-weight: normal;
    margin: 5px 0 10px;
}

.gift-modal-introduction {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 30px;
}


/* ---------------------------------------------------------
   GIFT FORM
   --------------------------------------------------------- */

.gift-form-group {
    margin-bottom: 28px;
}

.gift-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.gift-form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #bbb;
    background: #fbf9f5;
    color: #252525;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    outline: none;
}

.gift-form-group input:focus {
    border-color: #555;
}


/* ---------------------------------------------------------
   GIFT OPTIONS
   --------------------------------------------------------- */

.gift-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gift-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid #d8d2c7;
    background: #fbf9f5;
    color: #252525;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
}

.gift-option:hover {
    background: #e9e4da;
}

.gift-option.selected {
    border-color: #555;
    background: #e9e4da;
}

.gift-option strong {
    font-weight: normal;
}

.gift-option-icon {
    font-size: 1.35rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.gift-option-name {
    flex: 1;
}


/* ---------------------------------------------------------
   GIFT SELECTION
   --------------------------------------------------------- */

.gift-selection {
    border-top: 1px solid #d8d2c7;
    border-bottom: 1px solid #d8d2c7;
    padding: 15px 0;
    margin-bottom: 25px;
    color: #777;
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   GIFT ACTIONS
   --------------------------------------------------------- */

.gift-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.gift-cancel-button {
    border: none;
    background: none;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.gift-cancel-button:hover {
    color: #252525;
    text-decoration: underline;
}

#continueGiftButton:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   SEND A GIFT BUTTON
   --------------------------------------------------------- */

#openGiftButton {
    background: #8f2f2f;
    border-color: #8f2f2f;
    color: #fff;
}

#openGiftButton:hover {
    background: #742424;
    border-color: #742424;
}


/* =========================================================
   GIFTS RECEIVED POPUP
   ========================================================= */

.received-gifts-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(37, 37, 37, 0.35);
    z-index: 1001;
}

.received-gifts-modal.active {
    display: flex;
}

.received-gifts-modal-content {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    background: #f7f4ee;
    border: 1px solid #d8d2c7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.received-gifts-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    cursor: pointer;
}

.received-gifts-modal-close:hover {
    color: #252525;
}

.received-gifts-modal-content h2 {
    font-size: 2.1rem;
    font-weight: normal;
    margin: 5px 0 10px;
}

.received-gifts-introduction {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 32px;
}


/* ---------------------------------------------------------
   RECEIVED GIFTS LIST
   --------------------------------------------------------- */

.received-gifts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.received-gift-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 20px;
    padding: 20px 22px;
    background: #fbf9f5;
    border: 1px solid #d8d2c7;
}

.received-gift-item strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: normal;
}

.received-gift-item span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.received-gift-item small {
    grid-column: 1 / -1;
    color: #777;
    font-size: 0.82rem;
}

.received-gifts-loading {
    color: #777;
    font-size: 0.95rem;
    padding: 20px 0;
}


/* ---------------------------------------------------------
   VIEW GIFTS BUTTON
   --------------------------------------------------------- */

#viewGiftsButton {
    background: #9b1a8e;
    color: #ffffff;
    border-color: #9b1a8e;
}

#viewGiftsButton:hover {
    background: #df7ec7;
    border-color: #df7ec7;
}

/* =========================================================
   GIFT HEART NOTIFICATION
   ========================================================= */

.gift-heart {
    border: none;
    background: none;
    padding: 0;
    margin: 0 18px 0 0;
    color: #b8b3aa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gift-heart.has-new-gift {
    color: #9f2f2f;
}

.gift-heart:hover {
    color: #252525;
}

.gift-heart.has-new-gift:hover {
    color: #7f2020;
}


/* =========================================================
   CREATE ADVERTISEMENT POPUP
   ========================================================= */

.advertisement-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(37, 37, 37, 0.35);
    z-index: 1000;
}

.advertisement-modal.active {
    display: flex;
}

.advertisement-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 94vh;
    overflow-y: auto;
    padding: 42px;
    background: #f7f4ee;
    border: 1px solid #d8d2c7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.advertisement-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    cursor: pointer;
}

.advertisement-modal-close:hover {
    color: #252525;
}

.advertisement-modal-content h2 {
    font-size: 2rem;
    font-weight: normal;
    margin: 5px 0 10px;
}

.advertisement-introduction {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.advertisement-modal-content > .dashboard-label,
.advertisement-modal-content > h2,
.advertisement-modal-content > .advertisement-introduction {
    text-align: center;
}


/* ---------------------------------------------------------
   ADVERTISEMENT WRITING LAYOUT
   --------------------------------------------------------- */

.advertisement-writing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: start;
}


/* ---------------------------------------------------------
   ADVERTISEMENT INPUTS
   --------------------------------------------------------- */

.advertisement-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advertisement-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.advertisement-line > span {
    width: 20px;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

.advertisement-input {
    flex: 1;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #bbb;
    background: #fbf9f5;
    color: #252525;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    outline: none;
}

.advertisement-input:focus {
    border-color: #555;
}

.advertisement-input::placeholder {
    color: #999;
}

.advertisement-limit {
    margin-top: 12px;
    color: #999;
    font-size: 0.8rem;
}


/* ---------------------------------------------------------
   ADVERTISEMENT EXAMPLE
   --------------------------------------------------------- */

.advertisement-example {
    padding: 28px 25px;
    border: 1px solid #c8c0b2;
    background: #f1ede4;
}

.advertisement-example-title {
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    color: #250505;
    margin-bottom: 15px;
}

.advertisement-example-ad {
    border-top: 1px solid #9d9588;
    border-bottom: 1px solid #9d9588;
    padding: 20px 10px;
    text-align: center;
}

.advertisement-example-box {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.advertisement-example-lines {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #252525;
}

.advertisement-example-lines p {
    margin: 0;
}

.advertisement-example-footer {
    margin-top: 18px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #777;
}


/* ---------------------------------------------------------
   ADVERTISEMENT ACTIONS
   --------------------------------------------------------- */

.advertisement-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.advertisement-cancel-button {
    border: none;
    background: none;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.advertisement-cancel-button:hover {
    color: #252525;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   CREATE ADVERTISEMENT BUTTON
   --------------------------------------------------------- */

#openAdvertisementButton {
    background: #8f2f2f;
    border-color: #8f2f2f;
    color: #fff;
}

#openAdvertisementButton:hover {
    background: #742424;
    border-color: #742424;
}


/* =========================================================
   ADVERTISEMENT PREVIEW
   ========================================================= */

.advertisement-preview-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(37, 37, 37, 0.45);
    z-index: 1100;
}

.advertisement-preview-modal.active {
    display: flex;
}

.advertisement-preview-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 55px 40px;
    background: #f4f0e7;
    border: 1px solid #bdb5a7;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.advertisement-preview-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    cursor: pointer;
}

.advertisement-preview-close:hover {
    color: #252525;
}

.advertisement-preview-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    letter-spacing: 5px;
    font-weight: bold;
    color: #252525;
}

.advertisement-preview-subtitle {
    margin: 7px 0 22px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #777;
}

.advertisement-preview-rule {
    width: 100%;
    border-top: 1px solid #9d9588;
    margin: 18px 0;
}

.advertisement-preview-identity {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: #777;
    text-transform: uppercase;
}

.advertisement-preview-lines {
    margin: 30px auto;
    max-width: 480px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #252525;
}

.advertisement-preview-lines p {
    margin: 0;
}

.advertisement-preview-footer {
    margin: 22px 0 0;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #777;
}

.advertisement-preview-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 35px;
}







/* =========================================================
   DELETE Venidai MEMBERSHIP
   ========================================================= */

.delete-membership-link {
    border: none;
    background: none;
    padding: 0;
    margin-left: 20px;
    color: #999;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    cursor: pointer;
}

.delete-membership-link:hover {
    color: #8f4f55;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   DELETE MEMBERSHIP POPUP
   --------------------------------------------------------- */

.delete-membership-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(37, 37, 37, 0.35);
    z-index: 1100;
}

.delete-membership-modal.active {
    display: flex;
}

.delete-membership-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 45px;
    background: #f7f4ee;
    border: 1px solid #d8d2c7;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.delete-membership-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    color: #777;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    cursor: pointer;
}

.delete-membership-modal-close:hover {
    color: #252525;
}

.delete-membership-modal-content h2 {
    font-size: 2rem;
    font-weight: normal;
    margin: 5px 0 15px;
}

.delete-membership-introduction {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.delete-membership-warning {
    color: #8f4f55;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.delete-membership-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.delete-membership-cancel {
    padding: 11px 18px;
    border: 1px solid #bbb;
    background: transparent;
    color: #555;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.delete-membership-cancel:hover {
    border-color: #777;
    color: #252525;
}

.delete-membership-confirm {
    padding: 11px 18px;
    border: 1px solid #9f6269;
    background: #b8757c;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.delete-membership-confirm:hover {
    border-color: #7f2020;
    background: #9f6269;
}


/* =========================================================
   BROWSE PAGE
   ========================================================= */

.browse-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 30px 90px;

    /*
       Browse has its own atmosphere.
       The advertisements themselves remain
       vintage paper colors.
    */
    background: #f1c7f1;
}


/* ---------------------------------------------------------
   BROWSE INTRODUCTION
   --------------------------------------------------------- */

.browse-introduction {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.browse-introduction h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: normal;
    margin: 8px 0 18px;
}

.browse-introduction > p:last-child {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}


/* ---------------------------------------------------------
   BROWSE SEARCH
   --------------------------------------------------------- */

.browse-search {
    display: flex;
    justify-content: center;
    margin: -25px auto 55px;
}

.browse-search-box {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.browse-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b877f;
    font-size: 1.05rem;
    pointer-events: none;
}

.browse-search-box input {
    width: 100%;
    padding: 13px 18px 13px 45px;
    background: #fbf9f5;
    border: 1px solid #d8d2c7;
    color: #252525;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.browse-search-box input::placeholder {
    color: #999;
}

.browse-search-box input:focus {
    border-color: #aaa39a;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}


/* ---------------------------------------------------------
   ADVERTISEMENT GRID
   --------------------------------------------------------- */

.advertisements-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* ---------------------------------------------------------
   BASIC ADVERTISEMENT
   --------------------------------------------------------- */

.browse-advertisement {
    position: relative;
    padding: 34px 36px 30px;
    background: #fbf9f5;
    border: 1px solid #d8d2c7;
    min-height: 300px;
    display: flex;
    flex-direction: column;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.browse-advertisement:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   BOX NUMBER
   --------------------------------------------------------- */

.browse-box-number {
    margin: 0 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
}


/* ---------------------------------------------------------
   ADVERTISEMENT TEXT
   --------------------------------------------------------- */

.browse-advertisement-lines {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #252525;
}

.browse-advertisement-lines p {
    margin: 0;
}


/* ---------------------------------------------------------
   ADVERTISEMENT ACTIONS
   --------------------------------------------------------- */

.browse-advertisement-actions {
    margin-top: auto;
    padding-top: 28px;
}

.browse-letter-button {
    font-size: 0.82rem;
    padding: 9px 17px;
}


/* =========================================================
   BROWSE — NEWSPAPER STYLE
   ========================================================= */

.browse-style-newspaper {
    background: #f7f4ee;
    border-top: 3px double #bdb6aa;
    border-bottom: 3px double #bdb6aa;
    border-left: none;
    border-right: none;
}

.browse-style-newspaper .browse-box-number {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: #555;
}

.browse-style-newspaper .browse-advertisement-lines {
    font-size: 1rem;
    line-height: 1.75;
}


/* =========================================================
   BROWSE — LETTER STYLE
   ========================================================= */

.browse-style-letter {
    background: #fcfaf6;
    padding: 40px 42px 32px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.035);
}

.browse-letter-greeting {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #555;
}

.browse-style-letter .browse-advertisement-lines {
    font-size: 1rem;
    line-height: 1.75;
}


/* =========================================================
   BROWSE — VINTAGE CARD STYLE
   ========================================================= */

.browse-style-vintage {
    background: #f3eee5;
    border: 1px solid #cfc5b5;
    outline: 1px solid #ded6c9;
    outline-offset: -7px;
    padding: 42px;
    text-align: center;
}

.browse-style-vintage .browse-box-number {
    margin-bottom: 30px;
    letter-spacing: 0.18em;
}

.browse-vintage-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.browse-vintage-content p {
    margin: 0;
}


/* =========================================================
   BROWSE — SIMPLE STYLE
   ========================================================= */

.browse-style-simple {
    background: transparent;
    border: none;
    border-top: 1px solid #d8d2c7;
    border-bottom: 1px solid #d8d2c7;
    padding-left: 10px;
    padding-right: 10px;
}

.browse-style-simple .browse-box-number {
    color: #999;
}

.browse-style-simple .browse-advertisement-lines {
    font-size: 1.02rem;
}


/* ---------------------------------------------------------
   HIDDEN SEARCH RESULTS
   --------------------------------------------------------- */

.browse-advertisement.search-hidden {
    display: none;
}


/* =========================================================
   MOBILE — GENERAL
   ========================================================= */

@media (max-width: 700px) {

    .site-header {
        flex-direction: column;
        gap: 20px;
    }

    .site-header nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 550px;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-heading h2,
    .closing h2 {
        font-size: 2.3rem;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-page {
        padding: 65px 20px 80px;
    }

    .dashboard-container h1 {
        font-size: 2.8rem;
    }

    .dashboard-introduction {
        margin-bottom: 40px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel {
        min-height: 210px;
        padding: 30px 26px;
    }

    .dashboard-panel:nth-child(1),
    .dashboard-panel:nth-child(2) {
        border-bottom: 1px solid #d8d2c7;
    }

    .dashboard-panel:nth-child(1),
    .dashboard-panel:nth-child(3) {
        border-right: none;
    }

    .dashboard-panel:nth-child(3) {
        border-bottom: 1px solid #d8d2c7;
    }

    .browse-page {
        padding: 50px 20px 70px;
    }

    .browse-introduction {
        margin-bottom: 45px;
    }

    .browse-introduction h1 {
        font-size: 2rem;
    }
}


/* =========================================================
   MOBILE — BROWSE GRID
   ========================================================= */

@media (max-width: 900px) {

    .advertisements-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE — BROWSE SEARCH
   ========================================================= */

@media (max-width: 600px) {

    .browse-search {
        margin-top: -15px;
        margin-bottom: 40px;
    }

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

    .browse-advertisement {
        min-height: auto;
        padding: 30px 28px;
    }

    .gift-heart {
        margin-right: 12px;
        font-size: 1.15rem;
    }

    .gift-modal-content {
        padding: 32px 25px;
    }

    .gift-options {
        grid-template-columns: 1fr;
    }

    .gift-modal-actions {
        justify-content: space-between;
    }

    .received-gifts-modal {
        padding: 15px;
    }

    .received-gifts-modal-content {
        padding: 35px 25px;
    }

    .received-gifts-modal-content h2 {
        font-size: 1.8rem;
    }

    .received-gift-item {
        padding: 16px;
    }

    .advertisement-modal-content {
        padding: 32px 25px;
    }

    .advertisement-modal-actions {
        justify-content: space-between;
    }

    .advertisement-preview-content {
        padding: 40px 25px 30px;
    }

    .advertisement-preview-title {
        font-size: 2rem;
    }

    .advertisement-preview-lines {
        font-size: 1rem;
    }

    .advertisement-preview-identity {
        flex-direction: column;
        gap: 5px;
    }

    .delete-membership-modal {
        padding: 15px;
    }

    .delete-membership-modal-content {
        padding: 35px 25px;
    }

    .delete-membership-modal-content h2 {
        font-size: 1.75rem;
    }

    .delete-membership-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-membership-cancel,
    .delete-membership-confirm {
        width: 100%;
    }
}


/* =========================================================
   MOBILE — ADVERTISEMENT WRITING
   ========================================================= */

@media (max-width: 750px) {

    .advertisement-writing-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================================
   BROWSE ADVERTISEMENT HOVER EFFECT
   ========================================================= */

.browse-advertisement {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.browse-advertisement:hover {
    transform: translateY(-4px);

    border-color: #9f6269;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.10);
}


/* =====================================================
   ADVERTISEMENT DETAILS
   ===================================================== */

.advertisement-details {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #d8d2c7;
}


.advertisement-detail-fields {
    display: grid;
    grid-template-columns: 0.7fr 1fr 1.3fr;
    gap: 14px;
}


.advertisement-detail-field {
    display: flex;
    flex-direction: column;
}


.advertisement-detail-field > label {
    margin-bottom: 5px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #777;
}


/* Age and Country */

.advertisement-detail-field input[type="number"],
.advertisement-detail-field input[type="text"] {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #d8d2c7;
    background: #faf8f3;
    color: #333;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    outline: none;
    box-sizing: border-box;
}


.advertisement-detail-field input[type="number"]:focus,
.advertisement-detail-field input[type="text"]:focus {
    border-color: #9d9488;
    background: #fffdf9;
}


/* Birth sex */

.advertisement-sex-options {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 31px;
}


.advertisement-sex-options label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #555;
    cursor: pointer;
}


.advertisement-sex-options input[type="radio"] {
    accent-color: #555;
    cursor: pointer;
}


/* Public visibility option */

.advertisement-public-option {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    font-size: 0.72rem;
    color: #777;
    cursor: pointer;
}


.advertisement-public-option input[type="checkbox"] {
    accent-color: #555;
    cursor: pointer;
}


/* Mobile */

@media (max-width: 700px) {

    .advertisement-detail-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .advertisement-sex-options {
        min-height: auto;
    }

}

/* Space around advertisement basic information */

.dashboard-advertisement-basic-info {
    margin-top: 14px;
    margin-bottom: 14px;
}


/* =====================================================
   RECEIVED LETTERS — MAIN POPUP
   ===================================================== */

.received-letters-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(25, 25, 25, 0.48);
}

.received-letters-modal.active {
    display: flex;
}


/* =====================================================
   RECEIVED LETTERS — LARGE CORRESPONDENCE WINDOW
   ===================================================== */

.received-letters-modal-content {

    position: relative;

    width: min(900px, 92vw);

    height: min(82vh, 850px);

    max-height: 82vh;

    padding: 42px 48px 45px;

    background: #f7f4ee;

    border: 1px solid #c9c1b6;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.18);

    overflow-y: auto;

    box-sizing: border-box;

}

/* =====================================================
   CORRESPONDENCE BOX LIST
   ===================================================== */

.received-letters-list {

    margin-top: 28px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}

/* =====================================================
   BOX INBOX ROWS
   ===================================================== */

.received-letter-list-item {

    width: 100%;

    min-height: 48px;

    padding: 10px 16px;

    display: flex;

    align-items: center;

    gap: 15px;

    border: 1px solid #d8d2c7;

    background: #fbf9f5;

    color: #333;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.9rem;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;

}

.received-letter-list-item:hover {

    background: #f1ede6;

    border-color: #bdb5aa;

}

/* =====================================================
   CLOSE BUTTON
   ===================================================== */

.received-letters-modal-close {
    position: absolute;

    top: 14px;
    right: 18px;

    border: none;
    background: none;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.7rem;

    font-weight: normal;

    color: #777;

    cursor: pointer;
}

.received-letters-modal-close:hover {
    color: #222;
}


/* =====================================================
   INTRODUCTION
   ===================================================== */

.received-letters-introduction {
    margin-top: 8px;
    margin-bottom: 25px;

    color: #666;

    font-size: 0.9rem;
}


/* =====================================================
   LETTER LIST
   ===================================================== */

.received-letters-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* =====================================================
   LOADING / EMPTY MESSAGE
   ===================================================== */

.received-letters-loading {
    margin: 25px 0;

    text-align: center;

    color: #777;

    font-size: 0.9rem;
}


/* =====================================================
   INDIVIDUAL LETTER INBOX ROW
   ===================================================== */

.received-letter-list-item {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 17px 20px;

    background: #fbfaf7;

    border: 1px solid #d2ccc4;

    cursor: pointer;

    text-align: left;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.received-letter-list-item:hover {
    background: #f3efe8;

    border-color: #aaa39a;
}


/* =====================================================
   ENVELOPE SYMBOL IN LIST
   ===================================================== */

.received-letter-list-envelope {
    width: 34px;

    flex-shrink: 0;

    font-size: 1.25rem;

    color: #777;

    text-align: center;
}


/* =====================================================
   BOX INFORMATION
   ===================================================== */

.received-letter-list-info {
    flex: 1;
}

.received-letter-list-from {
    font-size: 0.98rem;

    color: #333;

    margin-bottom: 4px;
}

.received-letter-list-date {
    font-size: 0.72rem;

    color: #777;

    letter-spacing: 0.03em;
}


/* =====================================================
   LITTLE ARROW
   ===================================================== */

.received-letter-list-arrow {
    flex-shrink: 0;

    font-size: 1rem;

    color: #aaa;
}


/* =====================================================
   ENVELOPE OPENING SCENE
   ===================================================== */

.letter-opening-scene {
    min-height: 430px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


/* =====================================================
   ENVELOPE
   ===================================================== */

.letter-envelope {
    position: relative;

    width: 270px;
    height: 175px;

    margin-bottom: 25px;

    background: #eee9df;

    border: 1px solid #aaa39a;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    animation:
        envelope-arrive 0.5s ease both;
}


/* Envelope flap */

.letter-envelope-flap {
    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 0;

    border-left:
        134px solid transparent;

    border-right:
        134px solid transparent;

    border-top:
        82px solid #ddd6ca;

    transform-origin: top center;

    z-index: 3;

    animation:
        envelope-flap-open 1.4s
        ease-in-out
        0.7s
        forwards;
}


/* Envelope bottom folds */

.letter-envelope::before {
    content: "";

    position: absolute;

    inset: 0;

    border-left:
        135px solid transparent;

    border-right:
        135px solid transparent;

    border-bottom:
        90px solid #e5dfd4;

    z-index: 2;
}


/* Envelope side folds */

.letter-envelope::after {
    content: "";

    position: absolute;

    inset: 0;

    border-left:
        135px solid #d8d1c5;

    border-right:
        135px solid #d8d1c5;

    border-top:
        87px solid transparent;

    border-bottom:
        87px solid transparent;

    z-index: 1;

    opacity: 0.65;
}


/* =====================================================
   SMALL LETTER CARD INSIDE ENVELOPE
   ===================================================== */

.letter-envelope-paper {
    position: absolute;

    left: 50%;

    bottom: 12px;

    width: 205px;

    height: 125px;

    transform:
        translateX(-50%)
        translateY(95px);

    background: #fffdf8;

    border:
        1px solid #c9c1b6;

    z-index: 2;

    animation:
        letter-rise 1.5s
        ease-out
        1.1s
        forwards;
}


/* =====================================================
   OPENING MESSAGE
   ===================================================== */

.letter-opening-message {
    margin-top: 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.9rem;

    color: #777;

    letter-spacing: 0.03em;

    opacity: 0;

    animation:
        opening-message-fade 0.7s
        ease
        1.7s
        forwards;
}


/* =====================================================
   OPENED LETTER
   ===================================================== */

.received-letter-reading {
    display: none;

    margin-top: 5px;
}

.received-letter-reading.active {
    display: block;

    animation:
        letter-appear 0.6s ease both;
}


/* =====================================================
   LETTER PAPER
   ===================================================== */

.received-letter-paper {
    width: 100%;

    min-height: 430px;

    padding: 38px 42px 45px;

    background:
        #fffdf8;

    border:
        1px solid #c9c1b6;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    position: relative;
}


/* =====================================================
   LETTER PAPER DECORATION
   ===================================================== */

.received-letter-paper::before {
    content: "";

    position: absolute;

    top: 16px;
    left: 20px;
    right: 20px;

    border-top:
        1px solid #ded7cd;
}


/* =====================================================
   LETTER HEADER
   ===================================================== */

.received-letter-reading-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 28px;

    padding-bottom: 13px;

    border-bottom:
        1px solid #d8d2c7;
}


.received-letter-reading-from {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1rem;

    color: #333;
}


.received-letter-reading-date {
    font-size: 0.72rem;

    color: #777;

    white-space: nowrap;
}


/* =====================================================
   LETTER TEXT
   ===================================================== */

.received-letter-reading-text {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1rem;

    line-height: 1.85;

    color: #333;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}


/* =====================================================
   BACK TO LETTERS
   ===================================================== */

/* =====================================================
   REPLY TO LETTER
   ===================================================== */

.received-letter-reply-button {

    float: right;

    margin-top: 20px;

    border: none;

    background: none;

    padding: 5px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.82rem;

    color: #666;

    cursor: pointer;

}




.received-letter-reply-button:hover {

    color: #222;

    text-decoration: underline;

}

/* =====================================================
   REPLY WRITING AREA
   ===================================================== */

.received-letter-reply-area {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #d8d2c7;
}

.received-letter-reply-area h3 {
    margin: 0 0 15px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1rem;
    font-weight: normal;
    color: #333;
}

.received-letter-reply-textarea {
    width: 100%;
    min-height: 180px;
    padding: 15px 16px;
    border: 1px solid #c9c1b6;
    background: #fffdf8;
    color: #333;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
}

.received-letter-reply-textarea:focus {
    outline: none;
    border-color: #999;
}

.received-letter-reply-counter {
    margin: 8px 0 14px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.75rem;
    color: #777;
}

.received-letter-reply-area .dashboard-button {
    margin-top: 5px;
}

.received-letter-reply-area

.received-letter-back-button {
    margin-left: 18px;
}

.received-letter-back-button {
    margin-top: 20px;

    border: none;

    background: none;

    padding: 5px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.82rem;

    color: #666;

    cursor: pointer;
}

.received-letter-back-button:hover {
    color: #222;

    text-decoration: underline;
}


/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes envelope-arrive {

    from {
        opacity: 0;

        transform:
            translateY(15px)
            scale(0.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


@keyframes envelope-flap-open {

    0% {
        transform:
            rotateX(0deg);
    }

    45% {
        transform:
            rotateX(0deg);
    }

    100% {
        transform:
            rotateX(180deg);
    }

}


@keyframes letter-rise {

    0% {
        transform:
            translateX(-50%)
            translateY(95px);
    }

    100% {
        transform:
            translateX(-50%)
            translateY(-25px);
    }

}


@keyframes opening-message-fade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes letter-appear {

    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =====================================================
   RECEIVED LETTERS — MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .received-letters-modal {
        padding: 15px;
    }

    .received-letters-modal-content {
        padding: 34px 20px 25px;

        max-height: 94vh;
    }


    .received-letter-list-item {
        padding: 15px 14px;

        gap: 12px;
    }


    .received-letter-list-envelope {
        width: 28px;

        font-size: 1.1rem;
    }


    .received-letter-list-from {
        font-size: 0.9rem;
    }


    .letter-opening-scene {
        min-height: 390px;
    }


    .letter-envelope {
        width: 230px;
        height: 150px;
    }


    .letter-envelope-flap {
        border-left-width: 114px;
        border-right-width: 114px;
        border-top-width: 70px;
    }


    .letter-envelope::before {
        border-left-width: 115px;
        border-right-width: 115px;
        border-bottom-width: 78px;
    }


    .letter-envelope::after {
        border-left-width: 115px;
        border-right-width: 115px;
        border-top-width: 75px;
        border-bottom-width: 75px;
    }


    .letter-envelope-paper {
        width: 175px;
        height: 110px;
    }


    .received-letter-paper {
        min-height: 460px;

        padding:
            32px 24px 38px;
    }


    .received-letter-reading-header {
        flex-direction: column;

        gap: 7px;
    }


    .received-letter-reading-date {
        white-space: normal;
    }


    .received-letter-reading-text {
        font-size: 0.96rem;

        line-height: 1.8;
    }

}

/* =========================================================
   DASHBOARD ACTION BUTTONS
   ========================================================= */

#openGiftButton,
#viewGiftsButton,
#browseButton,
#dashboard-browse-button,
#viewLettersButton,
#openAdvertisementButton {

    width: 100%;
    min-height: 44px;
    box-sizing: border-box;

    padding: 10px 18px;

    border: 1px solid #c9c1b6;

    background: #f7f4ee;

    color: #555;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.85rem;
    font-weight: normal;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* =========================================================
   SAME HOVER FOR ALL
   ========================================================= */

#openGiftButton:hover,
#viewGiftsButton:hover,
#browseButton:hover,
#dashboard-browse-button,
#viewLettersButton:hover,
#openAdvertisementButton:hover {

    background: #cdc0ab;

    border-color: #b8afa3;

    color: #222;
}


/* =====================================================

#viewLettersButton {
    background: #b52587;
    border-color: #b52587;
    color: #fff;
}

#viewLettersButton:hover {
    background: #551544;
    border-color: #551544
}
   ===================================================== */

/* =====================================================
   POLICY LINK
   ===================================================== */

.policy-link {
    display: inline-block;
    margin-top: 8px;
    color: #777;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.50rem;
    text-decoration: none;
}

.policy-link:hover {
    color: #222;
    text-decoration: underline;
}

/* =====================================================
   Venidai POLICY PAGE
   ===================================================== */

.tyt-policy-page {
    width: 100%;
    padding: 55px 25px 75px;
    box-sizing: border-box;
}

.tyt-policy-paper {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 50px 55px 55px;
    background: #fbf9f5;
    border: 1px solid #d8d2c7;
    box-sizing: border-box;
}

.tyt-policy-kicker {
    margin: 0 0 12px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #777;
}

.tyt-policy-paper h1 {
    margin: 0;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 2rem;
    font-weight: normal;
    color: #252525;
}

.tyt-policy-intro {
    max-width: 560px;
    margin: 16px 0 30px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #666;
}

.tyt-policy-rule {
    width: 100%;
    height: 1px;
    margin: 0 0 34px;
    background: #d8d2c7;
}

.tyt-policy-section {
    margin-bottom: 34px;
}

.tyt-policy-label {
    margin: 0 0 12px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #777;
}

.tyt-policy-section p:not(.tyt-policy-label) {
    margin: 0 0 12px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.94rem;
    line-height: 1.8;
    color: #444;
}

.tyt-policy-closing {
    max-width: 600px;
}

.tyt-policy-closing p {
    margin: 0 0 13px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.94rem;
    line-height: 1.8;
    color: #444;
}

.tyt-policy-signature {
    margin-top: 25px !important;
    font-style: italic;
    color: #666 !important;
}

.tyt-policy-back {
    display: inline-block;
    margin-top: 32px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.82rem;
    color: #666;
    text-decoration: none;
}

.tyt-policy-back:hover {
    color: #222;
    text-decoration: underline;
}


/* =====================================================
   Venidai POLICY — MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .tyt-policy-page {
        padding: 30px 18px 50px;
    }

    .tyt-policy-paper {
        padding: 35px 25px 40px;
    }

    .tyt-policy-paper h1 {
        font-size: 1.7rem;
    }

    .tyt-policy-intro {
        font-size: 0.92rem;
    }

    .tyt-policy-section p:not(.tyt-policy-label) {
        font-size: 0.9rem;
        line-height: 1.75;
    }

}

.dashboard-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-browse-button {
    display: inline-block;
    padding: 9px 22px;
    border: 1px solid #c9c1b6;
    background: #fbf9f5;
    color: #555;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.dashboard-browse-button:hover {
    background: #f1ede6;
    border-color: #aaa297;
    color: #222;
}

/* =========================================================
   DASHBOARD — ALIAS + BROWSE
   ========================================================= */

.dashboard-discover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
    border: 1px solid #d8d2c7;
    background: #fbf9f5;
}

.dashboard-discover-identity,
.dashboard-discover-browse {
    min-height: 180px;
    padding: 30px 34px;
    box-sizing: border-box;
}

.dashboard-discover-identity {
    border-right: 1px solid #d8d2c7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-discover-browse {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-discover-text {
    margin: 0 0 18px;
    color: #555;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1rem;
    line-height: 1.6;
}

.dashboard-browse-button {
    display: inline-block;
    width: fit-content;
    padding: 9px 24px;
    border: 1px solid #c9c1b6;
    background: #eb51b3;
    color: #ecf0f2;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.82rem;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.dashboard-browse-button:hover {
    background: #efcae8;
    color: #222;
}

/* =========================================================
 Venidai APP INSTALL
   ========================================================= */

.app-install-area {
    margin-top: 22px;
    text-align: center;
}

.app-install-text {
    margin: 0 0 10px;
    color: #777;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.82rem;
}


.app-install-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(37, 37, 37, 0.45);
    z-index: 1200;
}

.app-install-modal.active {
    display: flex;
}


.app-install-modal-content {
    position: relative;
    width: min(520px, 92vw);
    padding: 45px 45px 40px;
    background: #f7f4ee;
    border: 1px solid #c9c1b6;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}


.app-install-modal-content h2 {
    margin: 8px 0 20px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-weight: normal;
    color: #252525;
}


.app-install-instructions {
    margin: 0;
    color: #555;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.95rem;
    line-height: 1.7;
}


.app-install-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    color: #777;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.5rem;
    cursor: pointer;
}

.app-install-close:hover {
    color: #222;
}

/* =========================================================
   Venidai WALLET
   ========================================================= */

.wallet-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(37, 37, 37, 0.45);
    z-index: 1200;
}

.wallet-modal.active {
    display: flex;
}


.wallet-modal-content {
    position: relative;
    width: min(480px, 92vw);
    padding: 45px 45px 40px;
    box-sizing: border-box;

    background: #f7f4ee;
    border: 1px solid #c9c1b6;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.18);

    text-align: center;
}


.wallet-modal-content h2 {
    margin: 8px 0 25px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: normal;
    color: #252525;
}


.wallet-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;

    border: none;
    background: none;

    color: #777;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.5rem;

    cursor: pointer;
}

.wallet-modal-close:hover {
    color: #222;
}


.wallet-balance-display {
    margin: 10px 0 28px;

    color: #252525;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2.2rem;
}


.wallet-currency {
    font-size: 1.4rem;
}


.wallet-add-button {
    padding: 10px 28px;

    border: 1px solid #c9c1b6;

    background: #f7f4ee;

    color: #555;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.85rem;

    cursor: pointer;
}

.wallet-add-button:hover {
    background: #eee9e1;
    color: #222;
}

/* =========================================================
   WALLET AMOUNT OPTIONS
   ========================================================= */

.wallet-amount-options {
    display: none;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #d8d2c7;
}

.wallet-amount-options.active {
    display: block;
}

.wallet-amount-title {
    margin: 0 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1rem;
    color: #333;
}

.wallet-amount-description {
    margin: 0 0 20px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.9rem;
    line-height: 1.5;
    color: #777;
}

.wallet-amount-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wallet-amount-button {
    min-width: 65px;
    padding: 9px 15px;

    border: 1px solid #c9c1b6;

    background: #f7f4ee;
    color: #555;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.85rem;

    cursor: pointer;
}

.wallet-amount-button:hover {
    background: #eee9e1;
    color: #222;
}

.wallet-selected-amount {
    min-height: 20px;
    margin: 18px 0 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.9rem;
    color: #555;
}



/* =========================================================
   WALLET BUTTON
   ========================================================= */

.wallet-balance-button {
    display: block;

    margin-top: 18px;
    padding: 0;

    border: none;
    background: none;

    color: #777;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.78rem;
    font-weight: normal;

    letter-spacing: 0.06em;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.wallet-balance-button:hover {
    color: #222;
}

