/* assets/style.css - Redesigned Creative Dental Theme */
:root {
    --primary: #1B3B8A; /* Logo Deep Blue */
    --primary-light: #2E5BC0;
    --primary-dark: #112760;
    --accent: #48C1D7; /* Logo Cyan/Light Blue */
    --background: #f0f7f9;
    --text: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 15px 35px rgba(27, 59, 138, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body.dental-theme {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #e0f2f1 0%, #ffffff 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    text-align: right;
}

/* Top Spacer */
.top-spacer {
    height: 40px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: center; /* Center the logo and profile together */
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.header-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.doctor-profile:hover {
    transform: translateY(-3px);
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.doctor-img-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #D4AF37, #FCF6BA, #B38728);
    position: relative;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: gold-pulse 2s infinite ease-in-out;
}

.doctor-img-container::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(0deg, transparent, transparent 30%, #D4AF37);
    animation: rotate-gold 3s linear infinite;
    z-index: -1;
}

@keyframes rotate-gold {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gold-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.7); }
}

.doctor-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.doctor-info {
    text-align: inherit; /* Follows direction */
}

.doctor-info h4 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.1em;
    font-weight: 800;
}

.doctor-info p {
    margin: 0;
    font-size: 0.75em;
    color: #555;
    font-weight: 600;
    max-width: 350px;
    line-height: 1.4;
}

.tagline {
    color: var(--accent);
    font-size: 1.1em;
    font-weight: 700;
    font-style: italic;
    margin-top: 5px;
}

.main-title {
    color: var(--primary);
    font-size: 2.2em; /* Slightly smaller for better balance */
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.site-branding-title {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.header-logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(27, 59, 138, 0.2));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.sub-title {
    color: var(--primary-light);
    font-size: 1.5em;
    font-weight: 700;
}

.header-text {
    flex: 1;
    text-align: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Symmetrical with doctor-profile */
}

.greeting-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.4em;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    color: var(--text);
}

