:root {
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --bg-dark: #1c1917;
    --surface: #292524;
    --surface-light: #44403c;
    --text-primary: #fafaf9;
    --text-secondary: #a8a29e;
    --border: #57534e;
    --emerald: #10b981;
    --rose: #fb7185;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    width: 100%;
    padding: 16px 40px;
    background-color: var(--surface);
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.025em;
}

header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--text-primary);
}

/* Layout */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 440px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Buttons */
.metamask-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.1s;
}

.metamask-btn:hover {
    background-color: var(--primary-hover);
}

.metamask-btn:active {
    transform: scale(0.98);
}

.metamask-btn.secondary {
    background-color: var(--surface-light);
    margin-top: 12px;
}

.metamask-btn.secondary:hover {
    background-color: #475569;
}

.metamask-btn:disabled {
    background-color: var(--surface-light);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Info Display */
.info-card {
    margin-top: 24px;
    padding: 24px;
    background-color: var(--surface-light);
    border-radius: 8px;
    text-align: left;
    display: none;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.info-value:last-child {
    margin-bottom: 0;
}

/* Status Messages */
.status {
    margin-top: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}
.status.success { color: var(--emerald); }
.status.error { color: var(--rose); }

/* Footer */
footer {
    width: 100%;
    padding: 32px 24px;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Admin Table */
.admin-container {
    max-width: 1000px;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: var(--surface-light);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

@media (max-width: 640px) {
    header { padding: 16px 20px; }
    .container { padding: 30px 20px; }
}
