:root {
    --primary-color: #7029bd;
    --primary-light: #0164fe;
    --secondary-color: #00d28c;
    --accent-color: #e74c3c;
    --accent-dark: #c0392b;
    --text-color: #333;
    --light-color: #fff;
    --light-gray: #f5f5f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --twitter-color: #1DA1F2;
    --whatsapp-color: #25D366;
    --facebook-color: #1877F2;
    --telegram-color: #0088cc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Frutiger LT Arabic';
    src: url('../fonts/SuisseIntl-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Frutiger LT Arabic', Arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-attachment: fixed;
    line-height: 1.6;
}

.container {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: var(--transition);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.header-container {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: center;
}

.language-switcher {
    position: fixed;
    top: 1rem;
    left: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

body[dir="ltr"] .language-switcher {
    left: auto;
    right: 0;
}

.language-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.language-switcher i {
    font-size: 1rem;
}

.refresh-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 1rem auto 0;
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.refresh-button i {
    font-size: 1rem;
}

.logo {
    max-width: 350px;
    height: auto;
    margin: 1.5rem auto 0;
    display: block;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 700;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 130px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #e8dbda);
    border-radius: 4px;
}

.input-group {
    margin-bottom: 1.5rem;
}

body[dir="rtl"] .input-group {
    text-align: right;
}

body[dir="ltr"] .input-group {
    text-align: left;
}

.input-container {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
}

body[dir="rtl"] .input-container label {
    text-align: right;
    padding-right: 1.8rem;
    padding-left: 0;
}

body[dir="ltr"] .input-container label {
    text-align: left;
    padding-left: 1.8rem;
    padding-right: 0;
}

body[dir="rtl"] .input-container.ar-label::after {
    right: 0;
    left: auto;
}

body[dir="ltr"] .input-container.ar-label::after {
    left: 0;
    right: auto;
}

.input-container.ar-label:hover::after {
    width: 100%;
}
input {
    padding: 1rem 1.2rem;
    font-size: 1rem;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Frutiger LT Arabic', Arial, sans-serif;
    background-color: var(--light-gray);
    transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

body[dir="rtl"] #nameInputAr,
body[dir="ltr"] #nameInputEn {
    text-align: right;
}

body[dir="rtl"] #nameInputEn,
body[dir="ltr"] #nameInputAr {
    text-align: left;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: var(--light-color);
    box-shadow: 0 0 0 3px rgba(101, 44, 145, 0.2);
}

input::placeholder {
    color: #999;
    opacity: 1;
}

.button-container {
    margin-top: 1.5rem;
}

button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Frutiger LT Arabic', Arial, sans-serif;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

button:active {
    transform: translateY(0);
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(217, 83, 79, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-container {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

canvas {
    margin: 1.5rem auto;
    border-radius: 15px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    display: none;
    border: 1px solid #eee;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

canvas:hover {
    transform: scale(1.02);
}

.download-share-container {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

#downloadButton {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Frutiger LT Arabic', Arial, sans-serif;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(101, 44, 145, 0.3);
    width: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#downloadButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(101, 44, 145, 0.4);
}

.share-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.share-title {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.twitter {
    background-color: var(--twitter-color);
}

.whatsapp {
    background-color: var(--whatsapp-color);
}

.facebook {
    background-color: var(--facebook-color);
}

.telegram {
    background-color: var(--telegram-color);
}

/* Ø¥Ø¶Ø§ÙØ© Ø£Ù†Ù…Ø§Ø· Ù„Ù„ÙˆØ¶Ø¹ Ø§Ù„Ø¥Ù†Ø¬Ù„ÙŠØ²ÙŠ */

body[dir="ltr"] {
    text-align: left;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    button,
    #downloadButton {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }

    .logo {
        max-width: 300px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .language-switcher {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Ø²ÙŠÙ†Ø© Ø§Ù„Ø¹ÙŠØ¯ Ø§Ù„ØªÙØ§Ø¹Ù„ÙŠØ© */
.eid-background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.interactive-container {
    z-index: 1;
}

.eid-moon {
    position: absolute;
    top: 10%;
    right: 15%;
    font-size: 8rem;
    color: rgba(255, 235, 59, 0.4);
    animation: floatMoon 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 235, 59, 0.6));
}

@keyframes floatMoon {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.eid-star {
    position: absolute;
    color: rgba(255, 235, 59, 0.6);
    animation: twinkle 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 235, 59, 0.8));
}

.star-1 { top: 25%; left: 15%; font-size: 2rem; animation-delay: 0s; }
.star-2 { top: 15%; right: 35%; font-size: 1.5rem; animation-delay: 1.5s; }
.star-3 { top: 40%; right: 10%; font-size: 2.5rem; animation-delay: 2.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ÙÙˆØ§Ù†ÙŠØ³ Ù…Ø¹Ù„Ù‚Ø© */
.lantern-container {
    position: absolute;
    top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: swing 6s ease-in-out infinite;
}

.lantern-container.left { left: 10%; animation-delay: 0s; }
.lantern-container.right { right: 10%; animation-delay: 3s; }

.chain {
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, #d4af37, #f3e5ab);
}

.lantern {
    position: relative;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -5px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transition: transform 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.lantern:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
}

.lantern-top {
    width: 15px;
    height: 15px;
    background: #d4af37;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.lantern-middle {
    width: 35px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 140, 0, 0.8));
    border-radius: 5px;
    position: relative;
    border: 2px solid #d4af37;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lantern-glow {
    width: 15px;
    height: 25px;
    background: #fff;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255, 215, 0, 0) 70%);
    animation: flicker 2s infinite alternate;
}

.lantern-base {
    width: 25px;
    height: 10px;
    background: #d4af37;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* --- LUXURY 360 DESIGN --- */
.scene {
    perspective: 2500px;
    width: 100%;
    max-width: 600px; 
    z-index: 10;
    position: relative;
}

.card-3d-wrap {
    width: 100%;
    position: relative;
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), min-height 0.4s ease;
    transform-style: preserve-3d;
}

.card-3d-wrap.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    width: 100%;
    backface-visibility: hidden;
    position: absolute;
    top: 0; left: 0;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    display: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 0 20px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.header-container, .elegant-input, .button-container, .result-panel > * {
    position: relative;
    z-index: 2;
}

/* Elegant Inputs */
.elegant-input {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
}
.elegant-input input {
    width: 100%;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(112, 41, 189, 0.15);
    border-radius: 16px;
    font-size: 1.2rem;
    font-family: inherit;
    transition: all 0.4s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
    color: var(--text-dark);
}
.elegant-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 20px rgba(112, 41, 189, 0.2), inset 0 2px 5px rgba(0,0,0,0.02);
    transform: translateY(-2px);
}

.elegant-input label {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    display: block;
    font-size: 1.1rem;
}

/* Generate Button - Elegant & Strong */
.pulse-btn {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(112, 41, 189, 0.3);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.pulse-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s ease-in-out;
}

.pulse-btn:hover::before {
    left: 150%;
}

.pulse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(112, 41, 189, 0.5);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.pulse-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(112, 41, 189, 0.3);
}

/* Cards Wrapper for Back */
.cards-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin: 2rem 0;
}

.card-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 50%;
}

.card-option canvas {
    display: block !important;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: none;
    margin: 0;
}

/* Minimalist Generate Button */
.generate-btn.minimalist-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(112, 41, 189, 0.3);
}

.generate-btn.minimalist-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(112, 41, 189, 0.4);
}

