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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left,
.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

.main-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
    text-align: center;
    flex: 1;
}

.obfx-v2-btn, .language-btn, .zoom-btn, .autograph-btn, .change-password-btn, .exit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.language-btn, .zoom-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.autograph-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.change-password-btn {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

.exit-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.obfx-v2-btn:hover, .language-btn:hover, .zoom-btn:hover, .autograph-btn:hover, .change-password-btn:hover, .exit-btn:hover {
    transform: translateY(-3px);
}

.obfx-v2-btn:hover {
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.language-btn:hover, .zoom-btn:hover, .autograph-btn:hover {
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.5);
}

.change-password-btn:hover {
    box-shadow: 0 12px 35px rgba(156, 39, 176, 0.5);
}

.exit-btn:hover {
    box-shadow: 0 12px 35px rgba(244, 67, 54, 0.5);
}

.content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 100px;
}

/* Fixed Zoom Scale for Main Containers - Center Origin */
.content.zoomed {
    transform-origin: center center; /* Fixed zoom centering */
    transition: transform 0.3s ease;
}

.login-screen, .loading-screen, .success-screen, .main-menu, .receipt-screen,
.autograph-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    
    max-width: 550px; /* Reduced width */
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.login-screen::before, .loading-screen::before, .success-screen::before, .main-menu::before,
.receipt-screen::before, .autograph-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.4), transparent);
}

/* Login Screen */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
}

.websocket-input {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.websocket-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.websocket-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-login {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.login-icon {
    font-size: 20px;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    animation: fadeIn 0.5s ease-in-out;
}

.loading-animation {
    margin-bottom: 30px;
}

.dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 500;
}

/* Success Screen */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    margin-bottom: 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    animation: checkmark-scale 0.3s ease-in-out 0.9s both;
    filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.5));
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.success-text {
    font-size: 18px;
    color: #4CAF50;
    text-align: center;
    font-weight: 600;
}

/* Main Menu */
.main-menu {
    animation: fadeIn 0.5s ease-in-out;
}

/* User Info Section - Simplified */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.4), transparent);
}

