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

body {
    background: #0072ff;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Floating shapes */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    z-index: 0;
}
body::before {
    width: 320px;
    height: 320px;
    background: #fff;
    top: 8%;
    left: 4%;
}
body::after {
    width: 180px;
    height: 180px;
    background: #fff;
    bottom: 12%;
    right: 8%;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: auto;
}

.header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.header .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    font-size: 2.2rem;
    color: #222;
}

.header .icon-container img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

h1 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 2.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header p {
    color: #ffd600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.input-card {
    background: linear-gradient(135deg, #fff 60%, #f7f7fa 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-top: 1rem;
    text-align: center;
}

.card-header h2 {
    color: #222;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.card-header p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-size: 1.1rem;
    text-align: center;
    background: #f7f7f7;
    transition: border 0.2s;
}
input[type="text"]:focus {
    border: 1.5px solid #0072ff;
    outline: none;
}

button#checkButton {
    background: #ffd600;
    color: #222;
    border: none;
    border-radius: 12px;
    padding: 0 1.2rem;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
button#checkButton:hover {
    background: #ffe066;
}

.error-message {
    color: #d32f2f;
    background: #ffeaea;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    display: block;
}

.loading-message {
    color: #0072ff;
    background: #e3f0ff;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.prize-result {
    background: linear-gradient(135deg, #fff 60%, #f7f7fa 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.274);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-top: 1.5rem;
    text-align: center;
}

.prize-icon {
    background: #ffd600;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2rem;
    color: #222;
}

.prize-result h2 {
    color: #0072ff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.prize-text p {
    color: #222;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.visit-branch {
    color: #888;
    font-size: 1rem;
    margin-top: 1rem;
}

.footer {
    color: #fff;
    text-align: center;
    margin-top: 2rem;
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 400;
}

/* Prize Type Specific Colors */
.prize-instant { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.prize-course { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.prize-discount { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.prize-photo { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.prize-beauty { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
.prize-friends { background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%); }
.prize-grand { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding-top: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .input-card {
        padding: 20px;
    }
    
    .prize-result {
        padding: 30px 20px;
    }
    .card-header h2 {
        font-size: 0.95rem;
    }
    .card-header p {
        font-size: 0.75rem;
    }
}

/* RTL Adjustments */
[dir="rtl"] .input-container {
    direction: ltr;
}

[dir="rtl"] #cardNumber {
    direction: ltr;
    text-align: center;
}

/* Hover Effects */
.input-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.prize-result:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.prize-label {
    display: inline-block;
    background: #ffe066;
    color: #333;
    padding: 0.7em 1.5em;
    border-radius: 2em;
    font-size: 1.3em;
    font-weight: bold;
    margin: 1em auto 0 auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    letter-spacing: 0.5px;
}

.footer .sm-icon {
    color: #fff;
    opacity: 0.7;
    margin: 0 0.5em;
    font-size: 1.7em;
    transition: opacity 0.2s, color 0.2s;
    background: none;
    text-decoration: none;
}
.footer .sm-icon:hover {
    opacity: 1;
    color: #ffd600;
}

.footer-info {
    color: #fff;
    opacity: 0.85;
    font-size: 1rem;
    margin-top: 1em;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.2px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2em;
}

.footer-separator {
    border: none;
    border-top: 1.5px solid rgba(255,255,255,0.18);
    margin: 0.5em auto 0.5em auto;
    width: 70%;
}

.footer-info a {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    font-size: 1rem;
}
.footer-info a:hover {
    color: #ffd600;
    opacity: 1;
}