/* ============================================
   INDUSTRIAL-GRADE MEMBER DASHBOARD
   Masterpiece Design - World Class Quality
   ============================================ */

:root {
    --primary-green: #BFDC92;
    --primary-green-dark: #a8c97f;
    --primary-green-light: #d4e8b8;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

.sports-customer-dashboard {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 32px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ============================================
   WELCOME BANNER - Industrial Hero Section
   ============================================ */

.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: var(--radius-2xl);
    padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
    margin-bottom: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.welcome-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.welcome-content h1 {
    color: white;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
    letter-spacing: -1px;
    line-height: 1.1;
}

.welcome-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: clamp(16px, 2.5vw, 22px);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 3vw, 32px);
}

.welcome-actions {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.sports-button-logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 28px);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    color: white;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sports-button-logout svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.sports-button-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: white;
}

.sports-button-logout:active {
    transform: translateY(0);
}

/* ============================================
   DASHBOARD GRID - Advanced Layout System
   ============================================ */

.dashboard-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}

/* Make certain cards span full width */
.membership-info-modern,
.services-card-modern,
.activity-card-modern {
    grid-column: 1 / -1; /* Span all columns */
}

/* Ensure Profile and QR cards are in the same row and have equal height */
.profile-card-modern,
.qr-card-modern {
    min-height: 100%;
}

/* ============================================
   CARDS - Industrial Design System
   ============================================ */

.dashboard-card-modern {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
}

.dashboard-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 50%, var(--primary-green) 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.dashboard-card-modern:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-green-light);
}

.dashboard-card-modern:hover::before {
    transform: scaleX(1);
}

/* ============================================
   CARD HEADERS - Professional Typography
   ============================================ */

.card-header-modern {
    margin-bottom: clamp(20px, 3vw, 28px);
    padding-bottom: clamp(16px, 2.5vw, 20px);
    border-bottom: 2px solid var(--bg-tertiary);
    position: relative;
}

.card-header-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green) 0%, transparent 100%);
}

.card-title {
    margin: 0;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ============================================
   PROFILE CARD - Premium Design
   ============================================ */

.profile-card-modern {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-card-modern .card-content-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-info-modern {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-photo-modern {
    width: clamp(140px, 20vw, 180px);
    height: clamp(140px, 20vw, 180px);
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--primary-green);
    box-shadow: 
        0 0 0 12px rgba(191, 220, 146, 0.1),
        0 20px 40px rgba(191, 220, 146, 0.3),
        inset 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto clamp(20px, 3vw, 28px);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    position: relative;
    transition: all var(--transition-base);
}

.profile-photo-modern::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.profile-photo-modern:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 0 0 16px rgba(191, 220, 146, 0.15),
        0 30px 60px rgba(191, 220, 146, 0.4);
}

.profile-photo-modern:hover::after {
    opacity: 1;
}

.profile-photo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.profile-photo-modern:hover img {
    transform: scale(1.1);
}

.profile-name {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 clamp(20px, 3vw, 28px) 0;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.profile-detail-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(14px, 2vw, 18px) clamp(16px, 2.5vw, 24px);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.profile-detail-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green), var(--primary-green-dark));
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.profile-detail-modern:hover {
    background: linear-gradient(135deg, rgba(191, 220, 146, 0.1) 0%, rgba(191, 220, 146, 0.05) 100%);
    transform: translateX(8px);
    border-color: var(--primary-green-light);
    box-shadow: var(--shadow-md);
}

.profile-detail-modern:hover::before {
    transform: scaleY(1);
}

.profile-detail-modern strong {
    color: var(--text-tertiary);
    font-size: clamp(11px, 1.5vw, 13px);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.profile-detail-modern span {
    color: var(--text-primary);
    font-weight: 700;
    font-size: clamp(14px, 2vw, 16px);
}

/* ============================================
   QR CODE CARD - Premium Display
   ============================================ */

.qr-card-modern {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.qr-card-modern .card-content-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-code-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.qr-code-display img {
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin: 0 auto clamp(20px, 3vw, 28px);
    display: block;
    transition: all var(--transition-base);
    border: 8px solid white;
    background: white;
    align-self: center;
}

.qr-code-display img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-2xl);
}

.qr-instructions {
    color: var(--text-secondary);
    font-size: clamp(14px, 2vw, 16px);
    margin: clamp(16px, 2.5vw, 24px) 0;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    width: 100%;
}

