/* ============================================
   TRUETST - Main Stylesheet
   Matching Flutter App UI/UX
   ============================================ */

/* CSS Variables - Color Palette */
:root {
    --primary-pink: #E91E63;
    --primary-light: #E879A6;
    --primary-dark: #D65A87;
    --secondary-pink: #F4A6CD;
    --yellow-bg: #FDDD94;
    --cream-bg: #F5F5F5;
    --white: #FFFFFF;
    --black: #000000;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
    --whatsapp-green: #25D366;
    --error-red: #EF4444;
    --sunburst-pink: #FF8798;
    --sunburst-light: #FFA5B3;
    --sunburst-dark: #E5707F;
    --input-red: #F63049;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--yellow-bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--yellow-bg);
}

.menu-btn,
.lang-btn {
    width: 40px;
    height: 40px;
    background-color: var(--primary-pink);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: white;
}

.menu-btn:hover,
.lang-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.menu-btn:active,
.lang-btn:active {
    transform: scale(0.95);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-pink);
    letter-spacing: 1px;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#menuDropdown {
    left: 16px;
}

#langDropdown {
    right: 16px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item svg {
    color: var(--primary-pink);
    flex-shrink: 0;
}

.dropdown-item .flag {
    font-size: 20px;
}

.dropdown-item.active {
    color: var(--primary-pink);
    font-weight: 600;
}

.dropdown-item .check-icon {
    margin-left: auto;
    color: var(--primary-pink);
}

/* ============================================
   TEST CARDS GRID
   ============================================ */
.test-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
}

.test-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.test-card:active {
    transform: scale(0.97);
}

.card-image {
    aspect-ratio: 1 / 1.1;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.test-card:hover .card-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-emoji {
    font-size: 48px;
}

.card-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   AD BANNER
   ============================================ */
.ad-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    color: #999;
    font-size: 12px;
}

/* ============================================
   TEST PAGE STYLES
   ============================================ */
.test-page {
    background-color: #FFB6C1;
}

.test-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F2819B;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-top: 16px;
}

/* Test Page - Pink Background with Cream Card */
.test-page-wrapper {
    min-height: 100vh;
    background-color: #F2819B;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.test-card {
    background-color: #FAF1E2;
    border-radius: 16px;
    padding: 30px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.test-card-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid #F2819B;
    border-radius: 12px;
    padding: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(242, 129, 155, 0.3);
}

.test-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 12px;
    line-height: 1.3;
}

.test-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.test-card-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    outline: none;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.test-card-input:focus {
    border-color: #E91E63;
}

.test-card-input::placeholder {
    color: #999;
}

.test-card-submit {
    width: 50%;
    padding: 9px;
    font-size: 18px;
    background-color: #F2819B;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0 auto 24px;
    display: block;
    animation: pulseEffect 2s infinite ease-in-out;
}

.test-card-submit:hover {
    animation: pulseEffect 4s infinite ease-in-out;
}

.test-card-submit:active {
    background-color: #003c8f;
}

@keyframes pulseEffect {
    0% {
        transform: scale(1);
        background-color: #FFB8E4;
        opacity: 1;
    }
    30% {
        transform: scale(1.05);
        background-color: #F2819B;
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        background-color: #718E4C;
        opacity: 0.7;
    }
    70% {
        transform: scale(1.05);
        background-color: #3A6B8B;
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        background-color: #B2D7E9;
        opacity: 1;
    }
}

.test-card-playstore {
    display: block;
    width: 180px;
    margin: 0 auto 20px;
}

.test-card-playstore img {
    width: 100%;
    height: auto;
}

.test-card-languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.test-lang {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #3D5AFE;
    text-decoration: none;
    transition: color 0.2s ease;
}

.test-lang:hover {
    color: #E91E63;
}

.test-lang.active {
    color: #E91E63;
    font-weight: 600;
}

/* Back Button */
.back-btn {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
}

.back-btn:hover {
    transform: scale(1.05);
}

/* Old Test Input Screen (keeping for compatibility) */
.test-input-screen {
    padding: 20px 32px;
    padding-top: 60px;
}

.test-question {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--input-red);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 60px;
}

.name-input {
    width: 100%;
    padding: 16px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.87);
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.name-input:focus {
    border-bottom: 2px solid var(--input-red);
}

.name-input::placeholder {
    color: #bbb;
}

.start-btn {
    width: 100%;
    height: 56px;
    margin-top: 50px;
    background-color: var(--input-red);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(246, 48, 73, 0.3);
}

