/* ==================== Ice Glassmorphism Panel ==================== */
.glass-panel {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--shadow-md);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.glass-panel:hover {
    border-color: rgba(139, 233, 255, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.1), var(--glass-shine);
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(5, 12, 24, 0.55);
    border: 1px solid rgba(139, 233, 255, 0.16);
    border-radius: var(--r-sm);
    color: var(--text-main);
    font-size: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.form-control::placeholder { color: var(--text-dim); }

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(8, 18, 36, 0.75);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(0, 229, 255, 0.15), 0 0 20px rgba(0, 229, 255, 0.2);
}

textarea.form-control { resize: vertical; min-height: 120px; font-family: 'Vazirmatn', sans-serif; }

/* ==================== Buttons ==================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--grad-brand);
    color: #030a14;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 16px 32px;
    border-radius: var(--r-sm);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, filter 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 229, 255, 0.32), inset 0 1px 2px rgba(255, 255, 255, 0.75);
}

.btn-primary svg { stroke-width: 2.4; }

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.btn-primary:hover::after { left: 130%; }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 229, 255, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.9);
    filter: saturate(1.15);
}

.btn-primary:active { transform: translateY(-1px) scale(0.99); }

/* --- Ghost / outline button --- */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    background: rgba(16, 28, 48, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-ghost:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.18);
}

/* ==================== Badges ==================== */
.badge {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.badge-free  { background: rgba(0, 230, 118, 0.14); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.35); }
.badge-admin { background: rgba(255, 75, 110, 0.14); color: #ff7b90; border: 1px solid rgba(255, 75, 110, 0.35); }
.badge-vip   { background: rgba(255, 176, 32, 0.14); color: #ffb020; border: 1px solid rgba(255, 176, 32, 0.35); }

/* ==================== Icon tile ==================== */
.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: var(--grad-brand-soft);
    color: var(--neon-cyan);
    border: 1px solid rgba(139, 233, 255, 0.25);
    box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.15);
    flex-shrink: 0;
}