:root {
    --bg-base: #0f1411;
    --bg-gradient-1: #16241a;
    --bg-gradient-2: #0f1411;
    --primary: #10b981;
    --primary-hover: #059669;
    --accent: #34d399;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info-bg: rgba(16, 185, 129, 0.1);
    --info-border: rgba(16, 185, 129, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 80% 20%, var(--bg-gradient-1), var(--bg-base) 70%);
    z-index: -2;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
}

.blob-1 {
    top: -20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: var(--primary);
}

.blob-2 {
    bottom: -20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: #022c22;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.glow-text {
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    margin: 3rem auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.center {
    text-align: center;
}

.main-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 4rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.login-panel {
    max-width: 450px;
    margin-top: 8rem;
    padding: 3rem;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--primary);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

input::placeholder {
    color: var(--text-muted);
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

input[type="submit"],
button,
.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    font-family: inherit;
}

input[type="submit"]:hover,
button:hover,
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

input[type="submit"]:active,
button:active {
    transform: translateY(0);
}

.div_mini_app_grid_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.glassmorphic-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glassmorphic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glassmorphic-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--glass-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
}

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

.mini_app_icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.glassmorphic-card:hover .mini_app_icon {
    transform: scale(1.1) rotate(-5deg);
}

label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.info_box {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    padding: 16px 24px;
    border-radius: 12px;
    margin: 24px 0;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    backdrop-filter: blur(4px);
}

.p_red,
.error-msg {
    color: var(--danger);
    background: var(--danger-bg);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.link_no_decoration {
    text-decoration: none;
    color: inherit;
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-main);
}

.divider {
    color: var(--glass-border);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

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

.app-title-small {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.brand-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.brand-link:hover {
    color: var(--primary);
}

.mini-app-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mini-app-content-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.supporter_only_badge_container {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--glass-bg);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.supporter_only_badge_icon {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.hidden-header {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.p_bold {
    font-weight: 600;
}

.no_margin {
    margin: 0;
}

.max_width_500 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.link_in_text {
    color: inherit;
    text-decoration: underline;
}

.login-prompt {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .main-glass-panel {
        padding: 2.5rem 1.5rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .div_mini_app_grid_container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .supporter_only_badge_container {
        top: 2px;
        right: 2px;
        padding: 6px;
    }

    .supporter_only_badge_icon {
        width: 22px;
        height: 22px;
    }
}