@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    margin: 0;
    padding: 0;
    color: #333;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner {
    text-align: center;
    margin-bottom: 20px;
}

.nav {
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 3px solid #ffd700;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.nav a:hover::before {
    left: 100%;
}

.nav a:hover {
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.lang-selector a {
    margin: 0 5px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 15px;
}

.lang-selector a:hover {
    background: rgba(255,255,255,0.4);
}

.container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 20px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-radius: 20px;
    min-height: calc(100vh - 80px);
    animation: slideUp 0.8s ease-out;
    color: #333;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

h1, h2, h3, p {
    color: #333;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #0056b3;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

h1::before {
    content: '\f51c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -40px;
    top: 0;
    color: #007bff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

input, button {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

input::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
}

input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0,123,255,0.3);
    transform: scale(1.02);
}

button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(45deg, #20c997, #17a2b8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.pepe-card {
    border: 2px solid #e1e5e9;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(145deg, #0da33f, #f8f9fa);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #333;
}

.pepe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
}

.pepe-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: #007bff;
}

.pepe-card h3::before {
    content: '\f521';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #007bff;
}

.box {
    border: 2px solid #e1e5e9;
    padding: 25px;
    margin-bottom: 25px;
    background: linear-gradient(145deg, #0da33f, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    color: #333;
}

.box::before {
    content: '\f4d6';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #007bff;
    font-size: 24px;
}

.box:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #28a745;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

table, th, td {
    border: 1px solid #0fb617;
}

th, td {
    padding: 15px;
    text-align: left;
    transition: background 0.3s ease;
}

th {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

tr:hover {
    background: #e3f2fd;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.error {
    color: #dc3545;
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success {
    color: #28a745;
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #28a745;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.balance {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    text-align: center;
    margin: 30px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #28a745, 0 0 10px #28a745, 0 0 15px #28a745; }
    to { text-shadow: 0 0 10px #28a745, 0 0 20px #28a745, 0 0 30px #28a745; }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        border-radius: 15px;
    }
    .collection {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    input, button {
        max-width: 100%;
    }
    h1::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .collection {
        grid-template-columns: 1fr;
    }
    .pepe-card, .box {
        padding: 20px;
    }
    h1 {
        font-size: 28px;
    }
    .balance {
        font-size: 24px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pepe-card:hover {
    animation: bounce 0.8s ease-in-out;
}

.fas:hover {
    animation: rotate 0.6s ease-in-out;
}

button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

input.error {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}