* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page {
    display: none;
    width: 100%;
    max-width: 400px;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.page.active {
    display: block;
}

/* Login Page */
.login-container {
    padding: 40px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.app-title {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Splash Page */
.splash-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fade-in {
    animation: fadeIn 1.5s ease-in;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-circle.large {
    width: 120px;
    height: 120px;
    font-size: 48px;
    margin-bottom: 30px;
}

.splash-title {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.splash-subtitle {
    color: #666;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Loading Page */
.loading-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
}

.timer-container {
    margin-top: 30px;
}

.timer-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.timer-circle span {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.timer-label {
    color: #666;
    font-size: 14px;
}

/* Menu Page */
.menu-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.trial-timer {
    font-size: 48px;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 0 2px 10px rgba(255, 68, 68, 0.3);
    margin-bottom: 10px;
}

.trial-text {
    font-size: 14px;
    opacity: 0.9;
}

.menu-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    padding: 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.receivers-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.loaders-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

/* Contacts Pages */
.contacts-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.contacts-header h2 {
    font-size: 18px;
}

.contacts-list {
    padding: 15px;
}

.contact-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.contact-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.contact-phone {
    color: #667eea;
    font-size: 14px;
}

/* Expired Page */
.expired-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.expired-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.expired-content h2 {
    color: #333;
    margin-bottom: 10px;
}

.expired-content p {
    color: #666;
    margin-bottom: 20px;
    max-width: 250px;
}

.pay-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 480px) {
    .page {
        max-width: 100%;
        border-radius: 0;
    }
}