* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 40px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.logo svg {
    color: #667eea;
    flex-shrink: 0;
}

.header-settings {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.settings-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background: rgba(30, 30, 60, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.settings-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.1);
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.menu-item-danger {
    color: #f87171;
}

.menu-item-danger:hover {
    background: rgba(248, 113, 113, 0.15);
}

.subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.main-content {
    width: 100%;
    max-width: 420px;
   
    
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer .btn {
    flex: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.footer {
    margin-top: 40px;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.meeting-page {
    height: 100%;
    overflow: hidden;
}

.meeting-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #1a202c;
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: none !important;
    border-bottom: none !important;
    outline: none !important;
    -webkit-box-shadow: none !important;
}

.meeting-header * {
    box-shadow: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.room-name {
    font-size: 1rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #48bb78;
}

.status-dot.offline {
    background: #fc8181;
}

.status-dot.connecting {
    background: #ecc94b;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.participant-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.header-console-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-console-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.header-console-btn.active {
    background: #667eea;
    color: white;
}

.video-container {
    flex: 1;
    position: relative;
    background: #000;
    padding-top: 55px;
}

.video-container iframe {
    width: 100%;
    height: calc(100% - 55px);
    border: none;
}

.participants-panel {
    position: absolute;
    top: 100px;
    right: 16px;
    width: 240px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    z-index: 50;
}

.participants-panel h3 {
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.panel-close-btn:hover {
    opacity: 1;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.participant-name {
    font-size: 0.8rem;
}

.role-badge {
    font-size: 0.6rem;
    padding: 1px 6px;
    background: #667eea;
    border-radius: 8px;
}

.role-badge.me {
    background: rgba(255, 255, 255, 0.2);
}

.empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.control-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    overflow: hidden;
}

.scroll-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    z-index: 101;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scroll-hint-left {
    left: -5px;
    background: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 50%);
}

.scroll-hint-right {
    right: -5px;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 50%);
}

.control-panel-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    max-width: calc(60px * 5 + 16px * 4);
    padding: 0 32px;
    -webkit-overflow-scrolling: touch;
}

.control-panel-scroll::-webkit-scrollbar {
    display: none;
}

.control-panel-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.control-btn.active {
    background: #fc8181;
}

.control-btn.active svg {
    text-decoration: line-through;
}

.control-btn.btn-danger {
    background: #e53e3e;
}

.control-btn.btn-danger:hover {
    background: #c53030;
}

.control-label {
    font-size: 0.65rem;
    margin-top: 4px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#endedModal {
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
}

.modal-content {
    background: #2d3748;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    color: white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

.invite-link {
    margin-bottom: 20px;
}

.invite-link label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.invite-link input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.copy-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.invite-actions {
    display: flex;
    gap: 12px;
}

.invite-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.invite-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    z-index: 9999;
    cursor: pointer;
}

.share-arrow-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
}

.share-arrow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-guide-text {
    text-align: center;
    margin-top: 200px;
}

.share-guide-text p {
    font-size: 1.2rem;
    color: white;
    line-height: 1.8;
    margin: 0;
}

#confirmMessage {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.ended-modal {
    text-align: center;
    padding: 40px 32px;
    max-width: 360px;
}