/* Clean Download Buttons */
.download-btn-outline {
    background: transparent;
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    font-family: inherit;
}

.download-btn-outline:hover {
    background: rgba(0, 210, 140, 0.05);
}

.download-btn-solid {
    background: var(--secondary-color);
    color: #fff !important;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    font-family: inherit;
}

.download-btn-solid:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.new-greeting-btn {
    margin-top: 2.5rem;
    background: rgba(255,255,255,0.5);
    color: var(--primary-dark);
    border: 2px solid rgba(112, 41, 189, 0.3);
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.new-greeting-btn:hover {
    background: var(--primary-light);
    color: #fff;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.floating-logo {
    animation: floating 3s ease-in-out infinite;
    max-width: 250px;
}
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.glowing-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(112, 41, 189, 0.15);
    font-size: 2.5rem;
    margin-top: 1rem;
}

.premium-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.05));
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 1.2rem;
    width: 100%;
}
.success-icon {
    background: #27ae60;
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

.premium-share {
    background: rgba(255,255,255,0.4);
    border-radius: 16px;
    padding: 1.5rem 3rem;
    border: 1px solid rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .glass-panel { padding: 1.5rem; }
    .cards-wrapper { gap: 10px; flex-wrap: nowrap; }
    .card-option { min-width: 0; }
    .download-btn-outline, .download-btn-solid { font-size: 0.85rem; padding: 8px 5px; }
}


/* --- LUXURY INTERACTIVE INPUTS --- */
.input-container input {
    width: 100%;
    padding: 1.2rem;
    padding-right: 1.2rem;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    background: #f8f9fc !important;
    color: #333 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03) !important;
}

.input-container input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(112, 41, 189, 0.15), inset 0 2px 4px rgba(0,0,0,0.02) !important;
    transform: translateY(-2px) !important;
}

.input-container label {
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    margin-bottom: 0.6rem !important;
    display: block !important;
    font-size: 1rem !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.input-container:focus-within label {
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

/* --- CINEMATIC BUTTON --- */
.minimalist-btn {
    padding: 1.2rem 3rem !important;
    font-size: 1.3rem !important;
    width: 100% !important;
    max-width: 350px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(112, 41, 189, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
}

.minimalist-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.6s ease;
    border-radius: 50%;
    pointer-events: none;
}

.minimalist-btn:hover::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.minimalist-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 25px rgba(112, 41, 189, 0.4) !important;
}

.minimalist-btn:active {
    transform: translateY(2px) scale(0.98) !important;
}

/* --- CINEMATIC TRANSITIONS --- */
.input-group, .button-container, .subtitle {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.cinematic-hide {
    opacity: 0 !important;
    transform: translateY(-30px) scale(0.95) !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.result-container {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.result-container.cinematic-show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