.qr-code-display button,
.qr-code-display .sports-button {
    margin: 0 auto;
    display: block;
    width: auto;
    min-width: 200px;
}

/* ============================================
   MEMBERSHIP INFO - List System (Same as Services)
   ============================================ */

.membership-info-modern {
    grid-column: span 2;
}

.membership-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.membership-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(16px, 2.5vw, 22px) clamp(20px, 3vw, 32px);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 12px;
}

.membership-details-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-green), var(--primary-green-dark));
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.membership-details-list li:hover {
    background: linear-gradient(135deg, rgba(191, 220, 146, 0.15) 0%, rgba(191, 220, 146, 0.08) 100%);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-green);
}

.membership-details-list li:hover::before {
    transform: scaleY(1);
}

.detail-name {
    font-weight: 800;
    color: var(--text-primary);
    font-size: clamp(14px, 2vw, 16px);
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

/* Style for inline SVG icons */
.detail-name svg {
    flex-shrink: 0;
    stroke: #bfdc92;
    color: #bfdc92;
}

/* Keep the green checkmark for status */
.detail-name.status-detail::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(191, 220, 146, 0.4);
    margin-right: 12px;
}

.detail-value {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.detail-value.member-id {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-green);
    text-shadow: 0 2px 8px rgba(191, 220, 146, 0.3);
    font-family: 'Courier New', monospace;
    background: rgba(191, 220, 146, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    border: 2px solid rgba(191, 220, 146, 0.3);
}

.detail-value.highlight {
    color: var(--primary-green);
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 900;
    background: rgba(191, 220, 146, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    border: 2px solid rgba(191, 220, 146, 0.3);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 800;
    white-space: nowrap;
    border: 2px solid rgba(191, 220, 146, 0.3);
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 800;
    text-transform: capitalize;
    gap: 8px;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.status-active::before {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-expired {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.status-expired::before {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1);
    }
}

/* ============================================
   SERVICES CARD - Advanced List Design
   ============================================ */

.services-card-modern {
    grid-column: 1 / -1;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.services-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(16px, 2.5vw, 22px) clamp(20px, 3vw, 32px);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 12px;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-green), var(--primary-green-dark));
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.services-list li:hover {
    background: linear-gradient(135deg, rgba(191, 220, 146, 0.15) 0%, rgba(191, 220, 146, 0.08) 100%);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-green);
}

.services-list li:hover::before {
    transform: scaleY(1);
}

.service-name {
    font-weight: 800;
    color: var(--text-primary);
    font-size: clamp(14px, 2vw, 16px);
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.service-name::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(191, 220, 146, 0.4);
}

.service-usage {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--primary-green);
    font-weight: 800;
    background: rgba(191, 220, 146, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    border: 2px solid rgba(191, 220, 146, 0.3);
}

/* ============================================
   ACTIVITY CARD - Professional Table
   ============================================ */

.activity-card-modern {
    grid-column: span 2;
}

.activity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 clamp(8px, 1vw, 12px);
    overflow: hidden;
}

