
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #dbe1ff;
    color: #333;
    height: 100vh;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 480px; /* Mobile-first container */
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Amazon Header Styles */
.amazon-header {
    background: #0d1430; /* Dark blue/black like Amazon app */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    height: 60px;
}

.login-header {
    justify-content: center;
}

.amazon-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.tld {
    font-weight: 400;
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-badge {
    background: white;
    color: #4285f4;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency-symbol {
    font-weight: bold;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #8e94f2; /* Lilac */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-avatar i {
    color: white;
    font-size: 0.9rem;
}

/* Screens Utility */
.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.scrollable {
    overflow-y: auto;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Login Screen Styles */
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

.welcome-title {
    color: #0d1430;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.subtitle {
    color: #0d1430;
    font-size: 1.1rem;
    margin-bottom: 80px;
}

.login-form-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.input-group {
    display: flex;
    gap: 10px;
}

#access-code {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-login {
    background: #f0c14b; /* Amazon yellow button */
    border: 1px solid #a88734;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #111;
}

/* Dashboard Styles */
.dashboard-content {
    padding: 20px;
    background-color: #f5f7fa;
    flex: 1;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Withdrawal Card */
.withdrawal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.security-icon-area {
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #e0f2f1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-circle i {
    color: #009688;
    font-size: 1.5rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.pay-logo i {
    margin-right: 5px;
}

.btn-withdrawal {
    width: 100%;
    background: #0d1430;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Actions Row */
.actions-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.action-card {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.action-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.blue-icon { background: #e3f2fd; color: #2196f3; }
.green-icon { background: #e8f5e9; color: #4caf50; }

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    border: 2px solid white;
}

.action-text span {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.btn-action {
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-yellow { background: #fff9c4; color: #fbc02d; }
.btn-green { background: #d5ffd9; color: #4caf50; }

/* Stats Row */
.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stats-card {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.purple { background: #f3e5f5; color: #9c27b0; }
.orange { background: #ffe0b0; color: #ff9800; }

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-label {
    font-size: 0.75rem;
    color: #999;
}

.stats-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

/* Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-item {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: #0d1430;
}

.center-item {
    position: relative;
    top: -25px;
}

.center-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #0d1430;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 5px 15px rgba(13, 20, 48, 0.4);
}

/* Rating Screen Styles */
.rating-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #e3f2fd;
    overflow-y: auto;
    padding-bottom: 90px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #cfd8dc;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.product-card {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-image-area {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.question-text {
    color: #0d1430;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}

.reward-badge {
    background: #e8f5e9;
    color: #4caf50;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.answers-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-answer {
    width: 100%;
    padding: 15px;
    border: 2px solid white;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    font-size: 1.1rem;
    color: #0d1430;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-answer:hover {
    background: white;
    border-color: #4285f4;
    color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Dynamic Rating Elements */
.binary-options {
    display: flex;
    gap: 15px;
    width: 100%;
}

.btn-option {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    color: white;
}

.btn-option:active {
    transform: scale(0.95);
}

.btn-no {
    background-color: #ff5252;
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3);
}

.btn-yes {
    background-color: #4caf50;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.star-rating i {
    font-size: 2.5rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-rating i.active {
    color: #ffb300;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.text-answer-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-answer-input {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    resize: none;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.text-answer-input:focus {
    border-color: #4285f4;
}

.btn-submit-text {
    width: 100%;
    padding: 15px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

/* Withdrawal Screen Styles */
.withdrawal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    align-items: center;
    padding-top: 40px;
    background-color: #f5f7fa;
}

.error-card {
    width: 100%;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-card h2 {
    color: #0d1430;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.error-icon-area {
    margin-bottom: 10px;
}

.stop-sign {
    width: 120px;
    height: 120px;
    background: #ff3b30;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(255, 59, 48, 0.3);
}

.stop-sign i {
    color: white;
    font-size: 4rem;
}

.verify-cta-card {
    width: 100%;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.verify-cta-card h3 {
    color: #0d1430;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.verify-cta-card p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.4;
    max-width: 250px;
}

.btn-verify-large {
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
    transition: transform 0.1s;
    width: 100%;
    max-width: 200px;
}

.btn-verify-large:active {
    transform: scale(0.95);
}

/* Verify Screen Styles */
.verify-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f5f7fa;
    overflow-y: auto;
    padding-bottom: 90px;
}

.verify-card-form {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.verify-card-form h2 {
    color: #0d1430;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.verify-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.form-group select:focus {
    border-color: #4285f4;
}

.doc-info {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #4285f4;
}

.doc-info ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.doc-info li {
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.doc-info li:last-child {
    margin-bottom: 0;
}

.upload-area {
    margin-top: 10px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    border: 2px dashed #ccc;
    border-radius: 15px;
    cursor: pointer;
    background-color: #fafafa;
    transition: all 0.2s;
    text-align: center;
}

.upload-label:hover {
    border-color: #4285f4;
    background-color: #f0f7ff;
}

.upload-label i {
    font-size: 2rem;
    color: #4285f4;
}

.upload-label span {
    color: #666;
    font-size: 0.9rem;
}

.file-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #4caf50;
    text-align: center;
    font-weight: 500;
}

.btn-submit-verify {
    width: 100%;
    padding: 15px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
    margin-top: 10px;
}

/* Success/Status Card */
.verify-status-card {
    background: white;
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.status-icon-circle.pending {
    background-color: #fff3e0;
}

.status-icon-circle.pending i {
    font-size: 2.5rem;
    color: #ff9800;
}

.status-icon-circle.success {
    background-color: #e8f5e9;
}

.status-icon-circle.success i {
    font-size: 2.5rem;
    color: #4caf50;
}

.verify-status-card h2 {
    color: #0d1430;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.verify-status-card p {
    color: #666;
    margin-bottom: 25px;
}

.timer-box {
    background-color: #f5f5f5;
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timer-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.small-note {
    font-size: 0.8rem !important;
    color: #999 !important;
    margin-bottom: 30px !important;
}

.btn-test-skip {
    background-color: transparent;
    border: 1px dashed #ff3b30;
    color: #ff3b30;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-test-skip:hover {
    background-color: #fff0f0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 320px;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: #0d1430;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-content p {
    color: #666;
    margin-bottom: 15px;
}

.reward-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4caf50;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-claim {
    background: #2196f3;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
    width: 100%;
    transition: transform 0.1s;
}

.btn-claim:active {
    transform: scale(0.95);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Verified Withdrawal Styles */
.withdrawal-title {
    text-align: center;
    color: #0d1430;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.withdrawal-action-card {
    text-align: center;
    padding: 30px 20px !important;
}

.current-balance-display {
    margin-bottom: 30px;
}

.current-balance-display span {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-balance-display h1 {
    font-size: 3rem;
    color: #0d1430;
    margin: 10px 0 0 0;
    font-weight: 800;
}

/* Error Modal Styles */
.error-icon-circle {
    width: 80px;
    height: 80px;
    background: #ffebee;
    color: #d32f2f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.error-btn {
    background-color: #d32f2f !important;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3) !important;
}
