:root {
            --primary: #6750A4;
            --primary-light: #F5F0FF;
            --primary-dark: #52378F;
            --surface: #FAFAFA;
            --on-surface: #1F1F1F;
            --on-surface-medium: #4A4A4A;
            --on-surface-light: #6D6D6D;
            --success: #10B981;
            --shadow: rgba(0, 0, 0, 0.05);
            --spacing-xs: 8px;
            --spacing-sm: 16px;
            --spacing-md: 24px;
            --spacing-lg: 32px;
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 24px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto', sans-serif;
        }

        body {
            background-color: var(--surface);
            color: var(--on-surface);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .app-bar {
            position: sticky;
            top: 0;
            background-color: var(--surface);
            padding: var(--spacing-sm) var(--spacing-md);
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 1px 3px var(--shadow);
            z-index: 10;
        }

        .back-button {
            background: none;
            border: none;
            color: var(--on-surface-medium);
            cursor: pointer;
            padding: var(--spacing-xs);
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .back-button:hover, .back-button:active {
            background-color: rgba(103, 80, 164, 0.08);
            color: var(--primary);
        }

        .app-bar-title {
            font-size: 18px;
            font-weight: 500;
            color: var(--on-surface);
        }

        .placeholder {
            width: 40px;
        }

        .hero-section {
            background: linear-gradient(to bottom, #F5F0FF, #E9DFFF);
            padding: var(--spacing-md) var(--spacing-md);
            text-align: center;
            position: relative;
            overflow: hidden;
            min-height: 15vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(103, 80, 164, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(103, 80, 164, 0.12) 0%, transparent 50%);
            pointer-events: none;
        }

        .hero-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: var(--spacing-xs);
            position: relative;
        }

        .hero-subtitle {
            font-size: 14px;
            color: var(--on-surface-light);
            position: relative;
        }

        .card {
            background-color: white;
            border-radius: var(--radius-md);
            box-shadow: 0 4px 6px var(--shadow);
            margin: var(--spacing-md) auto;
            padding: var(--spacing-md);
            width: 88%;
            max-width: 400px;
        }

        .qr-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-bottom: var(--spacing-md);
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        }

        .qr-code {
            width: 150px;
            height: 150px;
            background-color: white;
            padding: var(--spacing-sm);
            border-radius: var(--radius-sm);
            box-shadow: 0 2px 4px var(--shadow);
            background-position: 0% 0%;
            background-size: 100% 100%;
            background-repeat: no-repeat;
        }

        .qr-hint {
            font-size: 12px;
            color: var(--on-surface-light);
            margin-top: var(--spacing-xs);
        }

        .invite-code-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: var(--spacing-md);
        }

        .invite-code-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--on-surface-medium);
        }

        .invite-code-display {
            display: flex;
            align-items: center;
            gap: var(--spacing-xs);
        }

        .code-value {
            font-size: 16px;
            font-weight: 700;
            color: var(--primary);
            background-color: var(--primary-light);
            padding: 6px 12px;
            border-radius: var(--radius-sm);
        }

        .copy-button {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            transition: all 0.2s ease;
        }

        .copy-button:hover {
            background-color: rgba(103, 80, 164, 0.08);
        }

        .copy-button.copied {
            color: var(--success);
        }

        .invite-stats {
            background-color: var(--surface);
            padding: 12px var(--spacing-md);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-xs);
            margin: 0 auto var(--spacing-lg);
            width: 88%;
            max-width: 400px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .invite-stats:hover {
            background-color: rgba(0, 0, 0, 0.04);
        }

        .invite-stats:active {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .stats-text {
            font-size: 14px;
            color: var(--on-surface-medium);
        }

        .stats-icon {
            color: var(--primary);
        }

        .action-bar {
            display: flex;
            gap: var(--spacing-sm);
            padding: 0 var(--spacing-md) var(--spacing-lg);
            width: 88%;
            max-width: 400px;
            margin: 0 auto;
        }

        .action-button {
            flex: 1;
            padding: 12px var(--spacing-md);
            border-radius: var(--radius-lg);
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-xs);
        }

        .primary-button {
            background-color: var(--primary);
            color: white;
        }

        .primary-button:hover {
            background-color: var(--primary-dark);
            box-shadow: 0 4px 8px rgba(103, 80, 164, 0.3);
        }

        .secondary-button {
            background-color: var(--primary-light);
            color: var(--primary);
        }

        .secondary-button:hover {
            background-color: rgba(103, 80, 164, 0.12);
            box-shadow: 0 4px 8px rgba(103, 80, 164, 0.2);
        }

        .snackbar {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background-color: #323232;
            color: white;
            padding: 14px var(--spacing-md);
            border-radius: var(--radius-sm);
            font-size: 14px;
            box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 100;
        }

        .snackbar.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

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

        @media (max-width: 480px) {
            .action-bar {
                flex-direction: column;
            }
            
            .hero-section {
                min-height: 15vh;
            }
        }