/*=========================================
        CUSTOMER DASHBOARD (HUB)
==========================================*/

.account-hub-section {
    padding: 30px 15px;
    background: #f8fafc;
    min-height: 100vh;
}

.account-container {
    max-width: 600px; /* Keep it narrow like a mobile app even on desktop */
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* User Profile Header */
.account-header {
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(67, 56, 202, 0.15);
    position: relative;
    overflow: hidden;
}

.account-header::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.user-profile .avatar {
    width: 65px;
    height: 65px;
    background: #ffffff;
    color: #4338ca;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-profile .user-info h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.user-profile .user-info .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Order Stats Section */
.order-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.view-history {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-history:hover {
    color: #2563eb;
}

.order-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4b5563;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    position: relative;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

.icon-wrapper.orange { background: #fef3c7; color: #d97706; }
.icon-wrapper.blue { background: #e0e7ff; color: #4338ca; }
.icon-wrapper.green { background: #d1fae5; color: #059669; }

.stat-item span {
    font-size: 12px;
    font-weight: 600;
}

/* Menu List Section */
.menu-list-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.menu-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.menu-list-item:last-child {
    border-bottom: none;
}

.menu-list-item:hover {
    background: #f8fafc;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-left i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-left span {
    font-size: 15px;
    font-weight: 500;
}

.menu-list-item .arrow {
    color: #9ca3af;
    font-size: 14px;
}

/* Icon Colors */
.icon-blue { color: #3b82f6; }
.icon-red { color: #ef4444; }
.icon-yellow { color: #f59e0b; }
.icon-gray { color: #6b7280; }

.logout-item span {
    color: #ef4444;
    font-weight: 600;
}

/*=========================================
        STANDALONE HUB CONTENT
==========================================*/

.account-hub-form-container {
    padding: 30px 15px;
    background: #f8fafc;
    min-height: 100vh;
}

.account-hub-content {
    max-width: 600px;
    margin: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.content-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}

.content-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.content-header p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Avatar Upload inside form */
.avatar-upload-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(37,99,235,0.3);
    transition: 0.3s;
}

.edit-avatar-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.edit-avatar-btn i {
    color: #ffffff !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

/* Forms */
.hub-form .form-group {
    margin-bottom: 20px;
}

.hub-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.hub-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.hub-form .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.btn-primary-hub {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary-hub:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 15px rgba(37,99,235,0.25);
}