.start-btn:active {
    transform: scale(0.98);
}

/* ============================================
   SUNBURST BACKGROUND
   ============================================ */
.sunburst-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.sunburst-container {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    animation: rotateSunburst 120s linear infinite;
}

@keyframes rotateSunburst {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.sunburst-ray {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
}

/* ============================================
   RESULTS PAGE
   ============================================ */
.results-page {
    background-color: transparent;
}

.results-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: #F2819B;
}

.results-content {
    padding: 70px 16px 24px;
    position: relative;
    z-index: 10;
}

.results-back-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100;
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 20px;
    padding: 60px 24px 50px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.hello-text {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: black;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 40px;
}

.instruction-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: black;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* WhatsApp Button */
.whatsapp-btn {
    width: 100%;
    height: 56px;
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.whatsapp-btn:hover {
    animation: none;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

/* Like/Dislike Section */
.feedback-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.feedback-text {
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.54);
}

.like-btn,
.dislike-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.like-btn {
    background-color: var(--primary-pink);
    color: white;
}

.dislike-btn {
    background-color: #ddd;
    color: #666;
}

.like-btn:hover,
.dislike-btn:hover {
    transform: scale(1.05);
}

/* Next Tests Section */
.next-tests-section {
    margin-top: 24px;
}

.next-tests-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    padding-left: 8px;
}

.next-tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.next-test-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 8px;
    transition: transform 0.2s ease;
}

.next-test-card:active {
    transform: scale(0.95);
}

.next-test-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 6px;
}

.next-test-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-test-emoji {
    font-size: 32px;
}

.next-test-title {
    font-size: 8px;
    font-weight: 600;
    color: black;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.load-more-btn {
    display: block;
    margin: 16px auto;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PREMIUM RESULT CARD (for sharing)
   ============================================ */
.premium-card {
    width: 350px;
    padding: 32px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
}

.premium-header {
    padding: 12px 20px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.premium-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.premium-results {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-result-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.result-emoji-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
}

.result-info {
    flex: 1;
}

.result-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.result-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.result-percentage {
    padding: 6px 12px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-left: 16px;
}

/* Single Result Style */
.single-result {
    text-align: center;
}

.single-emoji-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 16px;
}

.single-result-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.check-yours {
    margin-top: 20px;
    padding: 10px 24px;
    border-radius: 20px;
    display: inline-block;
}

.check-yours span {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   LANGUAGE SELECTION PAGE
   ============================================ */
.language-page {
    background-color: var(--yellow-bg);
}

.language-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.language-icon {
    width: 80px;
    height: 80px;
    margin: 40px auto 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.language-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.87);
    text-align: center;
    margin-bottom: 8px;
}

.language-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.54);
    text-align: center;
    margin-bottom: 32px;
}

.language-list {
    flex: 1;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background-color: #f9f9f9;
}

.language-item .flag {
    font-size: 28px;
    margin-right: 16px;
}

.language-item .name {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

.language-item.selected .name {
    color: var(--primary-pink);
    font-weight: 600;
}

.language-item .radio {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-item.selected .radio {
    border-color: var(--primary-pink);
    background: var(--primary-pink);
}

.language-item.selected .radio::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.continue-btn {
    width: 100%;
    height: 56px;
    margin-top: 24px;
    background-color: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.continue-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4);
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(233, 30, 99, 0.2);
    border-top-color: var(--primary-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--error-red);
}

.toast.success {
    background: var(--whatsapp-green);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 400px) {
    .test-question {
        font-size: 26px;
    }
    
    .hello-text {
        font-size: 26px;
    }
    
    .instruction-text {
        font-size: 14px;
    }
}

@media (min-width: 481px) {
    .app-container,
    .test-container,
    .results-container,
    .language-container {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   HIDDEN ELEMENTS FOR SCREENSHOT
   ============================================ */
.screenshot-container {
    position: absolute;
    left: -9999px;
    top: 0;
}

/* ============================================
   RATING DIALOG
   ============================================ */
.modal-overlay {
    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;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rating-dialog {
    background: linear-gradient(to bottom, #FFF5F5, white);
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 350px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .rating-dialog {
    transform: scale(1);
}

.rating-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.rating-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.rating-star {
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #ddd;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-star.active {
    color: #FFD700;
}

.rating-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.rating-later {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #666;
    border: none;
    font-size: 14px;
    cursor: pointer;
}
