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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

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

/* Admin button top-left */
.admin-trigger {
    display: none;
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 24px;
    transition: color 0.3s ease;
}
.admin-trigger:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Language selector */
.lang-selector {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
}

.lang-selector select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 40px 10px 16px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.lang-selector select:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Center content */
.center-content {
    text-align: center;
}

.center-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #a78bfa, #7c4dff, #536dfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 40px;
}

/* Main button */
.main-btn {
    position: relative;
    display: inline-block;
    padding: 18px 24px;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #7c4dff, #536dfe);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.35);
    margin-bottom: 10px;
}

.main-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.5);
}
.main-btn:active {
    transform: translateY(0) scale(0.98);
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Inputs */
.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}
.form-input:focus {
    border-color: rgba(124, 77, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
}

.code-input {
    font-size: 2.2rem;
    letter-spacing: 12px;
    text-indent: 12px;
    max-width: 280px;
}

/* Secondary button */
.secondary-btn {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    box-shadow: 0 4px 20px rgba(0, 176, 155, 0.35);
}

.danger-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.35);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}
.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-table th {
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.del-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Floating particles */
.particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
}
.particle {
    position: absolute; width: 4px; height: 4px; background: rgba(124, 77, 255, 0.3); border-radius: 50%; animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Toast */
.toast {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px; padding: 14px 28px; font-size: 0.95rem; color: #fff; opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; white-space: nowrap; z-index: 1000;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
