/* 
  KANNU APP STYLES - Version 3
  ============================
  Mobile-first design (375px baseline)
  
  Color palette:
  - Primary sage green: #7D8E6D
  - Light sage: #A8B89A
  - Lighter sage: #E8EDE4
  - Gold accent: #C9A227
  - Background: #FAFDF8
  - White: #FFFFFF
  - Text dark: #2D3528
  - Text medium: #5A6352
  - Text light: #8A9182
  
  Font: Playfair Display
*/

/* ========== BASE STYLES ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    background-color: #E5EBE0;
    color: #2D3528;
    line-height: 1.5;
    font-size: 16px;
    font-weight: 400;
}

#app {
    height: 100%;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Force Playfair on all elements */
* {
    font-family: inherit;
}

/* ========== SCREENS ========== */

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E5EBE0;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.screen-content {
    padding: 16px;
    padding-bottom: 32px;
    min-height: 100%;
}

.screen-content.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
}

.screen-content.home-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.screen-content.feed-screen {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.screen-content.feed-screen .screen-header {
    padding-left: 16px;
    padding-right: 16px;
}

/* ========== TYPOGRAPHY ========== */

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #7D8E6D;
    white-space: nowrap;
}

.logo.small {
    font-size: 1.35rem;
}

.tagline {
    font-size: 1rem;
    font-weight: 400;
    color: #5A6352;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    max-width: 280px;
    line-height: 1.6;
}

.prompt {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7D8E6D;
    margin-bottom: 1rem;
}

.subtext {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8A9182;
    margin-bottom: 1rem;
}

/* ========== SETUP & LOGIN ========== */

.setup-step {
    width: 100%;
    max-width: 300px;
}

.user-select {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.user-btn {
    padding: 1rem 1.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    border: 2px solid #A8B89A;
    border-radius: 12px;
    color: #7D8E6D;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-btn:active {
    background: #7D8E6D;
    border-color: #7D8E6D;
    color: white;
    transform: scale(0.98);
}

/* Profile Upload */
.profile-upload-area {
    width: 120px;
    height: 120px;
    margin: 1.5rem auto;
    cursor: pointer;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed #A8B89A;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
}

.profile-placeholder-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.profile-placeholder-text {
    font-size: 0.7rem;
    color: #8A9182;
}

.profile-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C9A227;
}

/* ========== FORM ELEMENTS ========== */

.input-field {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    border: 2px solid #E8EDE4;
    border-radius: 12px;
    background: white;
    color: #2D3528;
    margin-bottom: 12px;
    -webkit-appearance: none;
}

.input-field:focus {
    outline: none;
    border-color: #7D8E6D;
}

.input-field.small {
    padding: 10px 12px;
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 0;
}

.textarea-field {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    border: 2px solid #E8EDE4;
    border-radius: 12px;
    background: white;
    color: #2D3528;
    resize: none;
    min-height: 100px;
    -webkit-appearance: none;
}

.textarea-field.large {
    min-height: 140px;
}

.textarea-field:focus {
    outline: none;
    border-color: #7D8E6D;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
    background: linear-gradient(135deg, #7D8E6D, #6A7A5D);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.primary-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #8A9182;
    cursor: pointer;
    min-height: 48px;
}

.danger-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
    background: #D9534F;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    min-height: 48px;
}

.danger-btn:active {
    background: #C9443F;
}

.small-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Playfair Display', Georgia, serif;
    background: #7D8E6D;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    min-height: 44px;
}

.error-message {
    color: #D9534F;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ========== ICON BUTTON ========== */

.icon-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    background: none;
    border: none;
    color: #7D8E6D;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.icon-btn:active {
    background: #E8EDE4;
}

/* ========== HOME SCREEN ========== */

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 16px;
    gap: 16px;
}

.home-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C9A227;
}

.home-profile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8B89A, #7D8E6D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
}

.greeting {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    color: #5A6352;
    white-space: nowrap;
}

