:root {
    --bg-color: #0b0f17;
    --card-bg: rgba(21, 28, 41, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(99, 102, 241, 0.5);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --status-online: #10b981;
    --status-error: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* バックグラウンドの発光エフェクト */
.bg-glow {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 23, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

/* ヘッダー */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 4px 16px;
    border-bottom: 1px solid var(--card-border);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: var(--accent-gradient);    background-clip: text;    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

/* ステータスバッジ */
.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-badge.online .status-dot {
    background-color: var(--status-online);
    box-shadow: 0 0 8px var(--status-online);
}

.status-badge.error .status-dot {
    background-color: var(--status-error);
    box-shadow: 0 0 8px var(--status-error);
}

/* メインコンテンツ */
.main-content {
    padding: 28px 0;
    flex: 1;
}

.hero-section {
    margin-bottom: 24px;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 6px;
}

.hero-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* フォームカードリスト */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-card:active {
    transform: scale(0.98);
    border-color: var(--card-hover-border);
}

.card-inner {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon {
    width: 22px;
    height: 22px;
    stroke: #818cf8;
}

.card-content {
    flex: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.card-header h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.badge-tag {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    letter-spacing: 0.5px;
}

.card-content p {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.card-action {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.form-card:active .card-action {
    transform: translateX(4px);
    color: #ffffff;
}

/* フッター */
.app-footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.app-footer p {
    font-size: 0.7rem;
    color: #4b5563;
    letter-spacing: 1px;
}