:root {
    --orange: #E39442;
    --orange-dark: #d85e00;
    --teal: #1c8eb0;
    --light-teal: #d5eaed;
    --gray-border: #e9ecef;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --radius: 20px;
}

.app-header {
    background: #ffffff;
    padding: 16px 40px;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.app-header .logo {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--teal);
}
.app-header .logo span { color: var(--orange); }
.app-header .nav-links {
    display: flex;
    gap: 30px;
    font-weight: 600;
}
.app-header .nav-links a {
    color: #333;
    transition: 0.3s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}
.app-header .nav-links a:hover,
.app-header .nav-links a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}
.app-header .user-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}
.app-header .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}
.page-container {
    flex: 1;
    padding: 30px 40px 40px;
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
}
.card-glass {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 28px 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}
.card-glass:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.btn-primary-custom {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249,109,11,0.3);
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    border: none;
}
.btn-primary-custom:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(249,109,11,0.4);
    color: #fff;
}
.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-custom:hover {
    background: var(--orange);
    color: #fff;
}
.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}
.input-group-custom .form-control {
    border: 2px solid var(--gray-border);
    border-radius: 16px;
    padding: 14px 18px 14px 48px;
    font-size: 1rem;
    transition: 0.3s;
    background: #fff;
    height: 56px;
}
.input-group-custom .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249,109,11,0.15);
}
.input-group-custom .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.2rem;
}
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0 28px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: var(--gray-border);
    z-index: 0;
}
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    flex: 1;
}
.timeline-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #999;
    transition: 0.3s;
    margin-bottom: 6px;
}
.timeline-item.completed .timeline-dot {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.timeline-item.active .timeline-dot {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(249,109,11,0.2);
}
.timeline-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #666;
}
.timeline-item.active .timeline-label { color: var(--orange); }
.timeline-item.completed .timeline-label { color: var(--teal); }
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: #666; font-weight: 500; }
.detail-value { font-weight: 600; }
.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
}
.doc-item:last-child { border-bottom: none; }
.doc-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.doc-name i { font-size: 1.2rem; color: var(--teal); }
.doc-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 30px;
}
.doc-status.uploaded { background: #d4edda; color: #155724; }
.doc-status.missing { background: #f8d7da; color: #721c24; }
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.page { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-up {
    animation: slideUp 0.4s ease forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 992px) {
    .page-container { padding: 20px; }
    .app-header { padding: 16px 24px; flex-wrap: wrap; gap: 12px; }
    .app-header .nav-links { gap: 16px; font-size: 0.95rem; }
}