/* ==========================================
   Reset & Base Variables (Mobile-First)
   ========================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #2563eb;
    --subtle-border: #e5e7eb;
    --nav-height: 68px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: calc(var(--nav-height) + 20px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.dashboard-content {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hidden {
    display: none !important;
}

/* ==========================================
   1. Cards & Profile Section
   ========================================== */
.card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.avatar-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #eff6ff;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 2rem;
    color: var(--primary-color);
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profession-text {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.fullname-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================
   2. 4-Step Verification Stepper
   ========================================== */
.stepper-container {
    position: relative;
    margin: 12px 0 14px;
}

.stepper-track {
    position: absolute;
    bottom: 9px;
    left: 12%;
    right: 12%;
    height: 3px;
    background-color: #dbeafe;
    z-index: 1;
}

.stepper-progress {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.stepper-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 2;
}

.step-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    cursor: pointer;
    padding: 0 2px;
}

.step-label {
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--primary-color);
    text-align: center;
    font-weight: 500;
}

.step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid var(--primary-color);
    background-color: var(--card-bg);
    transition: background-color 0.2s ease;
}

.step-item.completed .step-circle {
    background-color: var(--primary-color);
}

.promo-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--primary-color);
    margin-top: 6px;
}

/* ==========================================
   3. Need Action Section
   ========================================== */
.need-action-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-left: 4px;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diamond-route {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
}

.diamond {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 700;
}

.route-line {
    flex: 1;
    height: 2px;
    background-color: var(--primary-color);
}

.bid-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 12px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.reward-card {
    gap: 18px;
}

.reward-text {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.btn-outline,
.btn-primary-outline {
    padding: 8px 22px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ==========================================
   4. Fixed Bottom Navigation Bar
   ========================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background-color: var(--card-bg);
    border-top: 1px solid var(--subtle-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 500;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-center {
    margin-top: -18px;
}

.nav-icon-circle {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
    border: 3px solid var(--card-bg);
}