/* premium-mypage.css — premium.html シェル共通スタイル */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── AMBIENT BLOBS ─── */
.ambient {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15;
    animation: blobFloat 18s ease-in-out infinite;
}
.blob-1 { width: 700px; height: 700px; background: var(--red);    top: -200px; left: -200px; animation-delay: 0s; }
.blob-2 { width: 600px; height: 600px; background: var(--blue);   bottom: -150px; right: -150px; animation-delay: -9s; }
.blob-3 { width: 400px; height: 400px; background: #8b5fbf; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -5s; }
@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-40px) scale(1.06); }
    66%      { transform: translate(-30px,30px) scale(0.96); }
}

/* ─── LAYOUT ─── */
main { position: relative; z-index: 1; }
.section-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── HERO ─── */
.premium-hero {
    position: relative; z-index: 1;
    padding: 140px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,0.06) 0%, transparent 70%);
}
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 28px;
}
.premium-badge-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
    animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;box-shadow:0 0 6px var(--gold)} 50%{opacity:.4;box-shadow:0 0 12px var(--gold)} }
.premium-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.premium-title .highlight,
.highlight {
    background: linear-gradient(135deg, var(--gold), #ffed4e);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.premium-desc {
    font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,0.7);
    max-width: 560px; margin: 0 auto; font-weight: 400;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.gradient-divider {
    width: 44px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    margin: 20px auto 0;
}
.back-link {
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* ─── MANAGEMENT SECTION ─── */
.management-section {
    border-radius: calc(var(--r) + 4px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 48px 40px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.management-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.management-title {
    font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 2rem; text-align: left;
    display: flex; align-items: center; gap: 10px;
}
.management-title i { color: var(--red); }

/* ─── CONNECT CARD ─── */
.connect-card {
    background: var(--glass);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--r);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.connect-card i.link-icon { font-size: 2rem; margin-bottom: 1rem; color: var(--blue); }
.connect-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.connect-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }

/* ─── BUTTONS ─── */
.btn-discord {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px; border: none; cursor: pointer;
    background: rgba(88,101,242,0.18);
    border: 1px solid rgba(88,101,242,0.3);
    color: #7289da; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; font-family: inherit;
    transition: all 0.25s var(--ease);
}
.btn-discord:hover {
    background: rgba(88,101,242,0.28);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(88,101,242,0.15);
}
.btn-primary-glass {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 14px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #ff4654, #ff2a3a);
    color: #fff; font-size: 0.9rem; font-weight: 700;
    font-family: inherit; letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.25s var(--ease);
    box-shadow: 0 4px 20px rgba(255, 70, 84, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary-glass:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 70, 84, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ff5e6a, #ff3344);
}
.btn-outline-glass {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 10px; cursor: pointer;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--muted); font-size: 0.8rem; font-weight: 600;
    text-decoration: none; font-family: inherit;
    transition: all 0.2s var(--ease);
}
.btn-outline-glass:hover {
    color: var(--text); background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

/* ─── FORMS ─── */
.mfa-form-group { margin-bottom: 1rem; }
.mfa-form-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.mfa-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.mfa-form-input:focus {
    outline: none;
    border-color: var(--blue);
}
.mfa-license-warning {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: #ffd700;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* ─── STATUS ─── */
.mfa-connect-status {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: pre-wrap;
    line-height: 1.5;
}
.mfa-connect-status.warn { color: #fbbf24; }
.mfa-connect-status.ok { color: #34d399; }
.mfa-connect-status.err { color: #fb7185; }

/* ─── QR LOGIN ─── */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.qr-frame {
    width: 260px;
    height: 260px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qr-frame img {
    max-width: 100%;
    max-height: 100%;
    display: none;
}
.qr-frame img.show { display: block; }
.qr-loading {
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qr-loading.hidden { display: none; }
.qr-instructions {
    list-style: none;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}
.qr-instructions li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.qr-instructions .step-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0,212,255,0.12);
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-success {
    display: none;
    margin-top: 1rem;
    color: #34d399;
    font-weight: 600;
    font-size: 0.95rem;
}
.qr-success.show { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .premium-hero { padding: 120px 0 40px; }
    .premium-title { font-size: clamp(2rem, 8vw, 3rem); }
    .management-section { padding: 28px 20px; }
}