.ended-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.ended-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.ended-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.ended-countdown {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.ended-countdown span {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2rem;
}

.ended-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ended-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.confirm-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.confirm-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.confirm-btn.danger {
    background: #e53e3e;
    color: white;
}

.confirm-btn.danger:hover {
    background: #c53030;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-wrapper {
    margin-bottom: 16px;
}

.logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.auth-header .subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.label-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.required {
    color: #fc8181;
    font-weight: 600;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.input-field:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.input-field:focus-within .input-icon {
    color: #667eea;
}

.input-field input {
    width: 100%;
    padding: 15px 16px 15px 48px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

.input-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    padding-left: 2px;
}

.code-field input {
    padding-right: 140px;
}

.send-code-btn {
    position: absolute;
    right: 8px;
    padding: 10px 20px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(102, 126, 234, 0.5);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.checkbox-group .link {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group .link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-link {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #764ba2;
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.back-home a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.message-modal {
    text-align: center;
    padding: 40px 32px;
    max-width: 340px;
    background: rgba(45, 55, 72, 0.98);
}

.message-icon {
    margin-bottom: 20px;
}

.message-text {
    font-size: 1rem;
    color: white;
    margin-bottom: 28px;
    line-height: 1.6;
}

.message-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.message-btn.hide {
    display: none !important;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .input-field input {
        padding: 13px 14px 13px 44px;
    }

    .code-field input {
        padding-right: 110px;
    }

    .send-code-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 24px;
    }
    
    .meeting-header {
        padding: 10px 12px;
    }
    
    .room-name {
        font-size: 0.9rem;
    }
    
    .control-panel {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .control-btn {
        width: 52px;
        height: 52px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .control-label {
        font-size: 0.6rem;
    }
    
    .participants-panel {
        width: calc(100% - 32px);
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .invite-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        max-width: 340px;
    }
    
    .ended-modal {
        padding: 32px 24px;
    }
}

.index-page .container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.index-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 0;
}

.index-page .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.index-page .logo svg {
    color: #667eea;
}

.index-page .user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 24px;
    color: white;
}

.index-page .user-info .separator {
    color: rgba(255, 255, 255, 0.4);
}

.index-page .company-name {
    font-weight: 600;
    color: white;
}

.index-page .nickname {
    color: rgba(255, 255, 255, 0.7);
}

.index-page .main-content {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.index-page .stats-cards {
    display: flex;
    gap: 16px;
}

.index-page .stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.index-page .stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.purchase-link {
    margin-left: auto;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f97316;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.1);
}

.purchase-link:hover {
    color: #fb923c;
    background: rgba(249, 115, 22, 0.15);
}

/* 购买页面样式 */
.pricing-page {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: white;
}

.pricing-page .back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.pricing-page .back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pricing-page .meeting-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.pricing-page .meeting-header * {
    box-shadow: none !important;
}

/* 套餐卡片布局 */
.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pricing-card-item {
    background: transparent;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.pricing-card-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card-item.highlighted {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pricing-row + .pricing-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-value {
    color: white;
    font-size: 0.95rem;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-value strong {
    font-weight: 600;
}

.price-highlight {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 700;
}

.pricing-card-item.highlighted .price-highlight {
    color: #f093fb;
}

.page-title {
    text-align: center;
    margin-bottom: 24px;
}

.page-title p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.pricing-content {
    padding: 70px 0 30px 0;
}

/* 套餐表格 */
.pricing-table-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: rgba(102, 126, 234, 0.2);
}

.pricing-table th {
    padding: 18px 16px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-table tbody tr {
    transition: background 0.2s ease;
}

.pricing-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pricing-table tbody tr.highlight-row {
    background: rgba(102, 126, 234, 0.1);
}

.pricing-table tbody tr.highlight-row:hover {
    background: rgba(102, 126, 234, 0.15);
}

.pricing-table td {
    padding: 18px 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table td strong {
    color: white;
    font-weight: 600;
}

.pricing-table .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.pricing-table tr.highlight-row .price {
    color: #f093fb;
}

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    vertical-align: middle;
}

.badge.best {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* 响应式表格 */
@media (max-width: 768px) {
    .pricing-page .meeting-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px 16px;
        margin: 0;
        z-index: 1000;
    }

    .pricing-page .back-btn {
        font-size: 0.95rem;
    }

    .page-title p {
        font-size: 0.85rem;
    }

    .pricing-card-item {
        padding: 12px 16px;
    }

    .pricing-label {
        font-size: 0.85rem;
    }

    .pricing-value {
        font-size: 0.9rem;
    }

    .price-highlight {
        font-size: 1rem;
    }

    .pricing-content {
        padding: 60px 0 30px 0;
    }
}

.pricing-card.featured .pricing-icon {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.3) 0%, rgba(245, 87, 108, 0.3) 100%);
    color: #f5576c;
}

.pricing-card:nth-child(3) .pricing-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.3) 100%);
    color: #fbbf24;
}

.pricing-card:nth-child(4) .pricing-icon {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.3) 0%, rgba(234, 88, 12, 0.3) 100%);
    color: #fb923c;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.pricing-card-body {
    padding: 24px 20px;
    text-align: center;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.pricing-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.pricing-count {
    font-size: 1.05rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-card.featured .pricing-count {
    color: #f5576c;
}

.pricing-per {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.purchase-instructions {
    background: transparent;
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-instructions h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.purchase-instructions h2 svg {
    color: #667eea;
}

.instruction-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.instruction-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    align-items: flex-start;
}

.instruction-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.instruction-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.instruction-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* gap: 24px; */
    /* padding-top: 24px; */
    /* border-top: 1px solid rgba(255, 255, 255, 0.08); */
}

.qr-code-area,
.contact-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.qr-code-area h3,
.contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.qr-code-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.qr-code-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
    color: white;
    border-radius: 8px;
}

.qr-placeholder svg {
    opacity: 0.5;
}

.qr-placeholder span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.qr-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.contact-item svg {
    color: #667eea;
    flex-shrink: 0;
}

.contact-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.back-section {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-page .btn-secondary {
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pricing-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pricing-header {
        padding: 32px 16px;
    }

    .pricing-header h1 {
        font-size: 1.5rem;
    }

    .instruction-list {
        grid-template-columns: 1fr;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .qr-code-container {
        width: 180px;
        height: 180px;
    }
}

.index-page .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-page .stat-icon.initiations {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    color: #667eea;
}

.index-page .stat-icon.remaining {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.3) 0%, rgba(66, 153, 225, 0.3) 100%);
    color: #48bb78;
}

.index-page .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.index-page .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.index-page .action-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.index-page .section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.index-page .section-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.index-page .room-info {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.index-page .room-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.index-page .room-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    font-family: 'Monaco', 'Menlo', monospace;
}

.index-page .btn-interview {
    width: 100%;
    max-width: 300px;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.index-page .btn-interview:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.index-page .btn-interview:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.index-page .guest-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.index-page .guest-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.index-page .guest-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.index-page .guest-input-group input {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 0.95rem;
}

.index-page .guest-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.index-page .guest-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.index-page .btn-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.index-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.index-page .footer {
    margin-top: 32px;
    text-align: center;
}

.index-page .footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
    .index-page .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .index-page .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .index-page .stats-cards {
        flex-direction: column;
    }

    .index-page .guest-input-group {
        flex-direction: column;
    }

    .index-page .guest-input-group input {
        min-width: 100%;
    }

    .index-page .btn-secondary {
        width: 100%;
    }
}

.page-transition {
    animation: pageFadeIn 0.4s ease-out forwards;
    opacity: 0;
}

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

.card-transition {
    animation: cardSlideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.card-transition.delay-1 {
    animation-delay: 0.1s;
}

.card-transition.delay-2 {
    animation-delay: 0.2s;
}

.card-transition.delay-3 {
    animation-delay: 0.3s;
}

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

.btn-transition {
    animation: btnPopIn 0.4s ease-out forwards;
    opacity: 0;
    transform: scale(0.95);
}

.btn-transition.delay-1 {
    animation-delay: 0.2s;
}

@keyframes btnPopIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.input-focus-ring {
    transition: all 0.3s ease;
}

.input-focus-ring:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinnerRotate 0.8s linear infinite;
}

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

.link-hover {
    transition: all 0.3s ease;
    position: relative;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.link-hover:hover::after {
    width: 100%;
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

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

.spinner-rotate {
    animation: spinnerRotate 1s linear infinite;
}

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

.control-btn .btn-spinner {
    display: none;
    align-items: center;
    justify-content: center;
}

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

.camera-switch-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.camera-switch-loading .loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 48px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.loading-spinner-lg {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spinnerRotate 0.8s linear infinite;
}

.loading-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.debug-panel {
    position: fixed;
    bottom: 100px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.5);
    z-index: 9999;
    font-family: 'Courier New', monospace;
    max-height: 40vh;
    overflow: hidden;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.2);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.debug-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
}

.debug-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
}

