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

:root {
    --cream: #FFF8F0;
    --warm-beige: #F5E6D3;
    --soft-pink: #FFB5BA;
    --coral: #FF8B8B;
    --rust: #BC6C25;
    --golden: #DDA15E;
    --soft-blue: #A8D8EA;
    --lavender: #E8D4E8;
    --dark-brown: #3D2914;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--cream);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 181, 186, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 216, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(232, 212, 232, 0.15) 0%, transparent 60%);
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--soft-pink), var(--coral));
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 9999;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    box-shadow: 0 8px 30px rgba(255, 139, 139, 0.4);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

/* Sound toggle */
.sound-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--warm-beige);
    border: 3px dashed var(--golden);
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s;
}

.sound-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Header */
.header {
    text-align: center;
    padding: 28px 16px;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--cream) 100%);
    border-radius: 28px;
    border: 4px dashed var(--golden);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L60 30 M30 0 L30 60' stroke='%23DDA15E' stroke-width='0.5' fill='none' stroke-dasharray='4 8'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
}

.title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--rust);
    text-shadow: 3px 3px 0 var(--golden);
    animation: titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--soft-pink), var(--coral));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.subtitle {
    font-size: 1rem;
    color: var(--dark-brown);
    font-weight: 600;
    margin-top: 8px;
}

/* Featured Banner */
.featured-banner {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--soft-pink) 50%, var(--soft-blue) 100%);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    border: 4px solid var(--coral);
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--golden);
    color: white;
    padding: 6px 20px;
    border-radius: 0 0 16px 16px;
    font-weight: 700;
    font-size: 0.85rem;
}

.featured-content {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.featured-image-wrap {
    flex: 0 0 120px;
}

.featured-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.featured-info {
    flex: 1;
}

.featured-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-brown);
    margin-bottom: 4px;
}

.featured-desc {
    font-size: 0.85rem;
    color: var(--dark-brown);
    opacity: 0.8;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heart-count {
    font-weight: 700;
    color: var(--coral);
    font-size: 1rem;
}

.react-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--coral);
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--coral);
    cursor: pointer;
    transition: all 0.2s;
}

.react-btn:hover:not(:disabled) {
    background: var(--coral);
    color: white;
    transform: scale(1.05);
}

.react-btn.reacted {
    background: var(--coral);
    color: white;
}

.react-btn:disabled {
    cursor: default;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mode toggle */
.mode-toggle {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.mode-btn {
    flex: 1;
    max-width: 160px;
    padding: 14px 20px;
    border: none;
    border-radius: 24px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--warm-beige);
    color: var(--dark-brown);
    border: 3px solid transparent;
    box-shadow: 0 4px 0 var(--golden);
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--golden);
}

.mode-btn.active {
    background: var(--soft-pink);
    border-color: var(--coral);
    box-shadow: 0 4px 0 var(--rust);
}

/* Input panel */
.input-panel {
    background: white;
    border-radius: 28px;
    padding: 20px;
    border: 4px dashed var(--golden);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.description-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 3px dashed var(--soft-pink);
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    resize: vertical;
    background: var(--cream);
    color: var(--dark-brown);
}

.description-input:focus {
    outline: none;
    border-color: var(--coral);
}

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

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.char-count {
    font-size: 0.85rem;
    color: #888;
}

.quick-add-hint {
    font-size: 0.85rem;
    color: var(--coral);
    font-weight: 600;
}

.quick-add-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-add-btn {
    padding: 8px 14px;
    background: var(--cream);
    border: 2px solid var(--soft-pink);
    border-radius: 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-brown);
}

.quick-add-btn:hover {
    background: var(--soft-pink);
    color: white;
    transform: scale(1.05);
}

/* Style presets */
.style-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed var(--warm-beige);
}

.presets-label {
    font-weight: 700;
    color: var(--dark-brown);
    font-size: 0.9rem;
}

