/* ========================================
   CUSTOM PAGES STYLES
   - Acknowledgment Page
   - Payment Failure Page  
   - My Account Pages
   ======================================== */

/* ========================================
   COMMON STYLES
   ======================================== */
.page-gradient-bg {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    padding: 60px 0;
    min-height: 70vh;
}

.page-gradient-bg-red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 60px 0;
    min-height: 70vh;
}

.page-gradient-bg-light {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.page-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

/* Desktop centering only */
@media (min-width: 769px) {
    .page-gradient-bg,
    .page-gradient-bg-red,
    .page-gradient-bg-light {
        display: flex;
        align-items: center;
    }
    
    .page-gradient-bg .container,
    .page-gradient-bg-red .container,
    .page-gradient-bg-light .container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 50vh;
    }
    
    .page-gradient-bg .row,
    .page-gradient-bg-red .row,
    .page-gradient-bg-light .row {
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
    }
    
    .page-gradient-bg .col-lg-8,
    .page-gradient-bg .col-md-10,
    .page-gradient-bg-red .col-lg-8,
    .page-gradient-bg-red .col-md-10,
    .page-gradient-bg-light .col-lg-8,
    .page-gradient-bg-light .col-md-10 {
        display: flex;
        justify-content: center;
        padding: 0 15px;
    }
}

.page-card-decoration-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    border-radius: 50%;
    opacity: 0.1;
}

.page-card-decoration-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    opacity: 0.1;
}

.page-card-decoration-red {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes slideInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   ACKNOWLEDGMENT PAGE STYLES
   ======================================== */
.success-animation {
    margin-bottom: 30px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    margin: 0 auto 20px;
    position: relative;
    animation: scaleIn 0.3s ease-in-out;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.confirmation-content h1 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

.confirmation-content p {
    color: #7f8c8d;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.order-details-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border-left: 5px solid #28a745;
}

.order-details-card h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.order-info, .transaction-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-info span:first-child, .transaction-info span:first-child {
    color: #7f8c8d;
    font-weight: 500;
}

.order-info span:last-child, .transaction-info span:last-child {
    color: #2c3e50;
    font-weight: 700;
    font-size: 18px;
}

.transaction-info span:last-child {
    font-weight: 600;
}

.action-buttons {
    margin-top: 40px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.btn-outline-custom {
    border: 2px solid #667eea;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.additional-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.additional-info p {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ========================================
   PAYMENT FAILURE PAGE STYLES
   ======================================== */
.failure-animation {
    margin-bottom: 30px;
}

.error-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dc3545;
    margin: 0 auto 20px;
    position: relative;
    animation: scaleIn 0.3s ease-in-out;
}

.error-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.failure-content h1 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

.failure-content p {
    color: #7f8c8d;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.failure-details-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border-left: 5px solid #dc3545;
}

.failure-details-card h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.reasons-card {
    background: #fff3cd;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid #ffc107;
}

.reasons-card h4 {
    color: #856404;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.reasons-card ul {
    text-align: left;
    color: #856404;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

.btn-success-custom {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    color: white;
    text-decoration: none;
}

.btn-outline-secondary-custom {
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-secondary-custom:hover {
    background: #6c757d;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.support-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.support-info h5 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.support-info p {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ========================================
   MY ACCOUNT PAGE STYLES
   ======================================== */
.breadcrumb-custom {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    padding: 40px 0;
}

.breadcrumb-list-custom {
    text-align: center;
}

.breadcrumb-list-custom h1 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.breadcrumb-list-custom ul {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list-custom ul li {
    display: inline;
}

.breadcrumb-list-custom ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-list-custom ul li a:hover {
    color: white;
}

.breadcrumb-divider {
    color: rgba(255,255,255,0.6);
    margin: 0 5px;
}

.account-details-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    padding: 30px;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.header-content p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body-custom {
    padding: 40px;
}

.welcome-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.welcome-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.welcome-section p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

.form-section h5 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.required-asterisk {
    color: #e74c3c;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    width: 16px;
    text-align: center;
}

.form-input-custom {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input-custom:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-input-custom:valid {
    border-color: #28a745;
}

.form-input-custom:invalid {
    border-color: #e74c3c;
}

.input-help-text {
    color: #95a5a6;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-update {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    min-width: 150px;
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-update:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary-custom {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-custom:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.info-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.info-section h6 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-section ul {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

/* ========================================
   LEFT MENU STYLES
   ======================================== */
.navbar-toggler-custom {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-weight: 500;
    display: none; /* Hidden by default on desktop */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.navbar-toggler-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.navbar-toggler-custom:hover::before {
    left: 100%;
}

.navbar-toggler-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.navbar-toggler-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.navbar-toggler-custom:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    height: 16px;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.navbar-toggler-custom.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggler-custom.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler-custom.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.toggle-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-toggler-custom.active .toggle-text {
    color: rgba(255,255,255,0.9);
}

.shop-left-sidebar-custom {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.close-filter-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 24px;
    z-index: 10;
    text-decoration: none;
    display: none; /* Hidden by default on desktop */
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.close-filter-custom:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

.profile-header {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    padding: 30px 25px;
    color: white;
    position: relative;
}

.profile-content {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.profile-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.profile-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.profile-info p:last-child {
    margin: 2px 0 0 0;
}

.account-navigation {
    padding: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    border-bottom: 1px solid #f1f2f6;
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-custom:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(8px);
    text-decoration: none;
}

.nav-link-custom:hover::before {
    left: 0;
}

.nav-link-custom:hover .nav-icon {
    transform: scale(1.1);
    color: #667eea;
}

.nav-link-custom.active {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    color: white;
    position: relative;
    transform: translateX(0);
}

.nav-link-custom.active::before {
    left: 0;
    background: #fff;
}

.nav-link-custom.active .nav-icon {
    color: white;
}

.nav-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-link {
    color: #e74c3c !important;
}

.logout-link:hover {
    background: #ffe6e6 !important;
    color: #e74c3c !important;
}

.logout-link .nav-icon {
    color: #e74c3c;
}

.profile-header {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    padding: 30px 25px;
    color: white;
    position: relative;
}

.profile-content {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.profile-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.profile-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    color: #fff;
}

.profile-info p:last-child {
    margin: 2px 0 0 0;
}

.account-navigation {
    padding: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    border-bottom: 1px solid #f1f2f6;
}

.nav-menu li:last-child {
    border-bottom: none;
}

/* ========================================
   ALERT MESSAGES
   ======================================== */
.alert-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: slideInDown 0.3s ease-out;
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-left: 4px solid #c0392b;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-left: 4px solid #1e7e34;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.alert-icon {
    margin-right: 10px;
    font-size: 16px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Mobile-specific overrides - remove flex properties that cause issues */
    .page-gradient-bg,
    .page-gradient-bg-red,
    .page-gradient-bg-light {
        padding: 40px 0;
        min-height: 60vh;
        display: block; /* Override desktop flex */
    }
    
    .page-gradient-bg .container,
    .page-gradient-bg-red .container,
    .page-gradient-bg-light .container {
        padding: 0 20px;
        display: block; /* Override desktop flex */
        min-height: auto; /* Override desktop min-height */
    }
    
    .page-gradient-bg .row,
    .page-gradient-bg-red .row,
    .page-gradient-bg-light .row {
        display: block; /* Override desktop flex */
        width: auto; /* Override desktop width */
        margin: 0 -15px; /* Restore Bootstrap margin */
    }
    
    .page-gradient-bg .col-lg-8,
    .page-gradient-bg .col-md-10,
    .page-gradient-bg-red .col-lg-8,
    .page-gradient-bg-red .col-md-10,
    .page-gradient-bg-light .col-lg-8,
    .page-gradient-bg-light .col-md-10 {
        display: block; /* Override desktop flex */
        padding: 0 15px; /* Restore Bootstrap padding */
        width: 100%; /* Full width on mobile */
    }
    
    .page-card {
        padding: 30px 20px !important;
        margin: 20px auto !important;
        max-width: calc(100% - 40px);
        width: calc(100% - 40px); /* Ensure proper mobile width */
    }
    
    .order-info, .transaction-info {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .order-info span, .transaction-info span {
        margin-bottom: 5px;
    }
    
    .action-buttons a, .button-group a, .button-group button {
        display: block !important;
        margin: 10px 0 !important;
        width: 100% !important;
        min-width: auto !important;
    }
    
    .card-header-custom {
        padding: 20px !important;
    }
    
    .header-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .header-right {
        margin-top: 15px;
    }
    
    .card-body-custom {
        padding: 20px !important;
    }
    
    .button-group {
        flex-direction: column !important;
    }
    
    .reasons-card ul {
        padding-left: 15px !important;
    }
    
    .alert-message {
        margin: 15px 10px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .alert-close {
        right: 15px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .shop-left-sidebar-custom {
        margin: 10px;
        border-radius: 10px !important;
    }
    
    .profile-header {
        padding: 20px 15px !important;
    }
    
    .profile-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .profile-avatar {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .nav-link-custom {
        padding: 15px 20px !important;
        font-size: 13px !important;
    }
}

/* ========================================
   ICON FIXES
   ======================================== */
.icon-user::before { content: "👤"; }
.icon-phone::before { content: "📞"; }
.icon-envelope::before { content: "✉️"; }
.icon-save::before { content: "💾"; }
.icon-key::before { content: "🔑"; }
.icon-info::before { content: "ℹ️"; }
.icon-list::before { content: "📋"; }
.icon-cart::before { content: "🛒"; }
.icon-home::before { content: "🏠"; }
.icon-credit-card::before { content: "💳"; }
.icon-dashboard::before { content: "📊"; }
.icon-wallet::before { content: "💰"; }
.icon-edit::before { content: "✏️"; }
.icon-shopping-bag::before { content: "🛍️"; }
.icon-handshake::before { content: "🤝"; }
.icon-tools::before { content: "🔧"; }
.icon-map::before { content: "📍"; }
.icon-heart::before { content: "❤️"; }
.icon-logout::before { content: "🚪"; }
.icon-check::before { content: "✅"; }
.icon-times::before { content: "❌"; }
.icon-exclamation::before { content: "⚠️"; }

/* Fallback for Font Awesome icons */
.fa-fallback {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    text-decoration: inherit;
}

/* ========================================
   ORDERS TABLE STYLES
   ======================================== */
.orders-table-wrapper {
    margin-top: 30px;
}

.orders-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 0;
}

.orders-table thead {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
}

.orders-table thead th {
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 20px 15px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table tbody tr {
    border-bottom: 1px solid #f1f2f6;
    transition: all 0.3s ease;
}

.orders-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.orders-table tbody tr:last-child {
    border-bottom: none;
}

.orders-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
    border: none;
}

.product-cell {
    width: 50%;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-info:hover .product-image img {
    transform: scale(1.05);
}

.product-details h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.order-id {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.price-cell, .quantity-cell, .total-cell {
    width: 16.66%;
}

.price-amount {
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
}

.quantity-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.total-amount {
    color: #2c3e50;
    font-weight: 700;
    font-size: 16px;
}

/* ========================================
   DASHBOARD QUICK ACTIONS
   ======================================== */
.quick-actions {
    margin-top: 40px;
}

.quick-actions h5 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.action-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.action-card h6 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.action-card p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.action-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.action-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   WALLET BALANCE CARD
   ======================================== */
.balance-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.balance-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.balance-card p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
}

/* ========================================
   TRANSACTION HISTORY
   ======================================== */
.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.transaction-info-left {
    display: flex;
    align-items: center;
}

.transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: white;
}

.transaction-icon.credit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.transaction-icon.debit {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.transaction-details h6 {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.transaction-details p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .amount {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.transaction-amount .amount.credit {
    color: #28a745;
}

.transaction-amount .amount.debit {
    color: #dc3545;
}

.transaction-amount .date {
    color: #95a5a6;
    font-size: 12px;
}

/* ========================================
   ADDRESS CARDS
   ======================================== */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.address-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.address-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.address-card.default {
    border-color: #28a745;
}

.address-card.default::before {
    content: 'Default';
    position: absolute;
    top: -10px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.address-type {
    background: linear-gradient(135deg, #7674f5 0%, #1a1a6f 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.address-actions a {
    color: #7f8c8d;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.address-actions a:hover {
    color: #667eea;
}

.address-details h6 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.address-details p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   WISHLIST ITEMS
   ======================================== */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.wishlist-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.wishlist-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wishlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item:hover .wishlist-image img {
    transform: scale(1.05);
}

.wishlist-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wishlist-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
    font-size: 16px;
}

.wishlist-action-btn:hover {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

.wishlist-action-btn.remove:hover {
    color: #dc3545;
}

.wishlist-content {
    padding: 20px;
}

.wishlist-content h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.wishlist-price {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.wishlist-content .btn-primary-custom {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   MOBILE SIDEBAR STYLES
   ======================================== */
.filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.myaccount-leftmenu-sidebar {
    position: relative;
}

.myaccount-leftmenu {
    border-right: 0px;
}

.navbar-collapse {
    position: relative;
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .navbar-collapse.show {
        left: 0;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    }
}

/* ========================================
   RESPONSIVE UPDATES FOR NEW COMPONENTS
   ======================================== */
@media (max-width: 768px) {
    .orders-table-wrapper {
        overflow-x: auto;
    }
    
    .orders-table {
        min-width: 600px;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .transaction-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .transaction-info-left {
        flex-direction: column;
        text-align: center;
    }
    
    .transaction-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-table thead th {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .orders-table tbody td {
        padding: 15px 10px;
    }
    
    .product-details h4 {
        font-size: 14px;
    }
    
    .order-id {
        font-size: 12px;
    }

    .navbar-toggler-custom {
        display: flex !important; /* Show toggle button on mobile */
        align-items: center;
        justify-content: center;
        margin: 10px 0;
    }
    
    .close-filter-custom {
        display: flex !important; /* Show close button on mobile */
        align-items: center;
        justify-content: center;
    }
}

/* ========================================
   ORDER DETAILS PAGE STYLES
   ======================================== */
.order-details-header-card {
    background: #160053;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 25px rgba(22, 0, 83, 0.15);
    transition: all 0.3s ease;
}

.order-details-header-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(22, 0, 83, 0.25);
}

.order-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.order-info-left h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.order-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

.order-status-badge {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status-badge:hover {
    transform: scale(1.05);
}

.order-status-badge.status-new,
.order-status-badge.status-pending {
    background: #fcb040;
    color: white;
}

.order-status-badge.status-processing,
.order-status-badge.status-confirmed {
    background: #2f2e89;
    color: white;
}

.order-status-badge.status-packed,
.order-status-badge.status-shipped {
    background: #160053;
    color: white;
    border: 2px solid #fcb040;
}

.order-status-badge.status-delivered {
    background: #2f2e89;
    color: white;
}

.order-status-badge.status-cancelled {
    background: #fcb040;
    color: white;
}

.order-product-card,
.order-progress-card,
.order-sidebar-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(22, 0, 83, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(22, 0, 83, 0.1);
}

.order-product-card:hover,
.order-progress-card:hover,
.order-sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(22, 0, 83, 0.15);
    border-color: #fcb040;
}

.card-header-modern {
    background: #2f2e89;
    color: white;
    padding: 20px 25px;
    border-bottom: none;
}

.card-header-modern h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.card-icon {
    font-size: 20px;
    opacity: 0.9;
}

.product-details-content {
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.product-image-container {
    flex-shrink: 0;
}

.product-link-hover {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-link-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(22, 0, 83, 0.2);
    border-color: #fcb040;
}

.product-image-modern {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-info-modern {
    flex: 1;
}

.product-title-link {
    color: #160053;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 15px;
}

.product-title-link:hover {
    color: #2f2e89;
    text-decoration: none;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(22, 0, 83, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.meta-item:hover {
    background: rgba(252, 176, 64, 0.1);
    transform: translateX(5px);
    border-left-color: #fcb040;
}

.meta-label {
    color: #160053;
    font-weight: 500;
    min-width: 80px;
}

.meta-value {
    color: #2f2e89;
    font-weight: 600;
    margin-left: 10px;
}

.progress-content {
    padding: 30px;
}

.status-progress-bar {
    position: relative;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(22, 0, 83, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f2e89 0%, #fcb040 100%);
    border-radius: 6px;
    transition: all 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text {
    color: #160053;
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
}

.progress-percentage {
    color: #2f2e89;
    font-weight: 700;
    font-size: 18px;
}

.address-content,
.actions-content {
    padding: 25px;
}

.address-details h4 {
    color: #160053;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.address-details p {
    color: #2f2e89;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #160053 !important;
    font-weight: 500;
    margin-top: 15px;
    padding: 10px;
    background: rgba(252, 176, 64, 0.1);
    border-radius: 8px;
    border-left: 3px solid #fcb040;
}

.action-buttons-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-action-primary,
.btn-action-danger,
.btn-action-warning,
.btn-action-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.btn-action-primary {
    background: #2f2e89;
    color: white;
}

.btn-action-primary:hover {
    background: #160053;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 46, 137, 0.3);
    color: white;
    text-decoration: none;
}

.btn-action-danger {
    background: #fcb040;
    color: white;
}

.btn-action-danger:hover {
    background: #160053;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 176, 64, 0.3);
    color: white;
    text-decoration: none;
}

.btn-action-warning {
    background: #fcb040;
    color: white;
}

.btn-action-warning:hover {
    background: #2f2e89;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 176, 64, 0.3);
    color: white;
    text-decoration: none;
}

.btn-action-secondary {
    background: white;
    color: #160053;
    border: 2px solid #160053;
}

.btn-action-secondary:hover {
    background: #160053;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 0, 83, 0.3);
    text-decoration: none;
}

.btn-icon {
    font-size: 16px;
}

.return-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #fcb040;
    color: white;
    border-radius: 10px;
    font-weight: 600;
}

/* Additional Icons */
.icon-download::before { content: "📥"; }
.icon-return::before { content: "↩️"; }
.icon-help::before { content: "❓"; }

/* ========================================
   RESPONSIVE DESIGN FOR ORDER DETAILS
   ======================================== */
@media (max-width: 768px) {
    .order-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .order-info-left h2 {
        font-size: 24px;
    }
    
    .product-details-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .product-image-modern {
        width: 120px;
        height: 150px;
        margin: 0 auto 20px;
    }
    
    .product-meta {
        gap: 8px;
    }
    
    .meta-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .meta-label {
        min-width: auto;
    }
    
    .progress-content,
    .address-content,
    .actions-content {
        padding: 20px;
    }
    
    .card-header-modern {
        padding: 15px 20px;
    }
    
    .card-header-modern h3 {
        font-size: 16px;
    }
}