/* TekFit Customer Portal Styles - Luxury Edition */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Admin Controls */
.tekfit-admin-notice {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #60a5fa;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 30px;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.tekfit-admin-controls {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tekfit-admin-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tekfit-admin-form label {
    font-weight: 600;
    color: #2d2d2d;
    font-size: 14px;
    white-space: nowrap;
}

.tekfit-admin-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.tekfit-admin-form input[type="email"]:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.1);
}

.tekfit-admin-button,
.tekfit-admin-button-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.tekfit-admin-button {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.tekfit-admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.3);
}

.tekfit-admin-button-secondary {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 2px solid #e8e8e8;
}

.tekfit-admin-button-secondary:hover {
    background: #e8e8e8;
}

.tekfit-portal-container {
    max-width: 1200px;
    margin: 2vw auto;
    padding: 50px 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tekfit-portal-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.tekfit-portal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #270b45 0%, #2375c6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tekfit-portal-header p {
    font-size: 16px;
    color: #6b6b6b;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.tekfit-book-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #270b45 0%, #2375c6 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(39, 11, 69, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.tekfit-book-button:hover {
    background: linear-gradient(135deg, #1f0836 0%, #1d5fa0 100%);
    box-shadow: 0 4px 12px rgba(39, 11, 69, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none !important;
}

.tekfit-book-button svg {
    flex-shrink: 0;
}

.tekfit-logout-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tekfit-logout-button:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none !important;
}

.tekfit-logout-button:visited {
    color: #ffffff !important;
}

.tekfit-logout-button svg {
    flex-shrink: 0;
}

.tekfit-month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tekfit-month-selector label {
    font-weight: 500;
    color: #2d2d2d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.tekfit-month-selector select {
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    font-family: 'Inter', sans-serif;
}

.tekfit-month-selector select:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tekfit-month-selector select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.1);
}

.tekfit-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tekfit-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tekfit-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tekfit-stat-card:hover::before {
    opacity: 1;
}

.tekfit-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

.tekfit-stat-card h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    opacity: 0.85;
}

.tekfit-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 800;
    margin: 15px 0;
    line-height: 1;
    letter-spacing: -2px;
}

.tekfit-stat-card.bookings-used {
    color: #0a0a0a;
}

