    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        background: #ffffff;
        font-family: 'Inter', sans-serif;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ── BANNER ── */
    .banner {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        overflow: visible;
        line-height: 0;
        position: relative;
    }

    @media (min-width: 768px) {
        .banner {
            max-width: 280px;
        }
    }

    .banner-illustration {
        width: 100%;
        height: auto;
        display: block;
    }

    .banner-illustration svg {
        width: 100%;
        height: 100%;
    }

    /* ── UPLOAD TRIGGER ── */
    .upload-trigger-wrap {
        position: absolute;
        bottom: 60px;
        right: 16px;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        width: auto;
        max-width: none;
        background: transparent;
        cursor: pointer;
        gap: 0;
    }

    @media (max-width: 767px) {
        .upload-trigger-wrap {
            bottom: 85px !important;
            right: 54px !important;
        }
    }

    .upload-trigger-wrap:hover {
        background: transparent;
    }

    .upload-trigger {
        display: block;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
    }

    .upload-trigger-label {
        display: none;
    }

    #photoInput,
    #videoInput {
        display: none;
    }

    /* ── GALLERY AREA ── */
    .gallery-wrapper {
        width: 100%;
        max-width: 480px;
        padding: 10px 24px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .gallery-container {
        /* width: 100%; */
        width: 350px;
        display: flex;
        align-items: center;
        /* gap: 8px; */
    }

    .arrow-btn {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.15s;
        padding: 0;
    }

    .arrow-btn:active {
        transform: scale(0.88);
    }

    .arrow-btn svg {
        width: 28px;
        height: 28px;
        stroke: #c0392b;
        fill: none;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .image-frame {
        flex: 1;
        aspect-ratio: 1/1;
        border: 5px solid #c0392b;
        border-radius: 28px;
        overflow: hidden;
        background: #faf9f7;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 16px rgba(192, 57, 43, 0.10);
        height: 370px;
    }

    .image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
        animation: fadeIn 0.4s ease;
    }

    .image-frame img.active {
        display: block;
    }

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        color: #c9a98a;
    }

    .empty-state svg {
        width: 48px;
        height: 48px;
        stroke: #c9a98a;
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .empty-state p {
        font-size: 0.82rem;
        text-align: center;
        line-height: 1.5;
    }

    /* dots */
    .dots {
        display: flex;
        gap: 7px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c9a98a;
        transition: background 0.2s, transform 0.2s;
    }

    .dot.active {
        background: #7b2d3e;
        transform: scale(1.3);
    }

    .counter {
        font-size: 0.78rem;
        color: #7b2d3e88;
        letter-spacing: 0.05em;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.98);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes heartbeat {
        0% {
            transform: scale(1);
        }

        14% {
            transform: scale(1.08);
        }

        28% {
            transform: scale(1);
        }

        42% {
            transform: scale(1.05);
        }

        56% {
            transform: scale(1);
        }

        100% {
            transform: scale(1);
        }
    }

    #uploadWrap,
    #videoWrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .upload-hint {
        font-size: 0.7rem;
        color: #7b2d3e;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-align: center;
        border-radius: 6px;
        padding: 2px 6px;
        white-space: nowrap;
    }

    /* --- CSS GÜNCELLEMELERİ VE EKLEMELERİ --- */

    /* Sabit Mikrofon Grubu (Sol Alt) */
    .mic-group-fixed {
        position: fixed;
        bottom: 25px;
        left: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Mikrofon Butonu Temel Tasarımı (Style.css'de yoksa diye buraya ekliyoruz) */
    .mic-btn {
        border-radius: 50%;
        /* Tema rengi çerçeve */
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
        padding: 0;
    }

    .mic-btn:hover {
        transform: scale(1.05);
        background: #faf9f7;
    }

    /* Ses Bırakın Balonu (Tooltip) */
    .mic-tooltip {
        background: #7b2d3e;
        /* Counter/Dot aktif rengi */
        color: #ffffff;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        white-space: nowrap;
        position: relative;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        /* Balonun geliş efekti */
        animation: balloonFloat 0.5s ease-out;
        pointer-events: none;
        /* Balona tıklanmasın */
    }

    /* Balonun altındaki üçgen ok */
    .mic-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 7px;
        border-style: solid;
        border-color: #7b2d3e transparent transparent transparent;
    }

    /* Kayıt Sırasında Buton ve Balon Görünümü */
    @keyframes pulse-red {
        0% {
            box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.7);
        }

        70% {
            box-shadow: 0 0 0 15px rgba(192, 57, 43, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
        }
    }

    .mic-btn.recording {
        animation: pulse-red 1.5s infinite;
        background: #c0392b;
        color: #ffffff;
        border-color: #c0392b;
    }

    /* Kayıt başladığında normal balonu gizle */
    .mic-btn.recording+.mic-tooltip,
    .mic-group-fixed.is-recording .mic-tooltip {
        display: none !important;
    }

    /* Kayıt Durumu Göstergesi (Yeni Konum - Sol Alt) */
    #recordingStatus {
        display: none;
        position: fixed;
        bottom: 90px;
        /* Mikrofonun üzerinde */
        left: 20px;
        background: rgba(192, 57, 43, 0.95);
        color: #fff;
        padding: 8px 15px;
        border-radius: 25px;
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        z-index: 1001;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        align-items: center;
        gap: 8px;
    }

    /* Kırmızı kayıt noktası */
    #recordingStatus::before {
        content: '';
        display: inline-block;
        width: 10px;
        height: 10px;
        background-color: #fff;
        border-radius: 50%;
        animation: blink 1s infinite;
    }

    /* Görsel Yükleme Grubu (Eski Yeri - Sağ Alt) */
    .upload-trigger-wrap {
        display: flex;
        align-items: center;
        position: absolute;
        bottom: 60px;
        right: 16px;
        z-index: 10;
    }

    #photoInput,
    #videoInput {
        display: none;
    }

    /* Animasyonlar */
    @keyframes balloonFloat {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes blink {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.3;
        }
    }

    /* Ana kapsayıcı (İsteğe bağlı olarak genişliği ayarlayabilirsin) */
    .custom-container {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* 2'şerli yan yana dizilim için Grid yapısı */
    .custom-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Yan yana 2 eşit parça oluşturur */
        gap: 20px;
        /* Görseller arasındaki yatay ve dikey boşluk */
    }

    /* Her bir hücrenin içindeki görseli tam ortaya hizalamak için */
    .grid-item {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Görsellerin taşıp tasarımı bozmasını engeller */
    .img-fluid {
        max-width: 100%;
        height: auto;
    }

    /* Kayıt devam ederken ses görselinin yanıp sönme efekti */
    .mic-btn.recording img {
        animation: recordPulse 1s infinite alternate;
        filter: drop-shadow(0 0 12px rgba(255, 59, 48, 0.7));
        /* Kırmızı parlama */
    }

    @keyframes recordPulse {
        0% {
            transform: scale(1);
        }

        100% {
            transform: scale(1.08);
        }
    }

    /* Yazı Bırakma Modal */
    .text-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .text-modal.active {
        display: flex;
    }

    .text-modal-content {
        background: #faf9f7;
        border-radius: 16px;
        padding: 24px;
        width: 100%;
        max-width: 420px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .text-modal-content h3 {
        font-family: 'Dancing Script', cursive;
        font-size: 1.8rem;
        color: #7b2d3e;
        margin-bottom: 6px;
        text-align: center;
    }

    .text-modal-subtitle {
        font-size: 0.85rem;
        color: #888;
        text-align: center;
        margin-bottom: 16px;
    }

    #textMessage {
        width: 100%;
        border: 1px solid #e8e0e0;
        border-radius: 12px;
        padding: 14px;
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        resize: vertical;
        min-height: 120px;
        background: #fff;
        color: #333;
        outline: none;
        transition: border-color 0.2s;
    }

    #textMessage:focus {
        border-color: #7b2d3e;
    }

    .text-modal-counter {
        text-align: right;
        font-size: 0.75rem;
        color: #aaa;
        margin: 6px 0 16px;
    }

    .text-modal-actions {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

    .text-modal-btn {
        padding: 10px 20px;
        border-radius: 25px;
        border: none;
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .text-modal-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .text-modal-btn-cancel {
        background: #eee;
        color: #555;
    }

    .text-modal-btn-submit {
        background: #7b2d3e;
        color: #fff;
    }

    .text-modal-btn-submit:hover:not(:disabled) {
        background: #6a2635;
    }

    #textWrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }