.pisec {
    padding: 20px 0;
    background: #fdfdfd;
}

.pisec-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar Styles */
.piside {
    width: 300px;
    background: #fff;
    border: 1px solid #D9E3EB;
    overflow: hidden;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

.user-profile-summary {
    background: #1A5E9D;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.user-profile-summary .avatar {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #fff;
}

.user-profile-summary .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-summary .user-info p {
    margin: 0;
    font-size: 17px;
    color: #00D2D6;
}

.user-profile-summary .user-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.pi-nav ul {
    padding: 10px 20px;
}

.pi-nav ul li {
    border-bottom: 1px solid #D9E3EB;
}

.pi-nav ul li:last-child {
    border-bottom: none;
}

.pi-nav ul li a {
    padding: 18px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5D7388;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 17px;
}

.pi-nav ul li a:hover {
    padding: 18px 10px;
}

.pi-nav ul li a .nav-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pi-nav ul li a .arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #5D7388;
    border-right: 2px solid #5D7388;
    transform: rotate(45deg);
    transition: all 0.3s;
}

.pi-nav ul li.active a {
    color: #1A5E9D;
    font-weight: bold;
}

.pi-nav ul li.active a .arrow {
    border-color: #1A5E9D;
}

.pi-nav ul li:hover a {
    background: #F5F7F9;
    color: #1A5E9D;
}

.pi-nav ul li.logout a {
    color: #1A5E9D;
}

/* Content Styles */
.piinfo {
    flex: 1;
    background: #fff;
    padding: 20px;
    border: 1px solid #D9E3EB;
}

.pi-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F3F5;
}
.pi-section .btn-success{padding:5px 15px;background: #00d1d5;
    color: #fff;}
.pi-section .btn-secondary{padding:5px 15px;background: #1a5e9d;
    color: #fff;}

.pi-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.pi-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pi-section-header h3 {
    margin: 0;
    font-size: 23px;
    color: #5D7388;
    font-weight: 700;
}

.edit-btn {
    background: #00D2D6;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.edit-btn:hover {
    background: #1A5E9D;
}

.edit-btn.active {
    background: #1A5E9D;
}

.pi-section-body .row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.pi-section-body input[type="text"],
.pi-section-body input[type="email"],
.pi-section-body input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #D9E3EB;
    background: #F4F7F8;
    color: #5D7388;
    font-size: 15px;
    border-radius: 0px;
    outline: none;
    transition: all 0.3s;
}

.pi-section-body input:not([readonly]) {
    border-color: #D9E3EB;
    background: #fff;
    color: #1A1F2E;
}

.gender-section p {
    font-weight: bold;
    color: #5D7388;
    margin-bottom: 5px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #5D7388;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Mobile Row & ITI */
.iti {
    width: 100%;
}

.iti input[type="tel"] {
    padding-left: 90px !important;
}

.pi-section-body .iti input[readonly] {
    background: #F5F7F9;
    border-color: transparent;
}

.iti__country-list {
    z-index: 100;
    font-family: var(--bs-body-font-family);
}

.pi-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.deactivate-link {
    color: #1A5E9D;
    font-weight: 500;
    font-size: 16px;
}

.delete-link {
    color: #FF4D4D;
    font-weight: 500;
    font-size: 16px;
}

.deactivate-link:hover,
.delete-link:hover {
    text-decoration: underline;
}

/* Order Page Specifics */
.order-filter-group {
    padding: 10px 0 0;
}

.order-filter-group h5 {
    font-size: 16px;
    color: #5D7388;
    margin-bottom: 15px;
    font-weight: bold;
}

.order-filter-group .checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #5D7388;
    cursor: pointer;
    font-size: 15px;
}

.order-filter-group .checkbox-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.order-search {
    margin-bottom: 30px;
    position: relative;
}

.order-search input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 1px solid #D9E3EB;
    border-radius: 0px;
    font-size: 15px;
    color: #5D7388;
    outline: none;
}

.order-search .search-icon {
    position: absolute;
    right: 15px;
    top: 50% !important;
    transform: translateY(-50%);
    width: 20px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card a {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #D9E3EB;
    border-radius: 4px;
    gap: 25px;
    transition: box-shadow 0.3s;
}


.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-card .product-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid #F0F3F5;
    padding: 0px;
}

.order-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-card .product-info {
    flex: 1;
}

.order-card .product-info h4 {
    font-size: 17px;
    color: #5D7388;
    margin-bottom: 5px;
    font-weight: 500;
    max-width: 300px;
    line-height: 1.4;
}

.order-card .order-price {
    font-size: 17px;
    font-weight: 500;
    color: #5D7388;
    width: 150px;
    text-align: center;
}

.order-card .order-status {
    width: 200px;
    text-align: right;
}