.avatar-container {
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.avatar-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #4CAF50, #45a049, #4CAF50);
    background-size: 200% 200%;
    animation: gradient-rotate 3s ease infinite;
    z-index: -1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.user-details {
    flex: 1;
}

.username {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.menu-section h2 {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-buttons .btn {
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 16px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.menu-item h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Daily Task Section */
.daily-task-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(69, 160, 73, 0.05) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.daily-task-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Change Mood Screen - FIXED */
.change-mood-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

.mood-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mood-header h2 {
    font-size: 28px;
    color: #4CAF50;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mood-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.nav-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.nav-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.mood-display {
    flex: 1;
    text-align: center;
}

.mood-image-container {
    position: relative;
    width: 235px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(76, 175, 80, 0.3);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.mood-image-container:hover {
    border-color: #4CAF50;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.4);
    transform: scale(1.02);
}

.mood-image {
    
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mood-image-container:hover .mood-image {
    transform: scale(1.05);
}

.mood-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.mood-number {
    color: #4CAF50;
    font-family: 'Courier New', monospace;
}

.mood-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mood-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.btn-apply {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

/* Change Password Screen - FIXED */
.change-password-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.password-header h2 {
    font-size: 28px;
    color: #9C27B0;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(156, 39, 176, 0.3);
}

.password-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.user-info-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fixed spacing for password inputs */
.input-group-spaced {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-input:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 0 4px rgba(156, 39, 176, 0.15);
    transform: translateY(-1px);
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Download Confirmation Dialog */
.download-confirm-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.download-confirm-dialog h3 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.download-confirm-dialog p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.dialog-buttons-triple {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-info {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.5);
}

/* Help Dialog */
.help-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.help-dialog h3 {
    color: #FF9800;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.help-dialog p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Autograph Screen */
.autograph-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.autograph-modal {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    animation: none;
}

.autograph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.autograph-header h2 {
    font-size: 24px;
    color: #2196F3;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
    margin: 0;
}

.autograph-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.autograph-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.username-input, .greeting-select {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.username-input:focus, .greeting-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
    transform: translateY(-1px);
}

.username-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.greeting-select option {
    background: #1a1a2e;
    color: white;
}

.autograph-status {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.status-log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    min-height: 120px;
    max-height: 120px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

.status-log::-webkit-scrollbar {
    width: 6px;
}

.status-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.status-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* OBFX V2 Info Dialog */
.obfx-v2-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    
    text-align: left;

    /* ZOOM */
    transform: scale(0.8);
    transition: transform 0.25s ease;
}


.obfx-v2-dialog h3 {
    color: #4CAF50;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.v2-info-content {
    margin-bottom: 30px;
}

.feature-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.feature-section h4 {
    color: #2196F3;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
}

.feature-section ul {
    list-style: none;
    padding: 0;
}

.feature-section li {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-left: 4px solid #4CAF50;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
}

.feature-section li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.coming-soon {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    margin: 25px 0;
}

.coming-soon span {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Buttons */
.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-start {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border-radius: 16px;
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-small {
    padding: 12px 16px;
    font-size: 14px;
}

.icon {
    font-size: 18px;
}

/* Progress */
.progress-container {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 8px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.progress-text {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.progress-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Receipt Screen */
.receipt-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    animation: fadeIn 0.5s ease-in-out;
}

.receipt {
    background: white;
    color: black;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Courier New', monospace;
    position: relative;
}

.receipt::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.receipt-line {
    border-top: 2px dashed #333;
    margin: 15px 0;
}

.receipt-content {
    margin-bottom: 20px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 18px;
}

.receipt-close {
    width: 100%;
    margin-top: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.receipt-close:hover {
    background: #45a049;
}

/* Footer */
.panel-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.notification {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.notification.success::before {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.notification.error::before {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.notification.info::before {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.notification.warning::before {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 0.2s ease-in-out;
}

.region-dialog, .language-dialog, .zoom-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.region-dialog h3, .language-dialog h3, .zoom-dialog h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.region-dialog p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.region-buttons, .dialog-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Zoom Dialog */
.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.zoom-btn-control {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn-control:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

#zoomLevel {
    font-size: 28px;
    font-weight: bold;
    color: #2196F3;
    min-width: 80px;
}

.zoom-presets {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.zoom-preset {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.zoom-preset:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.zoom-preset.active {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #2196F3;
}

.zoom-dialog-footer {
    text-align: center;
    margin-top: 20px;
}

/* Fixed Language Dialog - Responsive button container */
.language-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.language-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.region-choice-btn, .language-choice-btn {
    min-width: 135px;
    padding: 20px 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-choice-btn {
    width: 100%;
    min-width: auto;
}

.region-choice-btn .icon, .language-choice-btn .icon {
    font-size: 24px;
}

/* Language Dialog Specific Styles */
.current-language {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-language p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.current-language span {
    color: #4CAF50;
    font-weight: 700;
}

.language-choice-btn.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.language-dialog-footer {
    text-align: center;
    margin-top: 20px;
}

/* Dialog buttons */
.dialog-buttons .btn {
    min-width: 120px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 15px;
        padding-top: 90px;
    }

    .login-screen, .loading-screen, .success-screen, .main-menu, .receipt-screen, 
    .autograph-screen, .change-mood-screen, .change-password-screen {
        padding: 25px;
        border-radius: 20px;
        max-width: 100%;
    }

    .main-header h1 {
        font-size: 22px;
    }

    .header-left, .header-right {
        gap: 10px;
    }

    .obfx-v2-btn, .language-btn, .zoom-btn, .autograph-btn, .change-password-btn, .exit-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .region-buttons, .dialog-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .dialog-buttons-triple {
        flex-direction: column;
        gap: 12px;
    }

    .region-choice-btn {
        min-width: auto;
        width: 100%;
    }

    .language-choice-btn {
        width: 100%;
    }

    .daily-task-buttons {
        grid-template-columns: 1fr;
    }

    .mood-selector {
        flex-direction: column;
        gap: 20px;
    }

    .mood-image-container {
        width: 150px;
        height: 150px;
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .notification-container {
        top: 80px;
    }

    .mood-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-header {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .main-header h1 {
        order: 1;
        width: 100%;
        text-align: center;
        flex: none;
    }

    .header-left {
        order: 2;
        flex: none;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-right {
        order: 3;
        flex: none;
        justify-content: center;
        flex-wrap: wrap;
    }

    .password-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .download-confirm-dialog, .help-dialog {
        max-width: 400px;
        padding: 25px;
    }

    .zoom-controls {
        gap: 15px;
    }

    .zoom-presets {
        gap: 10px;
    }

    .zoom-preset {
        padding: 10px 16px;
        font-size: 14px;
    }

    .feature-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .obfx-v2-dialog {
        max-width: 95%;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 15px;
    }

    .main-header h1 {
        font-size: 18px;
    }

    .obfx-v2-btn, .language-btn, .zoom-btn, .autograph-btn, .change-password-btn, .exit-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .login-screen, .main-menu, .autograph-screen {
        padding: 20px;
    }

    .mood-image-container {
        width: 120px;
        height: 120px;
    }

    .header-left, .header-right {
        gap: 8px;
    }

    .zoom-controls {
        gap: 10px;
    }

    .zoom-presets {
        gap: 8px;
    }

    .zoom-preset {
        padding: 8px 12px;
        font-size: 13px;
    }

    .obfx-v2-dialog {
        padding: 25px;
    }

    .feature-section li {
        font-size: 13px;
        padding: 10px 14px;
    }

    .coming-soon span {
        font-size: 20px;
    }
}
