/* Tiempos Sagrados - Cuentas & Donaciones Styles */

.cuenta-container {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 30px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 15px;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

.cuenta-header {
    text-align: center;
    margin-bottom: 30px;
}

.cuenta-header h1 {
    font-family: 'Cinzel', serif;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
}

.cuenta-header p {
    color: #ccc;
}

/* --- Views --- */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.view-section.active {
    display: block;
}

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

/* --- Form Styles --- */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.auth-tab {
    background: none;
    border: none;
    color: #aaa;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 15px;
}

.auth-tab:hover {
    color: #fff;
}

.auth-tab.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.ts-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
}

.form-group input {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* --- User Panel Styles --- */
.user-info-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.link-game-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed var(--secondary-color);
    border-radius: 10px;
}

.link-game-section i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.pin-display {
    display: none;
    margin-top: 25px;
}

.pin-code {
    font-family: monospace;
    font-size: 3rem;
    letter-spacing: 5px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    display: inline-block;
    margin: 15px 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.pin-timer {
    color: #ff4444;
    font-weight: bold;
}

/* --- Donations Gallery --- */
.donations-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.donation-card {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.donation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.donation-card:hover::before {
    opacity: 1;
}

.donation-card h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.donation-points {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.donation-points i {
    font-size: 1.4rem;
}

.donation-price {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Loaders */
.loader {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