.debug-close:hover {
    color: #ff6b6b;
}

.debug-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.debug-copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.debug-copy-btn:hover {
    color: #48bb78;
    transform: scale(1.1);
}

.debug-copy-btn svg {
    width: 14px;
    height: 14px;
}

.debug-content {
    padding: 10px 15px;
    overflow-y: auto;
    max-height: 35vh;
}

.debug-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    word-break: break-all;
    line-height: 1.4;
}

.debug-time {
    color: #48bb78;
    margin-right: 8px;
}

.debug-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transition: all 0.3s;
    animation: debugPulse 2s ease-in-out infinite;
}

@keyframes debugPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(102, 126, 234, 0.4);
    }
}

.debug-toggle:hover {
    transform: scale(1.1);
    background: rgba(102, 126, 234, 1);
    animation: none;
}

.debug-toggle.active {
    background: #48bb78;
    animation: none;
}

.console-panel {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    z-index: 9998;
    font-family: 'Courier New', monospace;
    max-height: 50vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.3);
    border-bottom: 1px solid rgba(102, 126, 234, 0.5);
}

.console-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

.console-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s;
}

.console-close-btn:hover {
    color: #ff6b6b;
}

.console-content {
    padding: 12px 16px;
    overflow-y: auto;
    max-height: 30vh;
    background: rgba(0, 0, 0, 0.3);
}

.console-log-item {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    word-break: break-all;
    line-height: 1.5;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.console-log-item.error {
    background: rgba(252, 129, 129, 0.2);
    color: #fc8181;
    border-left: 3px solid #fc8181;
}

.console-log-item.warn {
    background: rgba(236, 201, 75, 0.2);
    color: #ecc94b;
    border-left: 3px solid #ecc94b;
}

.console-log-item.info {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-left: 3px solid #667eea;
}

.console-log-item.success {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border-left: 3px solid #48bb78;
}

.console-time {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
    font-size: 0.75rem;
}

.console-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(102, 126, 234, 0.3);
}

.console-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.console-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.console-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.console-send-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.console-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.console-actions {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.1);
}

.console-clear-btn,
.console-copy-btn {
    flex: 1;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.console-clear-btn:hover,
.console-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .console-panel {
        width: 95%;
        max-width: none;
        bottom: 70px;
        max-height: 60vh;
    }
    
    .console-content {
        max-height: 35vh;
    }
    
    .console-input-area {
        flex-direction: column;
    }
    
    .console-send-btn {
        width: 100%;
    }
    
    .console-actions {
        flex-direction: column;
    }
    
    .console-clear-btn,
    .console-copy-btn {
        width: 100%;
    }
}