.greeting-box strong {
    color: var(--primary);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Form Styling - Light Theme Restoration */
.form-container {
    width: 100%;
    max-width: 500px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.welcome-box h3 {
    color: var(--primary);
}

.modern-form label {
    color: var(--text);
    opacity: 0.8;
}

.input-wrapper {
    background: white;
    border: 1px solid #e2e8f0;
}

.modern-form input {
    color: var(--text);
}

.form-container {
    width: 100%;
    max-width: 500px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.welcome-box {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-box h3 {
    color: var(--secondary);
    font-size: 1.8em;
    margin-bottom: 10px;
}
.welcome-box p {
    color: #555;
    font-size: 1em;
}

.modern-form .form-group {
    margin-bottom: 25px;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95em;
}

.input-wrapper {
    position: relative;
    border-radius: 12px;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 59, 138, 0.1);
}

.modern-form input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    background: transparent;
    outline: none;
    color: var(--secondary);
}

/* intl-tel-input v24+ Modal-Specific Fixes */
.iti {
    width: 100% !important;
    display: block !important;
}

/* Ensure the dropdown content is always on top when internal to SweetAlert */
.iti__dropdown-content, .iti--fullscreen-popup {
    background-color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    z-index: 1000000 !important; /* Extremely high to beat SweetAlert and other overlays */
    max-height: 250px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    width: 320px !important; /* Slightly wider for ease of use */
    position: absolute !important;
    top: 100% !important;
    left: -10px !important; /* Shifted slightly for "sideways" feel */
    direction: ltr !important; 
    margin-top: 8px !important;
}

.iti--fullscreen-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 1000000 !important;
}

.iti__country-list {
    max-height: 200px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure text is readable and aligned */
.iti__country-name, .iti__dial-code {
    color: #333 !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 16px !important;
}

.iti__country {
    padding: 12px 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

@media (max-width: 480px) {
    .iti__country {
        padding: 15px 20px !important;
    }
    .iti__country-name {
        font-size: 18px !important;
    }
}

.iti__country:hover {
    background-color: #f0f4ff !important;
}

/* SweetAlert container fixes */
.swal2-popup {
    overflow: visible !important;
}

.swal2-html-container {
    overflow: visible !important;
    z-index: 10 !important;
    position: relative !important;
    padding: 1rem 1.25rem !important;
}

/* Button with Pulse Animation */
.spin-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(27, 59, 138, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(27, 59, 138, 0.4);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.spin-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Pulse effect for button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(27, 59, 138, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(27, 59, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(27, 59, 138, 0); }
}
.pulse-effect:not(:disabled) {
    animation: pulse 2s infinite;
}

/* Wheel Layout */
.wheel-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    margin: 0 auto;
}

/* Hide wheel initially */
.wheel-hidden {
    display: none !important;
}

/* Show wheel with animation */
.wheel-visible {
    display: flex !important;
    animation: reveal-wheel 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes reveal-wheel {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wheel-outline {
    padding: 18px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    transition: all 0.5s ease;
}

/* Theme: Crystal Neon (Default) */
.wheel-outline.theme-crystal_neon {
    background: #0f172a; 
    box-shadow: 
        0 0 0 4px #1B3B8A,
        0 0 40px rgba(72, 193, 215, 0.4),
        0 0 0 12px #48C1D7,
        0 0 0 14px rgba(255, 255, 255, 0.2),
        0 0 0 16px #1B3B8A,
        0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Theme: Luxury Gold */
.wheel-outline.theme-luxury_gold {
    background: #001f3f; /* Deep navy */
    box-shadow: 
        0 0 0 4px #B38728,
        0 0 30px rgba(212, 175, 55, 0.3),
        0 0 0 8px #D4AF37,
        0 0 0 12px #FBF5B7,
        0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Theme: Diamond Midnight */
.wheel-outline.theme-modern_glass {
    background: linear-gradient(135deg, #444, #111, #444);
    box-shadow: 
        0 0 0 4px #ccc,
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 0 10px #eee,
        0 0 0 12px #fff,
        0 30px 60px rgba(0, 0, 0, 0.6);
}

.wheel-outline::after {
    display: none; /* Removing the dashed border */
}

#wheelCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    background: transparent;
    display: block;
}

.pointer-golden {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 40px;
    height: 50px;
    background: #FFD700;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    animation: arrow-bounce 1s infinite alternate;
}

@keyframes arrow-bounce {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(5px); }
}

/* Premium Footer & Contact Section */
.footer-premium {
    margin-top: 40px;
    padding: 30px !important;
}

.footer-premium-title {
    color: var(--primary);
    font-size: 1.8em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.footer-premium-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 10px;
}

.footer-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.footer-group {
    width: 100%;
}

.group-title {
    color: var(--primary);
    font-size: 0.9em;
    font-weight: 800;
    margin-bottom: 15px;
    padding-right: 12px;
    border-right: 4px solid var(--accent);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-grid {
    display: grid;
    gap: 15px;
    width: 100%;
}

.social-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.direct-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.contact-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    text-align: right;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.contact-card:hover .card-icon-box {
    transform: rotate(10deg) scale(1.1);
}

.card-label {
    display: block;
    color: var(--primary);
    font-size: 0.95em;
    font-weight: 800;
}

/* Card Specific Colors & Glow Effects */
.wa-card .card-icon-box { background: #25D366; color: white; }
.wa-card:hover { 
    border-color: #25D366; 
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.ig-card .card-icon-box { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
.ig-card:hover { 
    border-color: #bc1888; 
    box-shadow: 0 15px 40px rgba(188, 24, 136, 0.4);
}

.fb-card .card-icon-box { background: #1877F2; color: white; }
.fb-card:hover { 
    border-color: #1877F2; 
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.4);
}

.tt-card .card-icon-box { background: #000000; color: white; }
.tt-card:hover { 
    border-color: #000000; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.x-card .card-icon-box { background: #000000; color: white; }
.x-card:hover { 
    border-color: #000000; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.tel-card .card-icon-box { background: #1B3B8A; color: white; }
.tel-card:hover { 
    border-color: #1B3B8A; 
    box-shadow: 0 15px 40px rgba(27, 59, 138, 0.4);
}

.map-card .card-icon-box { background: #EA4335; color: white; }
.map-card:hover { 
    border-color: #EA4335; 
    box-shadow: 0 15px 40px rgba(234, 67, 53, 0.4);
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-premium {
        padding: 30px 20px !important;
    }
}



/* Responsive Overrides */
@media (max-width: 900px) {
    .container {
        padding: 10px;
    }
    .header {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .header-logo-container { order: 1; }
    .doctor-profile { 
        order: 2; 
        margin: 5px auto 15px; 
        width: 100%;
        max-width: 340px;
    }
    
    .site-branding-title { order: 1; margin-bottom: 15px; }
    .main-title { font-size: 1.3em !important; }

    .header-logo {
        max-width: 180px;
        margin-bottom: 5px;
    }
    
    .main-title {
        font-size: 1.4em !important;
        margin-top: 0 !important;
    }
    
    .sub-title {
        font-size: 1.05em !important;
        color: var(--primary-light);
    }
    
    .tagline {
        font-size: 0.85em;
        font-style: italic;
    }

    .doctor-img-container {
        width: 60px;
        height: 60px;
    }
    .doctor-info h4 {
        font-size: 0.95em;
    }
    .doctor-info p {
        font-size: 0.65em;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .main-content {
        flex-direction: column;
        gap: 15px;
    }
    .wheel-section {
        order: 4;
    }
    .wheel-container {
        padding: 0;
        margin-top: -10px;
        transform: scale(0.95);
    }
    .form-container {
        order: 3;
    }
    .greeting-box {
        order: 2;
    }
    .footer {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-text h1 {
        font-size: 1.8em;
    }
    .header-text h2 {
        font-size: 1.2em;
    }
    .doctor-img {
        width: 50px;
        height: 50px;
    }
    .doctor-profile {
        gap: 10px;
        flex-direction: row;
    }
    .lang-switcher {
        top: 10px;
        left: 10px;
        padding: 5px;
    }
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.85em;
    }
    .glass-panel {
        padding: 20px;
        border-radius: 16px;
    }
    .welcome-box h3 {
        font-size: 1.5em;
    }
    .icon-tooth {
        font-size: 2.2rem;
    }
    .spin-btn {
        padding: 15px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .glass-panel {
        padding: 15px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .form-container, .wheel-container, .contact-info {
        min-width: 0;
        width: 100%;
        padding: 10px 0;
        box-sizing: border-box;
    }
    .main-content {
        gap: 15px;
    }
    .header-text h1 {
        font-size: 1.5em;
    }
    .tagline {
        font-size: 0.9em;
        padding: 6px 15px;
    }
    .wheel-outline {
        padding: 10px;
    }
    .floating-wa {
        width: 55px !important;
        height: 55px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    .floating-wa svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background-color: #25D366 !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    z-index: 999999 !important;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: wa-bounce 2s infinite ease-in-out; 
    text-decoration: none;
}

.floating-wa:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Floating Prizes Button */
.floating-prizes {
    position: fixed !important;
    bottom: 95px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #c29f60, #a6844a) !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(194, 159, 96, 0.4) !important;
    z-index: 999999 !important;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: wa-bounce 2s infinite ease-in-out; 
    text-decoration: none;
    color: white !important;
    font-size: 1.5rem !important;
}

.floating-prizes:hover .prizes-tooltip {
    opacity: 1;
    visibility: visible;
}

.floating-prizes:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(194, 159, 96, 0.6);
    animation: none;
}

.prizes-tooltip {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    background: white;
    color: #c29f60;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #c29f60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.prizes-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.floating-wa svg {
    width: 35px !important;
    height: 35px !important;
    display: block !important;
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.wa-tooltip {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    background: white;
    color: #25D366;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #25D366;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

@keyframes wa-label-bounce {
    0%, 100% { transform: translateX(50%) translateY(0); }
    50% { transform: translateX(50%) translateY(-5px); }
}

@keyframes wa-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Top Navigation Styles */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 100;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1em;
    padding: 10px 20px;
    background: var(--glass-bg);
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(5px); /* Moves towards the icon in RTL */
    background: white;
    box-shadow: 0 5px 15px rgba(27, 59, 138, 0.2);
    color: var(--accent);
}

.back-icon {
    font-size: 1.2em;
    transform: rotate(180deg); /* Points right in RTL (Back is right) */
    display: inline-block;
}

/* Update original lang-switcher for header placement */
.lang-switcher {
    position: static;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px;
    border-radius: 40px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 2px;
}

.lang-globe {
    font-size: 1.1em;
    margin: 0 8px;
    opacity: 0.7;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

.lang-btn:hover:not(.active) {
    background: rgba(27, 59, 138, 0.05);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 59, 138, 0.3);
}

/* LTR Overrides */
body[dir="ltr"] {
    text-align: left;
}

body[dir="ltr"] .back-link:hover {
    transform: translateX(-5px); /* Moves towards left in LTR */
}

body[dir="ltr"] .back-icon {
    transform: rotate(0deg); /* Points left in LTR (Back is left) */
}
body[dir="ltr"] .contact-list li {
    flex-direction: row;
}
body[dir="ltr"] th, body[dir="ltr"] td, body[dir="ltr"] .contact-info p {
    text-align: left;
}

/* Voucher Modal Styling */
.voucher-card {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border: 2px dashed var(--primary);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.voucher-card::before, .voucher-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.voucher-card::before { left: -12px; border-right: 2px dashed var(--primary); }
.voucher-card::after { right: -12px; border-left: 2px dashed var(--primary); }

.voucher-prize {
    font-size: 1.5em;
    color: var(--primary);
    font-weight: 800;
    display: block;
    margin: 10px 0;
}

.voucher-logo {
    max-width: 80px;
    opacity: 0.6;
    margin-bottom: 10px;
}

.swal2-actions-custom {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-modal {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-modal-wa { background: #25D366; color: white; }
.btn-modal-call { background: var(--primary); color: white; }
.btn-modal-map { background: #fdfdfd; color: #555; border: 1px solid #ddd; }

.btn-modal:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
/* assets/cleaning.css */
@import 'style.css';

:root {
    --gold: #bf953f;
}

.game-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(184, 138, 68, 0.5));
}

.lang-switch button {
    background: var(--gold);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.main-content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 40px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.game-title {
    font-size: 2.5em;
    font-weight: 800;
    text-align: center;
    color: var(--secondary);
    margin-bottom: 40px;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.game-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.cleaning-area {
    width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(184, 138, 68, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.tooth-wrapper {
    position: relative;
    cursor: none; /* Hide real cursor on the tooth */
}

.tooth-model {
    font-size: 220px;
    filter: drop-shadow(0 0 40px rgba(0,0,0,0.8));
    transition: filter 0.5s ease, transform 0.2s;
    user-select: none;
    z-index: 5;
}

.tooth-model.dirty {
    filter: grayscale(1) brightness(0.15) contrast(1.2) drop-shadow(0 0 20px black);
}

.sparkle-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    mix-blend-mode: screen;
}

.brush-tool {
    position: absolute;
    font-size: 80px;
    pointer-events: none;
    z-index: 100;
    display: none;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    transform-origin: center;
}

.action-btn {
    margin-top: 10px;
}

.progress-box {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.1s;
}

.progress-text {
    font-weight: bold;
    color: #4CAF50;
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    .game-title {
        font-size: 1.5em;
    }
    .tooth-model {
        font-size: 120px;
    }
}
/* assets/slots.css */
:root {
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --gold-shadow: 0 10px 20px rgba(184, 138, 68, 0.4);
    --slot-bg: #1a1a1a;
    --icon-height: 150px;
}

.slot-machine-container {
    perspective: 1000px;
    margin: 40px auto;
    max-width: 800px; /* Wider for horizontal look */
    color: #333;
}

.machine-body {
    background: #111;
    border-radius: 20px;
    padding: 40px 60px; /* More horizontal padding */
    position: relative;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.7), 
        inset 0 0 30px rgba(194, 159, 96, 0.4);
    border: 8px solid;
    border-image: var(--gold-gradient) 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* 3D Golden Frame Effect */
.machine-body::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px; right: -15px; bottom: -15px;
    border-radius: 50px;
    border: 4px solid #aa771c;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(194, 159, 96, 0.3);
}

.reels-container {
    display: flex;
    gap: 15px;
    background: var(--slot-bg);
    padding: 20px;
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    height: 250px;
    overflow: hidden;
    position: relative;
    border: 4px solid #444;
}

/* Win Line Indicator */
.reels-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 215, 0, 0.4);
    transform: translateY(-50%);
    box-shadow: 0 0 15px gold;
    z-index: 5;
    pointer-events: none;
}

.reel {
    flex: 1;
    background: white;
    border-radius: 10px;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.reel-strip {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: none; /* Fixed: Prevents conflict with JS animation frames */
}

.slot-icon {
    height: var(--icon-height);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    border-bottom: 2px solid #eee;
    background: white;
}

/* Lever Arm Styling */
.lever-container {
    position: absolute;
    right: -40px; /* Tucked closer to the wide body */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 250px;
    z-index: 100;
}

.lever-base {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.lever-arm {
    width: 12px;
    height: 120px;
    background: var(--gold-gradient);
    position: absolute;
    bottom: 30px;
    left: 24px;
    border-radius: 6px;
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    cursor: pointer;
    z-index: 101;
}

.lever-knob {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #b30000);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.1s;
}

.lever-arm.pulled {
    transform: rotateX(60deg) translateY(20px);
}

.lever-arm.ready .lever-knob {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: gold-pulse 1.5s infinite;
}

@keyframes gold-pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px gold; }
    50% { transform: scale(1.1); box-shadow: 0 0 25px gold; }
    100% { transform: scale(1); box-shadow: 0 0 10px gold; }
}

.lever-arm:hover .lever-knob {
    transform: scale(1.1);
}

/* Button Ready State */
.spin-btn.ready {
    background: linear-gradient(135deg, #bf953f, #aa771c);
    box-shadow: 0 0 15px rgba(184, 138, 68, 0.6);
}

/* Lights around the machine */
.lights {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.light {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.3; background: #fff; box-shadow: 0 0 5px #fff; }
    50% { background: #ffd700; box-shadow: 0 0 15px #ffd700; }
    100% { opacity: 1; background: #ff4d4d; box-shadow: 0 0 20px #ff4d4d; }
}

.light:nth-child(even) {
    animation-delay: 0.5s;
}

/* Machine Title */
.machine-title {
    text-align: center;
    color: gold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(255,215,0,0.5);
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 900;
}

@media (max-width: 768px) {
    :root {
        --icon-height: 80px; /* Even smaller for mobile horizontal */
    }
    .slot-machine-container {
        margin: 20px auto;
        padding-right: 20px;
        max-width: 98%;
    }
    .machine-body {
        padding: 20px 30px;
        min-height: 250px;
    }
    .lever-container {
        right: -10px;
        scale: 0.5;
    }
    .slot-icon {
        font-size: 40px;
    }
    .reels-container {
        height: 140px;
        gap: 8px;
        padding: 10px;
    }
    .machine-title {
        font-size: 1.5em;
    }
}
:root {
    --gold-primary: #bf953f;
    --gold-secondary: #fcf6ba;
    --gold-accent: #aa771c;
    --bg-dark: #0a0a0a;
}

body.tooth-game-body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(184, 138, 68, 0.5));
}

.lang-switch button {
    background: var(--gold-primary);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.main-content {
    max-width: 1000px;
    margin: 20px auto;
    padding: 40px;
    text-align: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.game-title {
    font-size: 2.5em;
    font-weight: 900;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.game-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.extraction-area {
    flex: 1;
    position: relative;
    height: 400px;
    background: radial-gradient(circle at center, rgba(184, 138, 68, 0.1) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tooth-socket {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(255,255,255,0.1);
}

.tooth-model {
    font-size: 150px;
    cursor: pointer;
    transition: transform 0.1s;
    user-select: none;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.tooth-model.wobble {
    animation: wobble 0.2s infinite;
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.pliers-tool {
    position: absolute;
    font-size: 80px;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    transition: transform 0.1s;
    display: none; /* Controlled by JS */
}

.form-section {
    flex: 1;
    text-align: right;
    max-width: 400px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--gold-secondary);
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--gold-primary);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(184, 138, 68, 0.3);
}

.action-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #bf953f, #aa771c);
    border: none;
    border-radius: 15px;
    color: black;
    font-size: 1.3em;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(184, 138, 68, 0.4);
}

.action-btn.ready {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(184, 138, 68, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(184, 138, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 138, 68, 0); }
}

.game-instruction {
    margin-top: 20px;
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    .main-content {
        padding: 20px;
    }
    .game-title {
        font-size: 1.8em;
    }
    .extraction-area {
        height: 300px;
    }
    .tooth-model {
        font-size: 100px;
    }
}