.order-card .status-badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-weight: bold;
    color: #5D7388;
    font-size: 15px;
    margin-bottom: 0px;
}

.order-card .status-dot {
    width: 15px;
    height: 15px;
    background: #02DE32;
    border-radius: 50%;
}

.order-card .status-msg {
    font-size: 14px;
    color: #5D7388;
}

/* Address Page Styles */
.add-address-section {
    background: #F7F9FB;
    padding: 25px;
    border: 1px solid #D9E3EB;
    margin-bottom: 30px;
}

.add-address-section h4 {
    font-size: 18px;
    color: #1A5E9D;
    margin-bottom: 10px;
    font-weight: bold;
}

.btn-location {
    background: #00D2D6;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 25px;
    font-family: var(--bs-body-font-family);
}

.address-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.address-form .form-group {
    flex: 1;
}

.address-form input,
.address-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D9E3EB;
    border-radius: 0;
    background: #fff;
    color: #5D7388;
    outline: none;
    font-size: 15px;
    font-family: var(--bs-body-font-family);
}

.address-type {
    margin: 20px 0;
}

.address-type p {
    font-weight: bold;
    color: #5D7388;
    margin-bottom: 10px;
}

.address-form .form-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-save {
    background: #1A5E9D;
    color: #fff;
    border: none;
    padding: 12px 60px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 16px;
}

.btn-cancel {
    color: #5D7388;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Address Card List */
.address-card {
    padding: 20px 0;
    border-bottom: 1px solid #F0F3F5;
    position: relative;
}

.address-card:last-child {
    border-bottom: none;
}

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

.address-badge {
    background: #00D2D6;
    color: #fff;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0px;
}

.address-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #5D7388;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
}

.menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #D9E3EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    min-width: 120px;
}

.menu-dropdown.show {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #5D7388;
    font-size: 14px;
    transition: background 0.3s;
}

.menu-dropdown a:hover {
    background: #F5F7F9;
    color: #1A5E9D;
}

.address-details strong {
    font-size: 16px;
    color: #5D7388;
}

.address-details p {
    margin: 5px 0 0;
    color: #5D7388;
    font-size: 15px;
}

/* Edit Panel */
.edit-address-panel {
    margin-top: 20px;
    border: 1px solid #D9E3EB;
    padding: 20px;
    background: #F7F9FB;
}

/* Payment Page Styles */
.add-card-section {
    background: #F7F9FB;
    padding: 25px;
    border: 1px solid #D9E3EB;
    margin-bottom: 30px;
}

.add-card-section h4 {
    font-size: 18px;
    color: #1A5E9D;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card-form .form-group {
    flex: 1;
    position: relative;
}

.card-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D9E3EB;
    border-radius: 0;
    background: #fff;
    color: #5D7388;
    outline: none;
    font-size: 15px;
    font-family: var(--bs-body-font-family);
}

.card-form .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0AEC0;
}

.card-form .form-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
}

/* Saved Cards */
.saved-card {
    padding: 20px;
    border: 1px solid #D9E3EB;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.saved-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-item-info {
    flex: 1;
}

.card-item-info h5 {
    font-size: 16px;
    color: #5D7388;
    margin-bottom: 5px;
    font-weight: bold;
}

