/* ── Pages ─────────────────────────────────────────────── */
.page {
    display: none;
    padding: 16px;
    min-height: calc(100vh - 80px);
    animation: fadeIn 0.2s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    display: flex;
    justify-content: center;
    padding: 20px 0 12px;
}

.hero-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* ── Page title ────────────────────────────────────────── */
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-top: 8px;
}

/* ── Loading spinner ───────────────────────────────────── */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--glass-border-strong);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Info page ─────────────────────────────────────────── */
.info-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.info-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.info-tab.active {
    background: var(--glass-bg-active);
    color: var(--text-primary);
}

.info-content {
    display: none;
}

.info-content.active {
    display: block;
}

.info-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.info-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.info-section-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.info-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ── Bottom modal ──────────────────────────────────────── */
.bottom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    align-items: flex-end;
}

.bottom-modal.active {
    display: flex;
}

.bottom-modal-content {
    width: 100%;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-top: 1px solid var(--glass-border);
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.bottom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 1;
}

.bottom-modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.modal-close-btn {
    background: var(--glass-bg);
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bottom-modal-body {
    padding: 20px;
}

/* ── Form elements ─────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Toast ─────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
