/* Meetlo - Modern Soft UI Styles */

/* ============================================
   CSS VARIABLES - Soft Color Palette
   ============================================ */
:root {
    /* Main brand color - Meetlo Purple */
    --primary: #4d36ff;
    --primary-dark: #3d2acc;
    --primary-light: #6b54ff;
    --primary-ultra-light: #e6e1ff;
    
    /* Accent colors */
    --accent: #FF9F8A;
    --success: #6DD4B4;
    --danger: #FF8A9A;
    --warning: #FFB878;
    --info: #82B9FF;
    
    /* Neutral backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FC;
    --bg-tertiary: #F1F3F9;
    --bg-hover: #F5F7FB;
    
    /* Text colors */
    --text-primary: #2D3748;
    --text-secondary: #6B7A8F;
    --text-tertiary: #9DA8B6;
    --text-light: #B8C1CE;
    
    /* Borders - very subtle */
    --border: #E8ECF2;
    --border-light: #F1F4F9;
    
    /* Shadows - soft and subtle */
    --shadow-xs: 0 2px 4px rgba(77, 54, 255, 0.04);
    --shadow-sm: 0 3px 8px rgba(77, 54, 255, 0.06);
    --shadow: 0 4px 12px rgba(77, 54, 255, 0.08);
    --shadow-md: 0 6px 16px rgba(77, 54, 255, 0.1);
    --shadow-lg: 0 8px 24px rgba(77, 54, 255, 0.12);
    --shadow-xl: 0 12px 32px rgba(77, 54, 255, 0.15);
    
    /* Border radius - more rounded */
    --radius-sm: 0.5rem;
    --radius: 0.875rem;
    --radius-md: 1.125rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h3, h4, h5 {line-height: 1.2;}

/* ============================================
   NAVIGATION - TOP BAR
   ============================================ */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-xs);
}

.app-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.app-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.app-logo-link:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.app-logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: scale(1.05);
}

.btn-icon svg {
    width: 22px;
    height: 22px;
}

/* Side Menu Panel */
.side-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    max-width: 320px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    left: 0;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.side-panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.side-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.side-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    margin: 0.125rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.side-menu-button {
    border: none;
    border-left: 3px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.side-menu-link:hover {
    background: var(--bg-hover);
    color: var(--primary);
    border-left-color: var(--primary);
}

.side-menu-link.active {
    background: var(--primary-ultra-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.side-menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex-shrink: 0;
}

.side-menu-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 55, 72, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1050;
    transition: opacity 0.3s ease;
}

.panel-overlay.hidden {
    display: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: white;
    border-top: 1px solid var(--border);
    padding: 0 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(77, 54, 255, 0.06);
}

.bottom-nav .nav-item {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-top: 0.9rem;
    padding-bottom: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    color: var(--primary);
}

.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.bottom-nav .nav-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

.main-content.with-bottom-nav {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.page-header {
    padding: 2rem 1.25rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

.container-sm {
    max-width: 600px;
}

.container-md {
    max-width: 900px;
}

/* ============================================
   CARDS - Softer Design
   ============================================ */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-header h2,
.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-image {
    width: 100%;
    max-height: 300px !important;
    object-fit: cover;
}

/* ============================================
   BUTTONS - Modern & Soft
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.01em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(77, 54, 255, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 54, 255, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, #FF8F7A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 159, 138, 0.25);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 138, 0.35);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(109, 212, 180, 0.25);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 212, 180, 0.35);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 138, 154, 0.25);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 154, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-ultra-light);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

.btn-xs {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   FORMS - Clean & Modern
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-size: 0.9375rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-ultra-light);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7A8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.375rem;
}

/* ============================================
   FLASH MESSAGES - Floating Style
   ============================================ */
.flash-message {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    min-width: 320px;
    max-width: 500px;
    padding: 1.125rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.flash-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.flash-success {
    background: var(--success);
    color: white;
}

.flash-error {
    background: var(--danger);
    color: white;
}

.flash-warning {
    background: var(--warning);
    color: white;
}

.flash-info {
    background: var(--info);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: 2.5rem 0;
    margin-top: 4rem;
    margin-bottom: calc(70px + env(safe-area-inset-bottom));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-container p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden {
    display: none !important;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--primary-ultra-light);
    color: var(--primary);
}

.badge-success {
    background: rgba(109, 212, 180, 0.15);
    color: var(--success);
}

.badge-danger {
    background: rgba(255, 138, 154, 0.15);
    color: var(--danger);
}

.badge-warning {
    background: rgba(255, 184, 120, 0.15);
    color: var(--warning);
}

/* ============================================
   MODAL - Refined Design
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 55, 72, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    z-index: 1;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background: var(--bg-secondary);
}

.modal-close {
    background: var(--bg-hover);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* ============================================
   AVATARS
   ============================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* ============================================
   CUSTOM APP STYLES
   ============================================ */
.discover-container .card-content {
    margin-bottom: 7em;
}

.swipe-container {
    padding-top: 9em !important;
}

/* ============================================
   PAGE CONTAINERS - NO CARD WRAPPER
   ============================================ */
.page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-secondary);
}

.page-container-wide {
    max-width: 900px;
}

/* Tabs Navigation */
.tabs-container {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 61px;
    z-index: 100;
    gap: 0;
    box-shadow: var(--shadow-xs);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-ultra-light);
}

.tab-content {
    display: none;
    padding: 1.25rem;
}

.tab-content.active {
    display: block;
}

/* Cards Stack Layout */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.activity-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.activity-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.activity-card.cancelled {
    opacity: 0.65;
    border: 2px solid var(--danger);
}

.card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.card-content {
    padding: 1.5rem;
    position: relative;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.meta-item,
.meta-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.meta-icon {
    flex-shrink: 0;
    opacity: 0.8;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.meta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.card-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* Action Buttons in Cards */
.btn-action {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.125rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-action.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(77, 54, 255, 0.25);
}

.btn-action.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 54, 255, 0.35);
}

.btn-action.secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-action.secondary:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.btn-action.danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 138, 154, 0.25);
}

