/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    margin: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: color 0.2s ease;
}

.profile-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Order Cards */
.order-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.order-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-id {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.order-date {
    font-size: 11px;
    color: #999;
}

.order-summary {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.order-item {
    font-size: 14px;
    color: #fff;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-footer span:first-child {
    color: #aaa;
}

.order-status {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.order-status.pending {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.3);
}

.order-status.paid {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.3);
}

.order-status.payment-pending {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-status.payment-pending:hover {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.5);
}

.order-status.payment-pending:active {
    transform: scale(0.95);
}

.order-status.shipped {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.order-status.accepted {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* Order Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 16px;
}

.order-detail-section {
    margin-bottom: 16px;
}

.order-detail-section:last-child {
    margin-bottom: 0;
}

.order-detail-section h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #888;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 6px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item-name {
    font-weight: 500;
    color: #fff;
    font-size: 15px;
}

.detail-item-farm {
    font-size: 13px;
    color: #888;
}

.detail-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
}

.detail-item-qty {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.detail-subtotal,
.detail-insurance,
.detail-shipping {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

.detail-subtotal-price,
.detail-insurance-price,
.detail-shipping-price {
    font-weight: 600;
    color: #fff;
}

.detail-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 8px;
    margin-top: 12px;
    font-weight: 600;
    color: #fff;
}

.detail-total-price {
    font-size: 18px;
    color: var(--primary-blue);
}

.detail-customer {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 8px;
}

.detail-customer p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.detail-customer p:last-child {
    margin-bottom: 0;
}

.detail-customer strong {
    color: #fff;
    font-size: 15px;
}

/* Payment Action Button (iOS style) */
.payment-action-btn {
    /* Liquid Glass Background - Bleu iOS avec effet vitreux */
    background: rgba(0, 122, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    /* Bordure subtile pour effet de profondeur */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 16px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    /* Texte blanc contrastÃ© */
    color: #ffffff;

    /* Dimensions */
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    margin-top: 12px;

    /* Typography iOS */
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-align: center;

    /* Interactions */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Effet de reflet (iOS signature) */
    position: relative;
    overflow: hidden;
    display: block;
}

.payment-action-btn::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 ease;
}

.payment-action-btn:hover::before {
    left: 100%;
}

.payment-action-btn:hover {
    background: rgba(0, 122, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 12px 24px rgba(0, 122, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.payment-action-btn:active {
    transform: scale(0.96);
    box-shadow:
        0 4px 8px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Modal Payment Footer (sticky au bas de modal-content) */
.modal-payment-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

/* Bloquer scroll du body quand modal ouvert */
body.modal-open {
    overflow: hidden;
}