.activity-table thead {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.activity-table th {
    text-align: left;
    padding: clamp(12px, 2vw, 16px);
    font-size: clamp(11px, 1.5vw, 13px);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 900;
}

.activity-table th:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.activity-table th:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.activity-table td {
    padding: clamp(14px, 2vw, 18px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: clamp(13px, 1.8vw, 15px);
}

.activity-table tbody tr {
    transition: all var(--transition-fast);
}

.activity-table tbody tr:hover td {
    background: rgba(191, 220, 146, 0.1);
    transform: scale(1.01);
}

.activity-table tbody tr td:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.activity-table tbody tr td:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   BUTTONS - Premium Interactions
   ============================================ */

.sports-button {
    display: inline-block;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 36px);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    text-decoration: none;
    border-radius: 32px;
    font-weight: 800;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-size: clamp(14px, 2vw, 16px);
    letter-spacing: 0.5px;
    margin-top: clamp(12px, 2vw, 20px);
    position: relative;
    overflow: hidden;
}

.sports-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sports-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.sports-button:hover::before {
    width: 300px;
    height: 300px;
}

.sports-button:active {
    transform: translateY(-2px);
}

.sports-button-secondary {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FAMILY MEMBERS CARD
   ============================================ */

.family-members-card-modern {
    grid-column: 1 / -1;
}

.family-members-card-modern .card-header-modern {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: calc(-1 * clamp(24px, 4vw, 36px)) calc(-1 * clamp(24px, 4vw, 36px)) clamp(20px, 3vw, 28px);
    padding: clamp(20px, 3vw, 28px) clamp(24px, 4vw, 36px);
    border-bottom: none;
}

.family-members-card-modern .card-header-modern::after {
    display: none;
}

.family-members-card-modern .card-title {
    color: white;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 900;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.family-members-card-modern .card-title svg {
    width: clamp(20px, 2.5vw, 24px);
    height: clamp(20px, 2.5vw, 24px);
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.family-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    width: 100%;
}

.family-member-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #fb923c;
    transition: transform 0.2s;
    min-width: 0;
}

.family-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */

@media (max-width: 1200px) {
    .activity-card-modern,
    .membership-info-modern {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .sports-customer-dashboard {
        padding: clamp(12px, 3vw, 20px);
    }
    
    .family-members-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: clamp(12px, 2vw, 20px);
    }
    
    .dashboard-welcome {
        padding: clamp(24px, 5vw, 40px) clamp(20px, 4vw, 32px);
        border-radius: var(--radius-xl);
    }
    
    .dashboard-grid-modern {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 24px);
    }
    
    .membership-details-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .dashboard-card-modern {
        padding: clamp(20px, 4vw, 28px);
        border-radius: var(--radius-lg);
    }
    
    .profile-photo-modern {
        width: clamp(120px, 25vw, 160px);
        height: clamp(120px, 25vw, 160px);
    }
    
    .qr-code-display img {
        width: min(100%, 260px);
    }
    
    .card-title {
        font-size: clamp(18px, 3vw, 22px);
    }
    
    .activity-table {
        font-size: clamp(12px, 2vw, 14px);
    }
    
    .activity-table th,
    .activity-table td {
        padding: clamp(10px, 2vw, 14px);
    }
    
    .services-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .family-members-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: clamp(10px, 2vw, 16px);
    }
    
    .family-member-card {
        padding: 16px;
    }
    
    .dashboard-welcome {
        border-radius: var(--radius-lg);
        padding: clamp(20px, 4vw, 32px) clamp(16px, 3vw, 24px);
    }
    
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(16px, 3vw, 24px);
    }
    
    .welcome-actions {
        width: 100%;
    }
    
    .sports-button-logout {
        width: 100%;
        justify-content: center;
    }
    
    .welcome-content h1 {
        font-size: clamp(24px, 6vw, 32px);
    }
    
    .welcome-subtitle {
        font-size: clamp(14px, 3vw, 18px);
    }
    
    .dashboard-card-modern {
        padding: clamp(16px, 3vw, 24px);
        border-radius: var(--radius-md);
    }
    
    .profile-photo-modern {
        width: clamp(100px, 30vw, 140px);
        height: clamp(100px, 30vw, 140px);
        border-width: 4px;
    }
    
    .profile-name {
        font-size: clamp(20px, 5vw, 28px);
    }
    
    .qr-code-display img {
        width: min(100%, 220px);
        border-width: 6px;
    }
    
    .detail-value.member-id {
        font-size: clamp(14px, 2vw, 18px);
        letter-spacing: 1px;
    }
    
    .sports-button {
        padding: clamp(10px, 2.5vw, 14px) clamp(20px, 4vw, 28px);
        font-size: clamp(13px, 2.5vw, 15px);
        width: 100%;
        text-align: center;
    }
    
    .activity-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .activity-table thead,
    .activity-table tbody,
    .activity-table tr,
    .activity-table td {
        display: block;
    }
    
    .activity-table thead {
        display: none;
    }
    
    .activity-table tr {
        margin-bottom: 12px;
        border-radius: var(--radius-md);
        background: var(--bg-secondary);
        padding: 12px;
    }
    
    .activity-table td {
        padding: 8px 0;
        border: none;
        text-align: left;
    }
    
    .activity-table td:before {
        content: attr(data-label) ': ';
        font-weight: 800;
        color: var(--text-tertiary);
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 1px;
        margin-right: 8px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .sports-customer-dashboard {
        background: white;
        padding: 0;
    }
    
    .dashboard-card-modern {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .sports-button {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.dashboard-card-modern:focus-within,
.profile-detail-modern:focus-within,
.membership-details-list li:focus-within,
.services-list li:focus-within {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dashboard-card-modern {
        border-width: 2px;
    }
    
    .profile-detail-modern,
    .membership-details-list li,
    .services-list li {
        border-width: 2px;
    }
}