.card-number-masked {
    font-size: 16px;
    letter-spacing: 2px;
    color: #5D7388;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-edit-card {
    background: #00D2D6;
    color: #fff;
    border: none;
    padding: 3px 12px;
    border-radius: 2px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.btn-delete-card {
    background: none;
    border: none;
    color: #5D7388;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.btn-delete-card:hover {
    color: #FF4D4D;
}

.edit-card-panel {
    margin-top: 20px;
    border-top: 1px solid #F0F3F5;
    padding-top: 20px;
}

@media (max-width: 991px) {
    .pisec-main {
        flex-direction: column;
    }

    .piside {
        width: 100%;
    }

    .order-card {
        flex-direction: column;
        text-align: center;
    }

    .order-card .status-badge {
        justify-content: center;
    }

    .order-card .order-price,
    .order-card .order-status {
        text-align: center;
    }

    .address-form .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .card-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Help Center Styles */
.faq-section {
    background: #F4F7F8;
    padding: 30px;
    margin-bottom: 30px;
}

.faq-section h4 {
    font-size: 18px;
    color: #1A5E9D;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Accordion (shared with details.html) */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acc-item {
    background: #fff;
    border: 1px solid #D9E3EB;
}

.acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    color: #5D7388;
    transition: color 0.3s;
    font-family: var(--bs-body-font-family);
}

.acc-item.active .acc-header {
    color: #1A5E9D;
    font-weight: bold;
}

.acc-icon {
    transition: transform 0.3s;
}

.acc-item.active .acc-icon {
    transform: rotate(180deg);
}

.acc-body {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.acc-body-inner {
    padding: 0 20px 20px;
    color: #5D7388;
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Support */
.contact-support-section {
    margin-top: 40px;
}

.contact-support-section h3 {
    font-size: 20px;
    color: #5D7388;
    margin-bottom: 10px;
}

.contact-support-section p.subtitle {
    font-size: 17px;
    color: #1A5E9D;
    font-weight: bold;
    margin-bottom: 0px;
    width: 100%;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #F7F9FB;
    padding: 25px;
    border: 1px solid #D9E3EB;
}

.contact-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #D9E3EB;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 31.7%;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 210, 214, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info h5 {
    font-size: 19px;
    color: #5D7388;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-info p {
    font-size: 17px;
    color: #5D7388;
    margin-bottom: 10px;
    line-height: 1.4;
}

.contact-link {
    font-size: 17px;
    color: #00D2D6;
    font-weight: 500;
    text-decoration: none;
        word-break: break-all;
}

.contact-value {
    font-size: 14px;
    color: #00D2D6;
    font-weight: bold;
}

/* Info Banner */
.support-info-banner {
    margin-top: 25px;
    background: #E6F8FF;
    padding: 15px 20px;
    border: 1px solid #BDE8F1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5D7388;
    font-size: 17px;
}

.support-info-banner svg {
    flex-shrink: 0;
    color: #1A5E9D;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Order Tracking Styles */
.tosec {
    padding: 40px 0;
    background: #fff;
}

.back-to-orders {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1A5E9D;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.tracking-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.tracking-card {
    background: #fff;
    border: 1px solid #D9E3EB;
    border-radius: 4px;
    padding: 25px;
}

.tracking-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #D9E3EB;
    margin-bottom: 25px;
}

.tracking-product-txt h3 {
    font-size: 22px;
    color: #5D7388;
    margin-bottom: 0px;
    font-weight: normal;
}

.tracking-product-txt .price {
    font-size: 22px;
    color: #5D7388;
    font-weight: bold;
    margin-bottom: 0;
}

.tracking-product-img {
    width: 100px;
    height: 100px;
    border: 1px solid #F0F3F5;
    padding: 0px;
}

.tracking-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tracking-timeline {
    padding-left: 10px;
    margin-bottom: 25px;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #46C900;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    background: #46C900;
    border-radius: 50%;
    z-index: 1;
}

.timeline-dot.active {
    width: 20px;
    height: 20px;
    left: -5px;
    background: #46C900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot.active::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
}

.timeline-content {
    font-size: 17px;
    color: #5D7388;
}

.tracking-links {
    margin-top: 15px;
}

.tracking-links a {
    color: #1A5E9D;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.return-policy-note {
    font-size: 17px;
    color: #5D7388;
    margin-bottom: 0;
}

.order-id-highlight {
    margin-top: 25px;
    background: #E6F8FF;
    padding: 15px 20px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5D7388;
    font-size: 17px;
    border: 1px solid #D9E3EB;
}

.copy-btn {
    background: none;
    border: none;
    color: #1A5E9D;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Sidebar Details */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-box {
    background: #F5F7F9;
    border: 1px solid #D9E3EB;
    border-radius: 0px;
    padding: 20px;
}

.details-box h4 {
    font-size: 22px;
    color: #1A5E9D;
    margin-bottom: 10px;
    font-weight: bold;
}

.detail-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #5D7388;
    line-height: 1.4;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-txt {
    flex: 1;
}

.detail-txt strong {
    color: #5D7388;
    margin-right: 5px;
}

.price-summary {
    border-top: 1px solid #D9E3EB;
    padding-top: 5px;
    margin-top: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: #5D7388;
}

.price-row.total {
    font-size: 22px;
    color: #5D7388;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 15px;
}

.payment-method {
    background: #fff;
    border: 1px solid #D9E3EB;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #5D7388;
}

.payment-method span:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-invoice-btn {
    width: 100%;
    background: #00D2D6;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 0px;
    cursor: pointer;
    text-transform: capitalize;
}

@media (max-width: 991px) {
    .tracking-layout {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .contact-card {
        width: 47.7%;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .piside {
        position: relative;
        top: 0px;
    }

    .contact-card {
        width: 48.4%;
    }

    .piinfo {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .pisec {
        padding: 10px 0;
    }

    .piside {
        position: relative;
        top: 0;
    }

    .contact-card {
        width: 100%;
    }

    .piinfo {
        width: 100%;
    }

    .order-card a {
        flex-wrap: wrap;
        gap: 15px;
    }

    .order-card {
        text-align: left;
    }

    .tosec {
        padding: 10px 0;
    }

    .tracking-product-txt {
        width: 70%;
    }

    .tracking-product-txt h3 {
        font-size: 17px;
        line-height: 1.3;
    }

    .tracking-product-txt .price {
        font-size: 19px;
    }
}