.btn-action.danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: none;
    background: var(--bg-hover);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-action-icon svg {
    width: 18px;
    height: 18px;
}

.btn-action-icon:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

/* Create Activity Button */
.create-new-btn-container {
    margin-bottom: 1.5rem;
}

.btn-create-activity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(77, 54, 255, 0.3);
}

.btn-create-activity:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(77, 54, 255, 0.4);
}

.btn-create-activity svg {
    width: 22px;
    height: 22px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
    letter-spacing: 0.02em;
}

.status-badge.waiting {
    background: rgba(255, 184, 120, 0.2);
    color: #92400e;
}

.status-badge.waiting::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 0.375rem;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0.8;
}

.status-badge.accepted {
    background: rgba(109, 212, 180, 0.2);
    color: #065f46;
}

.status-badge.rejected {
    background: rgba(255, 138, 154, 0.2);
    color: #991b1b;
}

.status-badge.withdrawn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.status-badge.cancelled {
    background: rgba(255, 138, 154, 0.2);
    color: #991b1b;
}

/* Organizer Info */
.organizer-name {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.organizer-name:hover {
    color: var(--primary);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    margin: 1.25rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.25rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 2.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(77, 54, 255, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(77, 54, 255, 0.4);
}

/* Form Sections */
.form-section {
    padding: 1.5rem;
    background: white;
    margin: 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-section-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.form-section-subtitle {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Activity Cards */
.activity-card {
    transition: var(--transition);
}

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

/* User Status */
.user-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--success);
    border: 2px solid white;
}

.user-status.offline {
    background: var(--text-tertiary);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--primary);
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.notification-icon.new_application { background: #dbeafe; }
.notification-icon.application_accepted { background: #d1fae5; }
.notification-icon.application_rejected { background: #fee2e2; }
.notification-icon.participant_withdrawn { background: #fef3c7; }
.notification-icon.new_message { background: #e0e7ff; }
.notification-icon.activity_reminder { background: #fce7f3; }
.notification-icon.activity_updated { background: #dbeafe; }
.notification-icon.activity_cancelled { background: #fee2e2; }
.notification-icon.default { background: #e5e7eb; }

.notification-content {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.1;
}

.notification-message {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.1;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.loading-notifications {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner-large {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */
.pwa-install-banner {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom) + 1rem);
    left: 1rem;
    right: 1rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(77, 54, 255, 0.2);
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.pwa-install-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.pwa-install-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.pwa-install-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pwa-install-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pwa-install-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-install {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(77, 54, 255, 0.25);
    white-space: nowrap;
}

.btn-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 54, 255, 0.35);
}

.btn-dismiss {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.btn-dismiss:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* PWA Manual Instructions Modal */
.pwa-instructions {
    padding: 1rem 0;
}

.pwa-instructions h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pwa-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.pwa-instructions li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.pwa-instructions p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive adjustments for PWA banner */
@media (max-width: 480px) {
    .pwa-install-content {
        padding: 1rem;
    }
    
    .pwa-install-icon {
        width: 48px;
        height: 48px;
    }
    
    .pwa-install-text h3 {
        font-size: 0.9375rem;
    }
    
    .pwa-install-text p {
        font-size: 0.8125rem;
    }
    
    .btn-install {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ========================================
   FORM COMPONENTS - Additional
   
   INSTRUKCJA: Skopiuj całą zawartość poniżej
   i wklej na KONIEC pliku assets/css/style.css
======================================== */

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.radio-label:hover {
    opacity: 0.8;
}

/* Checkbox Label */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

/* Location Info Display */
.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.location-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--success);
}

.location-info strong {
    font-weight: 500;
}

/* Icon Inline */
.icon-inline {
    vertical-align: middle;
    margin-right: 0.25rem;
    width: 16px;
    height: 16px;
}

/* Card Modifiers */
.card--top-spacing {
    margin-top: 4rem;
}

/* Page Container Modifiers */
.page-container--bottom-padding {
    padding-bottom: 100px;
}

/* Button Modifiers */
.btn--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Link Variants */
.link-organizer {
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
    transition: opacity 0.2s;
}

.link-organizer:hover {
    opacity: 0.8;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 0.5rem;
}

/* Debug Text */
.debug-text {
    position: absolute;
    bottom: 5px;
    font-size: 10px;
    color: #999;
}
