/* ============================================
   无畏契约组队大厅 - 主样式表
   VALORANT Themed Dark UI
   ============================================ */

/* ==================== CSS 变量 ==================== */
:root {
    --bg-primary: #0F1923;
    --bg-secondary: #1A242E;
    --bg-tertiary: #232E38;
    --bg-card: #1A242E;
    --bg-hover: #232E38;
    --accent-red: #FF4655;
    --accent-red-hover: #E03E4D;
    --accent-teal: #00E0C4;
    --accent-teal-dim: #00B89F;
    --text-primary: #ECE8E1;
    --text-secondary: #BDB9B0;
    --text-muted: #768079;
    --text-dim: #5F6568;
    --border-color: #2A343E;
    --border-hover: #3A444E;
    --status-waiting: #00E0C4;
    --status-full: #FF8C42;
    --status-playing: #FF4655;
    --status-closed: #5F6568;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
    --transition: all 0.2s ease;
    --max-width: 1200px;
}

/* ==================== Reset ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--accent-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.hidden { display: none !important; }

/* ==================== 顶部导航 ==================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left { flex-shrink: 0; }

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
}

.logo-icon {
    color: var(--accent-red);
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-size: 18px;
    letter-spacing: 1px;
}

.logo-sub {
    color: var(--accent-teal);
    font-size: 12px;
    margin-left: 4px;
}

.topbar-nav {
    display: flex;
    gap: 4px;
    margin-left: 20px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-link.active {
    color: var(--accent-red);
    background: rgba(255, 70, 85, 0.1);
}

.topbar-right { flex-shrink: 0; }

.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.user-name-sm {
    color: var(--text-primary);
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-red-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-teal {
    background: var(--accent-teal);
    color: #0F1923;
}
.btn-teal:hover { background: var(--accent-teal-dim); }

.btn-danger {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}
.btn-danger:hover { background: rgba(255,70,85,0.1); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== 主内容区 ==================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 60px - 80px);
}

.view { animation: fadeIn 0.3s ease; }

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

/* ==================== 统计栏 ==================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.stat-icon { font-size: 28px; }

.stat-info { display: flex; flex-direction: column; }

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 公告 ==================== */
.announcement {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(255,70,85,0.08), transparent);
    border-left: 3px solid var(--accent-red);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.announcement-icon { font-size: 16px; }

/* ==================== 筛选栏 ==================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group select,
.filter-group input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 14px;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--accent-red);
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group input {
    width: 100%;
}

/* ==================== 房间卡片 ==================== */
.room-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.room-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.room-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.room-card:hover::before { transform: scaleY(1); transform-origin: top; }

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.room-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.room-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.room-status.waiting { background: rgba(0,224,196,0.15); color: var(--status-waiting); }
.room-status.full { background: rgba(255,140,66,0.15); color: var(--status-full); }
.room-status.playing { background: rgba(255,70,85,0.15); color: var(--status-playing); }
.room-status.closed { background: rgba(95,101,104,0.15); color: var(--status-closed); }

.room-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.room-info-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.room-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.room-info-label { color: var(--text-muted); }
.room-info-value { color: var(--text-primary); font-weight: 500; }

.room-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.room-tag {
    padding: 2px 8px;
    background: rgba(0,224,196,0.1);
    color: var(--accent-teal);
    border-radius: 10px;
    font-size: 11px;
}

.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.room-creator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-creator-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #0F1923;
    font-weight: bold;
}

.room-player-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
    color: var(--accent-teal);
}

.room-player-count.full { color: var(--status-full); }

/* ==================== 空状态 ==================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p { margin-bottom: 16px; }

/* ==================== 加载动画 ==================== */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

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

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}

.page-btn:hover { border-color: var(--accent-red); color: var(--text-primary); }
.page-btn.active { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ==================== 房间详情 ==================== */
.detail-header {
    margin-bottom: 20px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.detail-back:hover { color: var(--accent-red); }

.detail-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.detail-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.detail-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child { margin-bottom: 0; }

.detail-section-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-teal);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-description {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 房间码区域 */
.room-code-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.room-code-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.room-code-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-teal);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin-bottom: 12px;
    word-break: break-all;
}

.room-code-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 成员列表 */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.member-avatar.leader { background: var(--accent-red); color: #fff; }
.member-avatar.member { background: var(--accent-teal); color: #0F1923; }

.member-info { flex: 1; min-width: 0; }

.member-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-role-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(255,70,85,0.15);
    color: var(--accent-red);
}

.member-detail {
    font-size: 12px;
    color: var(--text-muted);
}

.member-actions {
    flex-shrink: 0;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group .required { color: var(--accent-red); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(255,70,85,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23BDB9B0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group.half { flex: 1; }

.form-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
}

/* ==================== 标签选择器 ==================== */
.tag-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-option {
    padding: 4px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.tag-option:hover { border-color: var(--accent-teal); color: var(--accent-teal); }
.tag-option.selected {
    background: rgba(0,224,196,0.15);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* ==================== 弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}

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

.modal-lg { max-width: 560px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover { color: var(--accent-red); }

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-footer-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.modal-footer-link a {
    color: var(--accent-teal);
    cursor: pointer;
}

/* ==================== Toast 通知 ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-teal);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    max-width: 320px;
}

.toast.success { border-left-color: var(--status-waiting); }
.toast.error { border-left-color: var(--accent-red); }
.toast.warning { border-left-color: var(--status-full); }

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

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* ==================== 浮动按钮 ==================== */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(255,70,85,0.4);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.fab:hover {
    background: var(--accent-red-hover);
    transform: scale(1.1);
}

/* ==================== 个人中心 ==================== */
.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.profile-info { flex: 1; }

.profile-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.profile-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-teal);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

/* ==================== 我的房间 ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 20px;
    color: var(--text-primary);
}

.my-rooms-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 16px;
    color: var(--accent-teal);
    margin-bottom: 12px;
}

/* ==================== 底部 ==================== */
.footer {
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}

.footer-hint { opacity: 0.7; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .topbar-inner {
        padding: 0 12px;
        height: 52px;
    }

    .logo-text { font-size: 15px; }
    .logo-sub { display: none; }

    .topbar-nav { margin-left: 8px; gap: 2px; }
    .nav-link { padding: 6px 10px; font-size: 13px; }

    .auth-buttons .btn { padding: 5px 12px; font-size: 12px; }
    .user-name-sm { display: none; }

    .main-content { padding: 12px; }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-item { padding: 12px; }
    .stat-icon { font-size: 22px; }
    .stat-value { font-size: 18px; }

    .filter-bar {
        gap: 8px;
    }

    .filter-group {
        flex: 1;
        min-width: 0;
    }

    .filter-group select,
    .filter-group input {
        font-size: 13px;
        padding: 6px 10px;
    }

    .search-group { flex-basis: 100%; }

    .room-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .room-card { padding: 14px; }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .form-row { flex-direction: column; gap: 0; }

    .fab { display: flex; }

    .modal { max-width: 100%; }

    .modal-body { padding: 16px; }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .profile-stats { justify-content: center; }

    .page-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .detail-info-grid { grid-template-columns: 1fr; }

    .room-code-value { font-size: 22px; }

    .toast-container {
        top: 60px;
        right: 12px;
        left: 12px;
    }

    .toast { max-width: 100%; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .topbar-nav { gap: 0; }
    .nav-link { padding: 4px 8px; font-size: 12px; }
}
