/* Tracking Portal Frontend Styles - No ZIP Version */
.tp-tracking-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 12px;
    border: 1px solid #333;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.tp-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.tp-credits-badge {
    background: transparent;
    border: 2px solid #4a9eff;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-credits-label {
    color: #888;
    font-size: 14px;
}

.tp-credits-value {
    color: #4a9eff;
    font-weight: 700;
    font-size: 18px;
}

.tp-search-form {
    margin-bottom: 30px;
}

.tp-form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.tp-second-row {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.tp-select, .tp-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.tp-select:focus, .tp-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.tp-select option {
    background: #1a1a1a;
    color: #fff;
}

.tp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tp-btn-search {
    background: #fff;
    color: #000;
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
}

.tp-btn-search:hover {
    background: #e0e0e0;
}

.tp-btn-unlock {
    background: #4a9eff;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

.tp-btn-unlock:hover {
    background: #3a8eef;
}

.tp-results-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.tp-results-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.tp-tracking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-tracking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
}

.tp-tracking-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tp-courier {
    font-weight: 600;
    color: #4a9eff;
}

.tp-country, .tp-date {
    color: #888;
    font-size: 14px;
}

.tp-no-results {
    color: #888;
    text-align: center;
    padding: 20px;
}

.tp-unlocked-section {
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.tp-unlocked-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.tp-unlocked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.tp-unlocked-card {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}

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

.tp-courier-tag {
    background: #4a9eff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tp-status {
    color: #4caf50;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.tp-tracking-number {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tp-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #888;
    font-size: 13px;
}

.tp-empty {
    color: #888;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.tp-login-required {
    text-align: center;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.tp-login-required a {
    color: #4a9eff;
    text-decoration: none;
}

/* My Trackings Only Page Styles */
.tp-my-trackings-only .tp-unlocked-section {
    margin-top: 0;
}

.tp-back-to-search {
    margin-top: 30px;
    text-align: center;
}

.tp-back-to-search .tp-btn-search {
    display: inline-block;
    text-decoration: none;
    max-width: 300px;
}

.tp-my-trackings-only .tp-unlocked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.tp-my-trackings-only .tp-unlocked-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #444;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tp-my-trackings-only .tp-unlocked-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.tp-copy-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    transition: all 0.3s;
}

.tp-copy-btn:hover {
    background: #4a9eff;
    border-color: #4a9eff;
}

.tp-copy-btn.copied {
    background: #4caf50;
    border-color: #4caf50;
}

@media (max-width: 768px) {
    .tp-form-row {
        grid-template-columns: 1fr;
    }
    .tp-second-row {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .tp-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .tp-tracking-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .tp-tracking-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* Referral System Styles */
.tp-referral-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 12px;
    border: 1px solid #333;
    color: #fff;
}

.tp-referral-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.tp-referral-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #4a9eff;
}

.tp-referral-desc {
    color: #888;
    font-size: 16px;
    margin: 0;
}

.tp-referral-desc strong {
    color: #4a9eff;
}

.tp-referral-box {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #444;
}

.tp-referral-box label {
    display: block;
    margin-bottom: 10px;
    color: #888;
    font-size: 14px;
}

.tp-referral-link-wrapper {
    display: flex;
    gap: 10px;
}

.tp-referral-link-wrapper input {
    flex: 1;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #555;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.tp-copy-referral {
    background: #4a9eff !important;
    color: #fff !important;
    padding: 12px 20px !important;
    white-space: nowrap;
}

.tp-copy-referral:hover {
    background: #3a8eef !important;
}

.tp-referral-code-display {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

.tp-referral-code-display strong {
    color: #4a9eff;
    font-size: 16px;
}

.tp-referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.tp-stat-item {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

.tp-stat-item.highlight {
    border-color: #4a9eff;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f1a2e 100%);
}

.tp-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #4a9eff;
    margin-bottom: 5px;
}

.tp-stat-label {
    color: #888;
    font-size: 13px;
}

.tp-referral-pending {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border-left: 3px solid #ffa500;
}

.tp-referral-pending p {
    margin: 0;
    color: #ffa500;
    font-size: 14px;
}

@media (max-width: 768px) {
    .tp-referral-link-wrapper {
        flex-direction: column;
    }

    .tp-referral-stats {
        grid-template-columns: 1fr;
    }

    .tp-referral-section {
        padding: 20px;
    }
}

/* Exclusive Tracking Styles - 1 User Only */
.tp-tracking-item.claimed {
    opacity: 0.7;
    background: #1a1a1a;
    border-color: #444;
}

.tp-tracking-item.owned {
    border-color: #4caf50;
    background: #0f2e1a;
}

.tp-claimed-badge {
    background: #ff4444;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.tp-owned-badge {
    background: #4caf50;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.tp-btn-claimed {
    background: #333 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.tp-btn-owned {
    background: #2e7d32 !important;
    color: #fff !important;
    cursor: default !important;
}

.tp-tracking-item.claimed .tp-courier,
.tp-tracking-item.claimed .tp-country,
.tp-tracking-item.claimed .tp-date {
    color: #666;
}

/* Notice for exclusive tracking */
.tp-exclusive-notice {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e1a1a 100%);
    border-left: 4px solid #ff4444;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    color: #ff9999;
    font-size: 14px;
}

.tp-exclusive-notice strong {
    color: #ff4444;
}