.home-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding-bottom: 16px;
}

.nav-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    flex: 1;
    background: white;
    border: none;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-card:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.nav-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #7D8E6D;
}

.nav-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    color: #8A9182;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #C9A227;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.surprise-banner {
    padding: 14px;
    background: linear-gradient(135deg, #C9A227, #B8922A);
    border-radius: 12px;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
}

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

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 12px;
    border-bottom: 1px solid #E8EDE4;
    margin-bottom: 16px;
}

.back-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #7D8E6D;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7D8E6D;
}

.header-spacer {
    width: 44px;
}

/* ========== MOMENT MENU ========== */

.moment-menu {
    position: absolute;
    top: 70px;
    right: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
}

.moment-menu-item {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.moment-menu-item:active {
    background: #E8EDE4;
}

.moment-menu-item.danger {
    color: #D9534F;
}

/* ========== FEED ========== */

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
}

/* Feed Card - Edge to Edge */
.feed-card {
    background: white;
    cursor: pointer;
}

.feed-card:active {
    opacity: 0.95;
}

/* Post Header - Profile + Name above image */
.feed-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.feed-card-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-card-pic-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8B89A, #7D8E6D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.feed-card-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D3528;
}

.feed-card-location {
    font-size: 0.8rem;
    color: #8A9182;
}

/* Media Grid - Full Bleed */
.feed-media-container {
    position: relative;
    width: 100%;
}

.feed-media-grid {
    display: grid;
    gap: 2px;
    background: #E8EDE4;
}

.feed-media-grid.grid-1 {
    grid-template-columns: 1fr;
}

.feed-media-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.feed-media-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.media-item {
    position: relative;
    background: #E8EDE4;
    overflow: hidden;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-media-grid.grid-1 .media-item {
    aspect-ratio: 1;
}

.feed-media-grid.grid-2 .media-item,
.feed-media-grid.grid-4 .media-item {
    aspect-ratio: 1;
}

.media-extra-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* Note Preview */
.feed-note-preview {
    padding: 24px 16px;
    font-size: 1.1rem;
    color: #5A6352;
    line-height: 1.6;
    background: linear-gradient(135deg, #FAFDF8, #E8EDE4);
    min-height: 120px;
}

/* Post Footer */
.feed-card-footer {
    padding: 12px 16px 16px;
}

.feed-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.feed-heart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.feed-heart-info {
    font-size: 0.85rem;
    color: #5A6352;
    margin-left: 4px;
}

.feed-caption {
    font-size: 0.95rem;
    color: #2D3528;
    line-height: 1.5;
    margin-bottom: 6px;
}

.feed-caption strong {
    font-weight: 600;
}

.feed-date {
    font-size: 0.8rem;
    color: #8A9182;
}

.feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    padding: 4px 10px;
    background: #E8EDE4;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #7D8E6D;
    font-weight: 500;
}

/* ========== DOUBLE TAP HEART ANIMATION ========== */

.heart-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1000;
}

.heart-animation.hidden {
    display: none;
}

.heart-animation-icon {
    font-size: 100px;
    color: #C9A227;
    animation: heart-pop 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes heart-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    15% {
        transform: scale(1.3);
        opacity: 1;
    }
    30% {
        transform: scale(0.95);
        opacity: 1;
    }
    45% {
        transform: scale(1.1);
        opacity: 1;
    }
    80% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ========== MULTI-UPLOAD ========== */

.multi-upload-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-thumbnail {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #E8EDE4;
}

.upload-thumbnail img,
.upload-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-thumbnail-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.upload-add-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px dashed #A8B89A;
    border-radius: 12px;
    cursor: pointer;
}

.upload-add-btn:active {
    background: #E8EDE4;
}

.upload-add-btn.hidden {
    display: none;
}

.upload-add-icon {
    width: 40px;
    height: 40px;
    background: #E8EDE4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #7D8E6D;
}