.preset-btn {
    padding: 8px 14px;
    background: var(--warm-beige);
    border: 2px solid transparent;
    border-radius: 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-brown);
}

.preset-btn:hover {
    transform: scale(1.05);
    background: var(--lavender);
}

.preset-btn.active {
    background: var(--soft-blue);
    border-color: var(--coral);
}

/* Photo mode */
.upload-zone {
    border: 4px dashed var(--soft-pink);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--cream);
}

.upload-zone:hover {
    border-color: var(--coral);
    background: rgba(255, 139, 139, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.upload-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.upload-btn {
    padding: 12px 20px;
    background: var(--warm-beige);
    border: 2px solid var(--golden);
    border-radius: 16px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: var(--golden);
    color: white;
}

.photo-preview-container {
    text-align: center;
}

.polaroid-frame {
    display: inline-block;
    background: white;
    padding: 10px 10px 30px 10px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: rotate(-2deg);
}

.photo-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 2px;
}

.remove-photo {
    margin-top: 12px;
    padding: 8px 16px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

.additional-details {
    width: 100%;
    min-height: 60px;
    padding: 14px;
    border: 3px dashed var(--soft-pink);
    border-radius: 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    margin-top: 14px;
    background: var(--cream);
    resize: vertical;
}

/* Webcam styles */
.webcam-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.webcam-video {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--coral);
    background: #000;
    display: block;
}

.webcam-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.capture-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--coral) 0%, var(--soft-pink) 100%);
    border: none;
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--rust);
    transition: all 0.2s;
}

.capture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--rust);
}

.cancel-btn {
    padding: 14px 24px;
    background: var(--warm-beige);
    border: 2px solid var(--golden);
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* Generate button */
.generate-btn {
    width: 100%;
    padding: 20px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--coral) 0%, var(--soft-pink) 100%);
    border: none;
    border-radius: 24px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 0 var(--rust);
    transition: all 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.generate-btn:hover:not(:disabled)::before {
    left: 100%;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--rust);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--rust);
}

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

/* Loading */
.loading-container {
    text-align: center;
    padding: 50px 20px;
}

.yarn-ball {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--coral), var(--soft-pink));
    border-radius: 50%;
    position: relative;
    animation: bounce 1s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(255, 139, 139, 0.4);
}

.yarn-strand {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid white;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.yarn-strand:nth-child(2) {
    transform: rotate(60deg);
    animation-delay: -0.5s;
}

.yarn-strand:nth-child(3) {
    transform: rotate(120deg);
    animation-delay: -1s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.loading-message {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rust);
    margin-bottom: 8px;
}

.loading-pun {
    font-size: 1rem;
    color: var(--dark-brown);
    font-style: italic;
}

/* Result */
.result-container {
    text-align: center;
}

.toy-box {
    background: linear-gradient(180deg, #FFE5E5 0%, white 100%);
    border-radius: 28px;
    padding: 16px;
    border: 6px solid var(--coral);
    box-shadow: 0 10px 40px rgba(188, 108, 37, 0.3);
    margin-bottom: 16px;
    position: relative;
}

.toy-box-ribbon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: var(--coral);
    border-radius: 4px;
}

.toy-box-ribbon::before,
.toy-box-ribbon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--coral);
    border-radius: 50%;
    transform: translateY(-50%);
}

.toy-box-ribbon::before {
    left: -15px;
}

.toy-box-ribbon::after {
    right: -15px;
}

.toy-box-header {
    margin-bottom: 10px;
    margin-top: 10px;
}

.toy-tag {
    display: inline-block;
    background: var(--golden);
    color: white;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

.toy-box-window {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid rgba(0,0,0,0.05);
}

.plush-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.reaction-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.reaction-btn {
    padding: 10px 18px;
    background: white;
    border: 3px solid var(--soft-pink);
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-brown);
}

