/* MainCreateModal */
.modal-overlay {
    display: flex;
    position: absolute;
    inset: 0px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 700;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 20px;
    padding: 28px;
    box-shadow: rgba(0, 0, 0, 0.8) 0px 24px 64px;
}

.step0-container {
    width: 340px;
}

.step1-container,
.step3-container {
    width: 360px;
}

.step2-container {
    width: 380px;
    overflow: hidden;
    padding: 0;
}

.modal-title {
    font-family: var(--fd), sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--t2);
    margin-bottom: 20px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: 0.15s;
}

.option-card:hover {
    background: var(--bg4);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-server {
    background: rgba(61, 139, 255, .12);
    border: 1px solid rgba(61, 139, 255, .25);
}

.icon-room {
    background: rgba(0, 229, 160, .1);
    border: 1px solid rgba(0, 229, 160, .25);
}

.icon-friend {
    background: rgba(255, 165, 2, .1);
    border: 1px solid rgba(255, 165, 2, .25);
}

.option-content {
    flex: 1;
}

.option-title {
    font-family: var(--fd), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 2px;
}

.option-description {
    font-size: 13px;
    color: var(--t2);
}

.option-arrow {
    margin-left: auto;
    flex-shrink: 0;
}

.cancel-button {
    width: 100%;
    padding: 11px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 10px;
    color: var(--t2);
    font-family: var(--fm), monospace;
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s;
}

.cancel-button:hover {
    background: var(--bg4);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.back-button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    color: var(--t2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.15s;
}

.back-button:hover {
    background: var(--bg4);
}

.step-title {
    font-family: var(--fd), sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
}

.server-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.server-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), #6b47ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    position: relative;
    border: 3px solid var(--bg3);
}

.edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg3);
    border: 2px solid var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-field {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.field-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 8px;
    color: var(--t1);
    font-family: var(--fm), monospace;
    font-size: 14px;
    transition: 0.15s;
}

.field-input:focus {
    outline: none;
    border-color: var(--acc);
}

.outgoing-call-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    box-shadow: rgba(0, 0, 0, 0.5) 0 10px 30px;
    padding: 12px;
}

.outgoing-call-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--acc), #6b47ff);
}

.outgoing-call-content {
    flex: 1;
    min-width: 0;
}

.outgoing-call-title {
    font-family: var(--fd), sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--t1);
}

.outgoing-call-subtitle {
    font-size: 12px;
    color: var(--t2);
}

.outgoing-call-cancel {
    border: 1px solid var(--brd);
    background: var(--bg3);
    color: var(--t1);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.outgoing-call-cancel:hover {
    background: var(--bg4);
}

.categories-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-item {
    padding: 7px 14px;
    border-radius: 8px;
    font-family: var(--fm), monospace;
    font-size: 12px;
    cursor: pointer;
    background: var(--bg3);
    border: 1px solid var(--brd);
    color: var(--t2);
    transition: 0.15s;
}

.category-active {
    background: rgba(61, 139, 255, 0.15);
    border: 1px solid rgba(61, 139, 255, 0.4);
    color: var(--acc);
}

.create-button {
    width: 100%;
    padding: 11px;
    background: var(--acc);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: var(--fm), monospace;
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s;
    justify-content: center;
}

.create-button:hover {
    opacity: 0.9;
}

.step2-header {
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, rgba(0, 229, 160, .08), rgba(61, 139, 255, .06));
    border-bottom: 1px solid var(--brd);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step2-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fd), sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.step2-subtitle {
    font-size: 13px;
    color: var(--t2);
    margin-top: 2px;
}

.step2-content {
    padding: 20px 24px 24px;
}

.create-room-button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #00e5a0, #00b37a);
    border: none;
    border-radius: 10px;
    color: #0a0b0f;
    font-family: var(--fm), monospace;
    font-size: 17px;
    cursor: pointer;
    transition: 0.15s;
    justify-content: center;
}

.create-room-button:hover {
    opacity: 0.9;
}

.invite-link {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--t3);
}

.link-text {
    color: var(--acc);
    cursor: pointer;
}

.link-text:hover {
    text-decoration: underline;
}

.search-hint {
    font-size: 14px;
    color: var(--t2);
    margin-bottom: 16px;
}

.hint-example {
    color: var(--acc);
    font-family: var(--fm), monospace;
}

.search-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-button {
    padding: 11px 16px;
    background: var(--acc);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.15s;
}

.search-button:hover {
    opacity: 0.9;
}

.friend-result {
    padding: 14px;
    background: var(--bg3);
    border: 1px solid rgba(0, 229, 160, .25);
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5a0, #00b37a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #0a0b0f;
    position: relative;
    flex-shrink: 0;
}

.online-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--online);
    border: 2px solid var(--bg3);
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-family: var(--fd), sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.friend-tag {
    font-family: var(--fm), monospace;
    font-size: 12px;
    color: var(--t3);
}

.add-friend-button {
    padding: 8px 14px;
    background: var(--acc);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.15s;
}

.add-friend-button:hover {
    opacity: 0.9;
}

.friend-not-found {
    padding: 14px;
    background: rgba(255, 71, 87, 0.06);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--red);
    text-align: center;
}

.quick-room-card h2 {
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--t1);
    margin: 0 0 16px;
}

.quick-room-input-group {
    display: flex;
    margin-bottom: 16px;
}

.quick-room-input-group input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 10px 0 0 10px;
    color: var(--t1);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.quick-room-input-group input::placeholder {
    color: var(--t3);
}

.quick-room-input-group input:focus {
    border-color: rgba(61, 139, 255, 0.35);
}

.quick-room-input-group button {
    padding: 10px 16px;
    background: var(--acc);
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.quick-room-input-group button:hover {
    background: #5a9fff;
}

.quick-room-divider {
    text-align: center;
    color: var(--t3);
    font-size: 12px;
    margin: 16px 0;
    position: relative;
}


.quick-room-create {
    width: 100%;
    padding: 12px;
    background: var(--acc);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.15s;
}

.quick-room-create:hover {
    background: #5a9fff;
    transform: translateY(-1px);
}

.quick-room-features {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-room-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--t2);
}

.quick-room-feature .bi {
    color: var(--a2);
    font-size: 14px;
}


.btn-quick-room {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--acc);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
}

.btn-quick-room:hover {
    background: rgba(61, 139, 255, 0.08);
    text-decoration: none;
}

.top-nav .btn-logout,
.btn-logout {
    padding: 8px 16px;
    cursor: pointer;
    background: var(--bg3);
    color: var(--t2);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.btn-logout:hover {
    background: var(--bg4);
    color: var(--t1);
}

.btn-mobile-menu {
    display: none;
}

.mobile-nav-backdrop {
    display: none;
}

.sidebars-wrapper {
    display: flex;
    flex: 0 0 auto;
    height: 100%;
}