.upload-add-text {
    font-size: 0.9rem;
    color: #5A6352;
}

/* ========== FORM SECTIONS ========== */

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7D8E6D;
    margin-bottom: 8px;
}

.type-toggle, .date-toggle {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    background: white;
    border: 2px solid #E8EDE4;
    border-radius: 8px;
    color: #5A6352;
    cursor: pointer;
    min-height: 44px;
}

.toggle-btn.selected {
    border-color: #7D8E6D;
    background: #E8EDE4;
    color: #7D8E6D;
}

/* ========== TAGS ========== */

.tags-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-tag {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    background: white;
    border: 1px solid #E8EDE4;
    border-radius: 20px;
    color: #5A6352;
    cursor: pointer;
    min-height: 36px;
}

.preset-tag.selected {
    background: #7D8E6D;
    border-color: #7D8E6D;
    color: white;
}

.preset-tag.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    background: #C9A227;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}

.selected-tag .remove-tag {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.custom-tag-input {
    display: flex;
    gap: 8px;
}

/* ========== MOMENT DETAIL ========== */

.moment-detail-container {
    display: flex;
    flex-direction: column;
}

.moment-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 12px;
}

.moment-detail-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.moment-detail-pic-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8B89A, #7D8E6D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

.moment-detail-author-info {
    display: flex;
    flex-direction: column;
}

.moment-detail-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2D3528;
}

.moment-detail-location {
    font-size: 0.8rem;
    color: #8A9182;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #E8EDE4;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 1;
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #2D3528;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.carousel-arrow:active {
    background: white;
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.hidden {
    display: none;
}

.carousel-arrow-left {
    left: 12px;
}

.carousel-arrow-right {
    right: 12px;
}

.carousel-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Playfair Display', Georgia, serif;
}

.moment-detail-note {
    font-size: 1.15rem;
    color: #5A6352;
    line-height: 1.6;
    padding: 24px 16px;
    background: linear-gradient(135deg, #FAFDF8, #E8EDE4);
}

.moment-detail-footer {
    padding: 12px 16px 16px;
}

.moment-detail-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.moment-detail-caption {
    font-size: 1rem;
    color: #2D3528;
    line-height: 1.5;
    margin-bottom: 8px;
}

.moment-detail-date {
    font-size: 0.8rem;
    color: #8A9182;
}

.moment-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* ========== TABS ========== */

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    background: white;
    border: none;
    border-radius: 8px;
    color: #8A9182;
    cursor: pointer;
    min-height: 44px;
}

.tab-btn.selected {
    background: #7D8E6D;
    color: white;
}

/* ========== COLLECTIONS ========== */

.collections-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.collections-tag {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    background: white;
    border: 1px solid #E8EDE4;
    border-radius: 20px;
    color: #5A6352;
    cursor: pointer;
}

.collections-tag:active {
    background: #E8EDE4;
}

.collections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.collection-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.collection-card:active {
    opacity: 0.9;
}

.collection-preview {
    aspect-ratio: 1;
    background: #E8EDE4;
    display: grid;
    gap: 2px;
}

.collection-preview.preview-1 {
    grid-template-columns: 1fr;
}

.collection-preview.preview-2,
.collection-preview.preview-3,
.collection-preview.preview-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.collection-preview-item {
    background: #A8B89A;
    overflow: hidden;
}

.collection-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-name {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7D8E6D;
    text-align: center;
}

/* ========== SURPRISE CARDS ========== */

.surprise-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.surprise-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    position: relative;
}

.surprise-card:active {
    opacity: 0.9;
}

.surprise-card.unread {
    border-left: 4px solid #C9A227;
}

.surprise-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.surprise-card-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.surprise-card-pic-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8B89A, #7D8E6D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.surprise-card-from {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5A6352;
}

.surprise-card-preview {
    font-size: 0.95rem;
    color: #5A6352;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.surprise-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.surprise-card-date {
    font-size: 0.8rem;
    color: #8A9182;
}

