/* ==================== ORDER TRACKING - DARK THEME ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rkft-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    /* background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); */
    border-radius: 16px;
}

.rkft-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

/* ==================== HEADER ==================== */
.rkft-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.rkft-order-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
}

.rkft-wc-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rkft-status-processing { 
    background: rgba(255, 193, 7, 0.2); 
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.rkft-status-completed { 
    background: rgba(76, 175, 80, 0.2); 
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.rkft-status-pending { 
    background: rgba(244, 67, 54, 0.2); 
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.rkft-status-on-hold { 
    background: rgba(33, 150, 243, 0.2); 
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.rkft-status-cancelled { 
    background: rgba(244, 67, 54, 0.2); 
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.rkft-eta {
    text-align: right;
}

.rkft-eta-label {
    display: block;
    font-size: 13px;
    color: #888888;
    margin-bottom: 4px;
}

.rkft-eta-date {
    display: block;
    font-size: 18px;
    color: #ff8c00;
    font-weight: 700;
}

/* ==================== PROGRESS TIMELINE ==================== */
.rkft-timeline {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid rgba(255,255,255,0.05);
}

.rkft-timeline-progress {
    position: absolute;
    top: 65px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, #ff8c00, #ffa500);
    border-radius: 4px;
    transition: width 0.5s ease;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.rkft-timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.rkft-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1a;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 3px solid #333333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.rkft-timeline-step.active .rkft-step-icon {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: #fff;
    border-color: #ff8c00;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

.rkft-timeline-step.current .rkft-step-icon {
    animation: pulse 1.5s infinite;
}

.payment_method {
    color: #ffffff !important;
    font-weight: 300 !important;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 8px 30px rgba(255, 140, 0, 0.8);
    }
}

.rkft-checkmark {
    font-size: 28px;
    font-weight: bold;
}

.rkft-step-label {
    font-weight: 600;
    font-size: 14px;
    color: #666666;
    margin-bottom: 4px;
}

.rkft-timeline-step.active .rkft-step-label {
    color: #ff8c00;
    font-weight: 700;
}

.rkft-step-time {
    font-size: 12px;
    color: #555555;
}

/* ==================== CONTENT SECTION ==================== */
.rkft-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.rkft-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Order Items */
.rkft-items-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.rkft-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rkft-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.rkft-item:hover {
    transform: translateX(5px);
    background: rgba(0,0,0,0.5);
    border-color: rgba(255, 140, 0, 0.3);
}

.rkft-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.1);
}

.rkft-item-details {
    flex: 1;
}

.rkft-item-name {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 6px;
}

.rkft-item-meta {
    font-size: 14px;
    color: #888888;
}

.rkft-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff8c00;
}

/* Summary Section */
.rkft-summary-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rkft-summary-box,
.rkft-address-box,
.rkft-payment-box {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.rkft-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 15px;
    color: #cccccc;
}

.rkft-summary-row strong {
    color: #ffffff;
}

.rkft-summary-row.rkft-total {
    border-bottom: none;
    font-size: 18px;
    padding-top: 15px;
    border-top: 2px solid #ff8c00;
}

.rkft-summary-row.rkft-total strong {
    color: #ff8c00;
}

.rkft-address-box h4,
.rkft-payment-box h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}

.rkft-address-box address {
    font-style: normal;
    line-height: 1.6;
    color: #aaaaaa;
}

.rkft-payment-box p {
    color: #aaaaaa;
}

.rkft-actions {
    display: flex;
    gap: 10px;
}

.rkft-btn {
    flex: 1;
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.rkft-btn-primary {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}

.rkft-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.5);
}

.rkft-btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
}

.rkft-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .rkft-content {
        grid-template-columns: 1fr;
    }
    
    .rkft-timeline {
        padding: 30px 15px;
        overflow-x: auto;
    }
    
    .rkft-timeline-progress {
        left: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .rkft-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rkft-eta {
        text-align: left;
    }
    
    .rkft-timeline-step {
        min-width: 100px;
    }
    
    .rkft-step-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .rkft-step-label {
        font-size: 12px;
    }
    
    .rkft-item {
        flex-wrap: wrap;
    }
    
    .rkft-item-price {
        width: 100%;
        text-align: right;
    }
    
    .rkft-actions {
        flex-direction: column;
    }
}

/* ==================== ORDER HISTORY PAGE - MODERN DESIGN ==================== */

 .rkft-history-wrapper {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    border-radius: 0;
} 

/* Header Section */
/* .rkft-history-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.rkft-history-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
} */

/* Tabs Navigation */
/* .rkft-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(26, 26, 26, 0.3);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
} */

.rkft-tab {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.rkft-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,165,0,0.2), transparent);
    transition: left 0.5s ease;
}

.rkft-tab:hover::before {
    left: 100%;
}

.rkft-tab:hover {
    border-color: rgba(255, 165, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* .rkft-tab.active {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.4);
    transform: translateY(-2px);
} */

.rkft-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.rkft-tab.active .rkft-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* Tab Content */
.rkft-tab-content {
    display: none;
}

.rkft-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.rkft-empty {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 40px;
    text-align: center;
    border-radius: 16px;
    color: #6c757d;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.rkft-empty::before {
    content: '📦';
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Order Cards */
.rkft-order-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.rkft-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff8c00, #ffa500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rkft-order-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.rkft-order-card:hover::before {
    opacity: 1;
}

/* Order Header */
.rkft-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.rkft-order-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rkft-order-info h3::before {
    content: '🛒';
    font-size: 20px;
}

.rkft-order-date {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Status Badge */
.rkft-status-badge {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rkft-status-badge.ongoing {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
}

.rkft-status-badge.completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.rkft-delivered-date {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    font-weight: 600;
}

/* Progress Bar */
.rkft-order-progress {
    margin-bottom: 20px;
    background: rgba(0,0,0,0.02);
    padding: 15px;
    border-radius: 10px;
}

.rkft-progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.rkft-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00 0%, #ffa500 100%);
    border-radius: 20px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    position: relative;
}

.rkft-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rkft-progress-text {
    font-size: 13px;
    color: #495057;
    font-weight: 700;
}

/* Order Items */
.rkft-order-items {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.rkft-item-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rkft-item-name {
    flex: 1;
    font-weight: 600;
    color: #212529;
    font-size: 15px;
}

.rkft-more-items {
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0,0,0,0.05);
    padding: 6px 12px;
    border-radius: 8px;
}

/* Order Footer */
.rkft-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.rkft-order-total {
    font-size: 16px;
    color: #495057;
    font-weight: 600;
}

.rkft-order-total strong {
    color: #ff8c00;
    font-size: 22px;
    font-weight: 800;
}

/* Action Buttons */
.rkft-btn-track,
.rkft-btn-invoice {
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rkft-btn-track::before {
    content: '📍';
}

.rkft-btn-invoice::before {
    content: '📄';
}

.rkft-btn-track:hover,
.rkft-btn-invoice:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.5);
    background: linear-gradient(135deg, #ffa500 0%, #ffb733 100%);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .rkft-history-wrapper {
        padding: 15px;
    }
    
    .rkft-order-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .rkft-history-header {
        padding: 30px 20px;
    }
    
    .rkft-history-header h2 {
        font-size: 24px;
    }
    
    .rkft-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .rkft-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rkft-order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rkft-btn-track,
    .rkft-btn-invoice {
        width: 100%;
        justify-content: center;
    }
}