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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-wide {
    max-width: 960px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a365d;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c5282;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.lead {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.button-primary {
    background: #3182ce;
    color: white;
}

.button-primary:hover {
    background: #2c5282;
    transform: translateY(-1px);
}

.button-yes {
    background: #48bb78;
    color: white;
    min-width: 140px;
}

.button-yes:hover {
    background: #38a169;
}

.button-no {
    background: #e53e3e;
    color: white;
    min-width: 140px;
}

.button-no:hover {
    background: #c53030;
}

.button-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.button-secondary:hover {
    background: #e2e8f0;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0 1rem;
}

.nav-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Progress */
.progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

/* Question */
.question-text {
    font-size: 1.35rem;
    font-weight: 500;
    text-align: center;
    padding: 1.5rem 1rem;
    color: #2d3748;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-answer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #718096;
}

.current-answer strong {
    color: #2d3748;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-yes {
    background: #c6f6d5;
    color: #22543d;
}

.badge-no {
    background: #fed7d7;
    color: #742a2a;
}

/* Recommendations */
.recommendation-list {
    list-style: none;
    margin-top: 1.5rem;
}

.recommendation-item {
    padding: 1rem 1.25rem;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #3182ce;
}

.recommendation-item.top {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border-left-color: #38b2ac;
}

.recommendation-header {
    margin-bottom: 0.6rem;
}

.recommendation-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #2d3748;
}

.recommendation-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.recommendation-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.recommendation-item.top .recommendation-bar-fill {
    background: linear-gradient(90deg, #38b2ac, #4fd1c5);
}

.empty {
    text-align: center;
    padding: 2rem;
    color: #718096;
}

/* Summary */
.summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c5282;
}

.summary-label {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Gate / Token input */
.form-group {
    margin: 1.5rem 0;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #3182ce;
}

.token-input {
    font-family: "SF Mono", Monaco, Consolas, monospace !important;
    font-size: 1.3rem !important;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: lowercase;
}

.error-box {
    padding: 0.85rem 1rem;
    background: #fed7d7;
    color: #742a2a;
    border-radius: 10px;
    margin: 1rem 0;
    font-size: 0.95rem;
    text-align: center;
}

.hint {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
}

/* Admin */
.admin-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.admin-form .form-group {
    flex: 1;
    min-width: 240px;
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.admin-table code {
    font-family: "SF Mono", Monaco, Consolas, monospace;
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #2c5282;
    font-weight: 600;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.button-small {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s;
}

.button-danger {
    background: #fed7d7;
    color: #742a2a;
}

.button-danger:hover {
    background: #feb2b2;
}

.button-small.button-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.button-small.button-secondary:hover {
    background: #e2e8f0;
}