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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #e74c9c 0%, #b24d9c 50%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Animated Background for Pages */
body.animated-bg {
    background: linear-gradient(135deg, #e74c9c, #b24d9c, #764ba2, #667eea, #e74c9c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.btn-download {
    background: white;
    color: #667eea !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-register {
    background: white;
    color: #667eea !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-login {
    background: transparent;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid white;
    font-weight: 600;
    font-size: 13px;
}

.btn-login:hover {
    background: white;
    color: #667eea !important;
    transform: translateY(-2px);
}

.btn-admin,
.btn-dashboard {
    background: white;
    color: #667eea !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.btn-admin:hover,
.btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-logout {
    background: transparent;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid white;
    font-weight: 600;
    font-size: 13px;
}

.btn-logout:hover {
    background: white;
    color: #667eea !important;
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector {
    background: white;
    color: #333;
    border: 2px solid #667eea;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 24px;
    min-width: 100px;
}

.language-selector:hover {
    border-color: #764ba2;
    background-color: #f8f9fa;
}

.language-selector:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.language-selector option {
    padding: 4px 8px;
}

/* Beautiful Auth Pages (Login & Register) */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.auth-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-header h1 {
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.auth-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 14px;
}

.auth-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.btn-gradient-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s;
}

.btn-gradient-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.auth-footer {
    text-align: center;
    padding: 25px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert code {
    display: block;
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-card {
        border-radius: 15px;
    }
    
    .auth-header {
        padding: 30px 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-form {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .input-with-icon input {
        padding: 12px 12px 12px 42px;
    }
    
    .btn-gradient-primary {
        padding: 14px;
        font-size: 15px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e74c9c 0%, #b24d9c 50%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #e74c9c;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #e74c9c;
}

.hero-image {
    flex: 0 0 300px;
}

.icon-box {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* Highlights Section */
.highlights {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.price-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 30px;
}

.price span {
    font-size: 18px;
    color: #666;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    padding: 12px 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    width: 100%;
    text-align: center;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Instructions Section */
.instructions {
    padding: 80px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #333;
}

.contact-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 6px;
    }
    
    .nav-menu a {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .btn-download,
    .btn-register,
    .btn-login {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .language-selector {
        font-size: 11px;
        min-width: 90px;
        padding: 6px 8px;
        padding-right: 22px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}
