/*
 * TomyAll Core Design System & Styling Tokens
 * Premium, technological, elegant Apple-like interface.
 */

:root {
    --bg-primary: #07131D;
    --bg-secondary: #0B1825;
    --bg-tertiary: #102131;
    --accent-cyan: #00E5FF;
    --accent-hover: #18F0FF;
    --text-primary: #FFFFFF;
    --text-secondary: #8E9EA9;
    --text-muted: #536471;
    
    /* Glassmorphism options */
    --glass-bg: rgba(11, 24, 37, 0.6);
    --glass-bg-hover: rgba(16, 33, 49, 0.8);
    --glass-border: rgba(0, 229, 255, 0.12);
    --glass-border-focused: rgba(0, 229, 255, 0.35);
    --glass-blur: blur(20px);
    
    /* Gradients */
    --cyan-gradient: linear-gradient(135deg, #00E5FF 0%, #18F0FF 100%);
    --dark-gradient: linear-gradient(180deg, #0B1825 0%, #07131D 100%);
    
    /* Layout details */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.25);
    
    --transition-speed: 0.3s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all var(--transition-speed) var(--transition-curve);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-focused);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Authentication Screen Layout */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(16, 33, 49, 0.9), var(--bg-primary));
    padding: 24px;
    position: relative;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px 0;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Input Styles */
.tomyall-field {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tomyall-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tomyall-input {
    background: rgba(7, 19, 29, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.tomyall-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    background: rgba(16, 33, 49, 0.8);
}

/* Button Styles */
.tomyall-btn {
    width: 100%;
    background: var(--cyan-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 14px;
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tomyall-btn:hover {
    background: linear-gradient(135deg, #18F0FF 0%, #39f3ff 100%);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

.tomyall-btn:active {
    transform: translateY(0);
}

.tomyall-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Links & Navigation */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tomyall-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tomyall-link:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px rgba(24, 240, 255, 0.3);
}

.auth-secondary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -12px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

/* Message Banners */
.tomyall-message {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}

.tomyall-message.error {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.25);
    color: #FF8888;
}

.tomyall-message.success {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: #88F5FF;
}

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

/* App Layout & Sidebar */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.sidebar {
    width: 280px;
    height: 100%;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    flex-shrink: 0;
    z-index: 100;
}

.sidebar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 48px;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.sidebar-item:hover, .sidebar-item.active {
    color: var(--text-primary);
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.15);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.sidebar-item.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    position: relative;
    background-color: var(--bg-primary);
}

/* Profiles Layout */
.profile-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 80px 0;
}

.profile-header {
    position: relative;
    margin-bottom: 120px;
}

.profile-cover {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #07131D 0%, #102131 50%, #00E5FF 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.profile-avatar-wrapper {
    position: absolute;
    bottom: -80px;
    left: 48px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
    z-index: 10;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    background-color: var(--bg-secondary);
}

.profile-details-wrapper {
    padding: 0 48px;
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.profile-username {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.profile-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 8px 0 0 0;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.profile-video-card {
    height: 100%;
}

.presentation-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    background: var(--bg-secondary);
}

.presentation-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
}

/* Modals */
.tomyall-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 19, 29, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.25s var(--transition-curve);
}

.tomyall-modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    animation: slideUp 0.3s var(--transition-curve);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--accent-cyan);
}

/* File Upload Controls */
.upload-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.upload-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(7, 19, 29, 0.3);
    text-align: center;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.upload-zone-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.upload-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--cyan-gradient);
    width: 0%;
    transition: width 0.1s ease;
}

/* QR Code */
.qr-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.qr-image-wrapper {
    background: #FFFFFF;
    padding: 16px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 200px;
    height: 200px;
}

/* Publications Grid Placeholder */
.timeline-section {
    padding: 0 48px;
    margin-top: 60px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.placeholder-card {
    aspect-ratio: 9 / 16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .sidebar-brand {
        margin-bottom: 0;
    }
    
    .sidebar-nav {
        flex-direction: row;
        gap: 8px;
        flex-grow: 0;
    }
    
    .sidebar-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .profile-details-wrapper {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
    
    .profile-avatar-wrapper {
        left: 50%;
        transform: translateX(-50%);
        bottom: -80px;
    }
    
    .profile-meta {
        align-items: center;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .timeline-section {
        padding: 0 24px;
    }
}

/* Feed View Styles */
.feed-container {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: #02070c;
}

.feed-item {
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feed-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px; /* TikTok/Reels style vertical aspect */
    background-color: #000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Overlays */
.feed-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(180deg, 
        rgba(7, 19, 29, 0.4) 0%, 
        transparent 20%, 
        transparent 70%, 
        rgba(7, 19, 29, 0.8) 100%
    );
    z-index: 2;
}

.feed-meta-info {
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 80px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.feed-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    object-fit: cover;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
}

.feed-author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-author-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
}

.feed-author-username {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-family: monospace;
}

.feed-follow-btn {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.feed-follow-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.feed-follow-btn.following {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.feed-description {
    font-size: 0.95rem;
    color: #FFFFFF;
    line-height: 1.4;
}

.feed-hashtags {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Side Action Stack */
.feed-side-actions {
    position: absolute;
    bottom: 24px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feed-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.feed-action-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 33, 49, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.feed-action-circle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.feed-action-circle.active {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.feed-action-label {
    font-size: 0.75rem;
    color: #FFFFFF;
    font-weight: 500;
}

/* Floating Controllers */
.feed-mute-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(7, 19, 29, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.feed-mute-indicator:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
}

/* Play State indicator */
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.play-pause-overlay.animate {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: pingFade 0.7s forwards;
}

@keyframes pingFade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@media (max-width: 900px) {
    .feed-video-wrapper {
        max-width: 100%;
    }
}

/* Discover Screen Styles */
.discover-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
}

.discover-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    width: 100%;
}

.discover-search-input-container {
    width: 100%;
    max-width: 580px;
    position: relative;
}

.discover-search-input {
    width: 100%;
    background: rgba(7, 19, 29, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 16px 24px;
    padding-right: 56px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.discover-search-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(16, 33, 49, 0.7);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.discover-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.discover-filters {
    display: flex;
    gap: 12px;
}

.discover-filter-btn {
    background: rgba(16, 33, 49, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.discover-filter-btn:hover, .discover-filter-btn.active {
    color: var(--text-primary);
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent-cyan);
}

.discover-filter-btn.active {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

/* Discover Card Grid */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

.discover-card {
    height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.discover-card-cover {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #0b1825 0%, #00e5ff 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.discover-card-avatar-wrapper {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-primary);
    padding: 3px;
    z-index: 5;
}

.discover-card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-cyan);
}

.discover-card-details {
    padding: 60px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.discover-card-info {
    text-align: center;
    margin-bottom: 16px;
}

.discover-card-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.discover-card-name:hover {
    color: var(--accent-cyan);
}

.discover-card-username {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.discover-card-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
}

.discover-card-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-bottom: 16px;
}

.discover-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.discover-card-stat-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.discover-card-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discover-card-follow-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
}

@media (max-width: 900px) {
    .discover-container {
        padding: 24px;
    }
    
    .discover-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}