.surprise-card-heart {
    font-size: 0.85rem;
    color: #C9A227;
}

/* ========== SURPRISE REVEAL ========== */

.surprise-reveal {
    background: white;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(125, 142, 109, 0.2);
}

.surprise-reveal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.surprise-reveal-pic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.surprise-reveal-pic-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8B89A, #7D8E6D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.surprise-reveal-from {
    font-size: 0.9rem;
    color: #8A9182;
}

.surprise-reveal-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.surprise-reveal-message {
    font-size: 1.1rem;
    color: #5A6352;
    line-height: 1.6;
}

.surprise-reveal-date {
    font-size: 0.8rem;
    color: #8A9182;
    margin-top: 16px;
}

.surprise-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    max-width: 320px;
}

.surprise-actions .heart-btn {
    flex-shrink: 0;
}

.surprise-actions .primary-btn {
    flex: 1;
}

.heart-btn {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
    background: white;
    border: 2px solid #E8EDE4;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-btn.hearted {
    background: #C9A227;
    border-color: #C9A227;
    color: white;
}

/* ========== UPLOAD AREA ========== */

.upload-area {
    border: 2px dashed #A8B89A;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: white;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area.has-file {
    border-style: solid;
    border-color: #7D8E6D;
    padding: 0;
}

.upload-prompt {
    color: #8A9182;
}

.upload-preview {
    width: 100%;
}

.upload-preview img {
    width: 100%;
    border-radius: 10px;
}

/* ========== SETTINGS ========== */

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
}

.settings-profile-pic-container {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.settings-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C9A227;
}

.settings-profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8B89A, #7D8E6D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.settings-profile-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #C9A227;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.settings-username {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7D8E6D;
}

.settings-options {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.settings-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Playfair Display', Georgia, serif;
    min-height: 56px;
}

.settings-option:active {
    background: #E8EDE4;
}

.settings-option:not(:last-child) {
    border-bottom: 1px solid #E8EDE4;
}

.settings-option.danger .settings-option-text {
    color: #D9534F;
}

.settings-option-icon {
    font-size: 1.25rem;
    margin-right: 12px;
}

.settings-option-text {
    flex: 1;
    font-size: 1rem;
    color: #2D3528;
}

.settings-option-arrow {
    font-size: 1rem;
    color: #8A9182;
}

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

.reset-warning {
    background: #FEF3F3;
    border: 1px solid #F5C6C6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.reset-warning-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.reset-warning-title {
    font-size: 1rem;
    font-weight: 600;
    color: #D9534F;
    margin-bottom: 12px;
}

.reset-warning-list {
    list-style: none;
    font-size: 0.9rem;
    color: #5A6352;
    margin-bottom: 12px;
}

.reset-warning-list li {
    padding: 4px 0;
}

.reset-warning-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #D9534F;
}

/* ========== MODAL ========== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 24px;
    max-width: 300px;
    width: 100%;
    text-align: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3528;
    margin-bottom: 8px;
}

.modal-text {
    font-size: 0.9rem;
    color: #8A9182;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .secondary-btn,
.modal-actions .danger-btn {
    flex: 1;
}

/* ========== EMPTY STATES ========== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    width: 100%;
}

.collections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.collections-grid .empty-state {
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7D8E6D;
    margin-bottom: 8px;
}

.empty-subtext {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #8A9182;
}

/* ========== LOADING ========== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(229, 235, 224, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #E8EDE4;
    border-top-color: #7D8E6D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    color: #7D8E6D;
    font-weight: 500;
}

/* ========== UTILITIES ========== */

.hidden {
    display: none !important;
}

/* ========== SCROLLBAR ========== */

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* ========== SAFE AREAS ========== */

@supports (padding-top: env(safe-area-inset-top)) {
    .screen-content {
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
    
    .screen-content.feed-screen {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
