#tracking-section {
    max-height: 0;
    opacity: 0;
    overflow-y: auto;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#tracking-section.active {
    max-height: 500px;
    opacity: 1;
}

.mb-4 {
    margin-bottom: 0.5rem !important;
}

.mt-6 {
    margin-top: 0.5rem !important;
}

#modern-tracking-section {
    display: none;
}

#modern-tracking-section.active {
    display: block;
}

.modern-status-card {
    margin-top: 1rem;
    padding: 0;
}

.modern-progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 0.9rem;
    color: #647067;
    font-size: 0.78rem;
    font-weight: 700;
}

.modern-progress-track {
    height: 0.6rem;
    margin-top: 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e3e9e5;
}

.modern-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22a657, #14763b);
    transition: width 0.4s ease;
}

.modern-stages {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.modern-stage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.9rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    color: #374151;
    background: #e5e7eb;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.modern-stage i {
    flex: 0 0 1.75rem;
    color: #9ca3af;
    font-size: 1.55rem;
    text-align: center;
}

.modern-stage-label {
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.25;
}

.modern-stage.completed {
    color: #28623e;
    border-color: #d2eadb;
    background: #edf7f1;
}

.modern-stage.completed i {
    color: #2c9a55;
}

.modern-stage.active {
    color: #fff;
    border-color: #22c55e;
    background: #22c55e;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.22);
}

.modern-stage.active i {
    color: #fff;
}

.modern-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.modern-detail {
    padding: 0.75rem;
    border: 1px solid #e5ebe7;
    border-radius: 0.75rem;
    background: #fff;
}

.modern-detail-label {
    display: block;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
}

.modern-detail-value {
    display: block;
    margin-top: 0.15rem;
    color: #243129;
    font-size: 0.88rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.modern-message {
    margin-top: 0.9rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    font-weight: 750;
}

.modern-message.success { color: #126134; background: #eaf8ef; }
.modern-message.warning { color: #98440a; background: #fff1dc; }
.modern-message.error { color: #a5212a; background: #ffebed; }

.modern-confirm-link {
    display: block;
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    color: #fff;
    background: #15803d;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.modern-confirm-link:hover {
    color: #fff;
    background: #116b34;
}

.modern-color-gray { color: #4b5563; background: #ecefef; }
.modern-color-blue { color: #175ea8; background: #e4f0ff; }
.modern-color-orange { color: #a44808; background: #ffe8c4; }
.modern-color-green { color: #137139; background: #dff4e7; }
.modern-color-red { color: #b4232c; background: #ffe1e4; }

@media (max-width: 520px) {
    .modern-details {
        grid-template-columns: 1fr;
    }
}