.tekfit-stat-card.bookings-used .tekfit-stat-value {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tekfit-stat-card.bookings-limit {
    color: #1a1a1a;
}

.tekfit-stat-card.bookings-limit .tekfit-stat-value {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tekfit-stat-card.bookings-remaining {
    color: #1a1a1a;
}

.tekfit-stat-card.bookings-remaining .tekfit-stat-value {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tekfit-stat-description {
    font-size: 14px;
    color: #3a3a3a;
    margin-top: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    font-family: 'Inter', sans-serif;
}

.tekfit-progress-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tekfit-progress-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.tekfit-progress-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tekfit-progress-bar-container {
    width: 100%;
    height: 40px;
    background: #f1f1f1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tekfit-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    overflow: hidden;
}

.tekfit-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.tekfit-progress-bar.warning {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.tekfit-progress-bar.danger {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.tekfit-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.tekfit-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    border-radius: 16px;
    padding: 25px 30px;
    color: #991b1b;
    margin: 30px 0;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.tekfit-error strong {
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.tekfit-no-subscription {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fcd34d;
    border-radius: 16px;
    padding: 40px;
    color: #78350f;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.tekfit-no-subscription p {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.6;
}

.tekfit-no-subscription strong {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #92400e;
    display: block;
    margin-bottom: 12px;
}

.tekfit-loading {
    text-align: center;
    padding: 60px;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tekfit-loading::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 30px auto 0;
    border: 4px solid #f3f4f6;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Booking History */
.tekfit-booking-history {
    margin-top: 50px;
}

/* Debug Panel */
.tekfit-debug-panel {
    margin: 40px 0;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
}

.tekfit-debug-panel h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tekfit-debug-panel h3::before {
    content: '🔍';
    font-size: 20px;
}

.tekfit-debug-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

.tekfit-debug-item {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.tekfit-debug-item:last-child {
    border-bottom: none;
}

.tekfit-debug-item strong {
    display: inline-block;
    min-width: 180px;
    color: #374151;
    font-weight: 700;
}

.tekfit-debug-error {
    color: #dc2626;
    background: #fee2e2;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.tekfit-debug-item pre {
    background: #1f2937;
    color: #10b981;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
}

/* Billing Portal Section */
.tekfit-billing-portal-section {
    margin: 50px 0;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tekfit-billing-portal-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.2);
    text-decoration: none;
}

.tekfit-billing-portal-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
}

.tekfit-billing-portal-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.tekfit-billing-portal-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tekfit-billing-portal-button svg {
    flex-shrink: 0;
}

.tekfit-billing-description {
    margin-top: 20px;
    font-size: 14px;
    color: #6b6b6b;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tekfit-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tekfit-history-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.tekfit-history-list {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tekfit-history-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tekfit-history-item:last-child {
    border-bottom: none;
}

.tekfit-history-item:hover {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.tekfit-history-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tekfit-history-details {
    flex: 1;
}

.tekfit-history-service {
    font-weight: 700;
    font-size: 16px;
    color: #0a0a0a;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.tekfit-history-datetime {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #3a3a3a;
    font-family: 'Inter', sans-serif;
}

.tekfit-history-date {
    font-weight: 500;
}

.tekfit-history-time {
    padding-left: 12px;
    border-left: 2px solid #e8e8e8;
}

.tekfit-history-status {
    flex-shrink: 0;
}

.tekfit-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tekfit-status-approved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.tekfit-status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.tekfit-status-canceled,
.tekfit-status-cancelled,
.tekfit-status-rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.tekfit-status-no-show {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

/* Session Allocations */
.tekfit-session-allocations {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tekfit-session-allocations h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.tekfit-allocations-list {
    display: grid;
    gap: 15px;
}

.tekfit-allocation-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tekfit-allocation-item.unpaid {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.tekfit-allocation-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tekfit-unpaid-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border: 1px solid #f59e0b;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tekfit-unpaid-warning svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.tekfit-pay-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-left: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.tekfit-pay-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.tekfit-allocation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tekfit-allocation-plan {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tekfit-allocation-plan strong {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
}

.tekfit-allocation-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: #6b6b6b;
    font-family: 'Inter', sans-serif;
}

.tekfit-allocation-limit {
    font-size: 14px;
    font-weight: 600;
    color: #2375c6;
}

.tekfit-allocation-expiry {
    font-size: 13px;
    color: #6b6b6b;
    font-weight: 500;
}

.tekfit-allocation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tekfit-allocation-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tekfit-allocation-stat .label {
    font-size: 12px;
    color: #6b6b6b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tekfit-allocation-stat .value {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.tekfit-allocation-progress {
    margin-top: 5px;
}

.tekfit-allocation-progress .tekfit-progress-bar-container {
    height: 8px;
    border-radius: 4px;
}

.tekfit-allocation-progress .tekfit-progress-text {
    font-size: 11px;
    margin-top: 5px;
}

/* Allocation Badges in Booking History */
.tekfit-allocation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.tekfit-allocation-badge.allocated {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tekfit-allocation-badge.exceeded {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.tekfit-allocation-badge.outside {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.tekfit-allocation-badge.no-plan {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #374151;
    border: 1px solid #d1d5db;
}

.tekfit-allocation-plan-name {
    font-weight: 700;
}

.tekfit-allocation-expiry-date {
    font-size: 11px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .tekfit-portal-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .tekfit-portal-header h2 {
        font-size: 32px;
    }
    
    .tekfit-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tekfit-month-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 25px 20px;
    }
    
    .tekfit-month-selector select {
        width: 100%;
    }
    
    .tekfit-stat-value {
        font-size: 48px;
    }
    
    .tekfit-stat-card {
        padding: 30px 25px;
    }
    
    .tekfit-progress-container {
        padding: 35px 25px;
    }
    
    .tekfit-progress-container h3 {
        font-size: 22px;
    }
    
    .tekfit-admin-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tekfit-admin-form input[type="email"] {
        width: 100%;
    }
    
    .tekfit-admin-button,
    .tekfit-admin-button-secondary {
        width: 100%;
        text-align: center;
    }
    
    .tekfit-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .tekfit-history-datetime {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .tekfit-history-time {
        padding-left: 0;
        border-left: none;
    }
    
    .tekfit-billing-portal-section {
        padding: 30px 20px;
    }
    
    .tekfit-billing-portal-button {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .tekfit-portal-container {
        box-shadow: none;
        border: 1px solid #e5e5e5;
    }
    
    .tekfit-month-selector {
        display: none;
    }
}