.reaction-btn:hover {
    background: var(--soft-pink);
    color: white;
    transform: scale(1.1);
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    padding: 14px 16px;
    border: none;
    border-radius: 18px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.download {
    background: var(--soft-blue);
    color: var(--dark-brown);
}

.action-btn.share {
    background: #1DA1F2;
    color: white;
}

.action-btn.retry {
    background: var(--golden);
    color: white;
}

.action-btn.new {
    background: var(--soft-pink);
    color: var(--dark-brown);
}

.action-btn:hover {
    transform: scale(1.05);
}

/* Example gallery */
.example-section {
    margin-top: 28px;
    flex-shrink: 0;
}

.section-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--rust);
    margin-bottom: 16px;
}

.example-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 0 14px;
    scroll-snap-type: x mandatory;
}

.example-card {
    flex: 0 0 130px;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    padding: 8px;
    border: 3px dashed var(--golden);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.example-card:hover {
    transform: scale(1.05) rotate(-2deg);
    border-style: solid;
}

.example-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}

.example-name {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-top: 6px;
}

.example-hearts {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    font-size: 0.8rem;
}

/* Collection */
.collection-toggle {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: var(--warm-beige);
    border: 3px dashed var(--rust);
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-brown);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.collection-toggle:hover {
    background: var(--golden);
    color: white;
}

.collection-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 28px 28px 0 0;
    padding: 24px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    max-height: 65vh;
    overflow-y: auto;
    z-index: 1000;
}

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

.collection-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rust);
}

.collection-header button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--warm-beige);
    font-size: 1.3rem;
    cursor: pointer;
}

.collection-hint {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 16px;
    text-align: center;
    font-style: italic;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
}

.collection-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 18px;
    padding: 8px;
    position: relative;
}

.collection-item:hover {
    transform: scale(1.08);
    background: var(--cream);
}

.collection-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid var(--golden);
    transition: border-color 0.2s;
}

.collection-item:hover img {
    border-color: var(--coral);
}

.collection-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-plush {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,107,107,0.9);
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.collection-item:hover .delete-plush {
    opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    background: white;
    border-radius: 28px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.lightbox-image-container {
    max-height: 65vh;
    overflow: hidden;
}

.lightbox-image {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--cream) 0%, white 100%);
    border-top: 4px dashed var(--golden);
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rust);
    margin-bottom: 8px;
}

.lightbox-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 18px;
}

.lightbox-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.lightbox-download,
.lightbox-share {
    padding: 14px 28px;
    border: none;
    border-radius: 18px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-download {
    background: linear-gradient(135deg, var(--coral) 0%, var(--soft-pink) 100%);
    color: white;
    box-shadow: 0 4px 0 var(--rust);
}

.lightbox-share {
    background: #1DA1F2;
    color: white;
    box-shadow: 0 4px 0 #1a8cd8;
}

.lightbox-download:hover,
.lightbox-share:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 28px 16px;
    margin-top: auto;
    border-top: 4px dashed var(--golden);
    flex-shrink: 0;
}

.footer p {
    color: var(--dark-brown);
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-subtext {
    font-size: 0.9rem;
    color: var(--coral);
    margin-bottom: 12px !important;
}

.footer-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--coral), var(--soft-pink));
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.footer-link:hover {
    transform: scale(1.05);
}

.footer-credit {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    top: -20px;
    border-radius: 50%;
    animation: fall 3s ease-out forwards;
}

.confetti-piece.heart {
    background: transparent;
    font-size: 16px;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }
    
    .featured-content {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-image-wrap {
        flex: none;
    }
    
    .mode-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .generate-btn {
        font-size: 1.2rem;
        padding: 18px;
    }
    
    .result-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .action-btn {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-title {
        font-size: 1.2rem;
    }

    .lightbox-download,
    .lightbox-share {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .quick-add-buttons {
        gap: 6px;
    }
    
    .quick-add-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .reaction-buttons {
        flex-wrap: wrap;
    }
}