:root {
    --bg: #f6f8fc;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #e5e9f2;
    --blue: #2563eb;
    --purple: #7c3aed;
    --soft-blue: #eef4ff;
    --shadow: 0 14px 34px rgba(30, 41, 59, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: "Noto Sans Bengali", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
}

.mobile-header,
.mobile-bottom-nav,
.sidebar-close,
.sidebar-overlay {
    display: none;
}

.sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 248px;
    height: 100vh;
    padding: 20px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-right: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 0 4px;
    font-weight: 400;
    font-size: 20px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    font-size: 15px;
}

.user-avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.avatar-xs {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.user-name-inline,
.sidebar-profile-main,
.user-card-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-name-inline > :not(.user-avatar),
.sidebar-profile-main strong,
.user-card-name strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu {
    display: grid;
    gap: 6px;
}

.menu-title {
    margin: 0 10px 6px;
    color: #98a2b3;
    font-size: 11px;
    text-transform: uppercase;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--muted);
    font-weight: 400;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.menu a:hover,
.menu a.active {
    color: var(--blue);
    border-color: #dbe7ff;
    background: linear-gradient(135deg, #eef4ff, #f6f2ff);
    transform: translateX(2px);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: inherit;
    background: #f8fafc;
}

.menu a.active .nav-icon,
.menu a:hover .nav-icon {
    background: #ffffff;
}

.nav-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-user {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(30, 41, 59, 0.06);
}

.sidebar-profile > span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.sidebar-user strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile {
    display: block;
    padding: 0;
    color: inherit;
}

.sidebar-profile.active strong,
.sidebar-profile:hover strong {
    color: var(--blue);
}

.sidebar-user .logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--blue);
    background: #fff;
    font-weight: 400;
}

.notification-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 10px;
    line-height: 1;
}

.notification-badge.bottom {
    top: 5px;
    right: 18px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
}

.main {
    width: auto;
    max-width: none;
    margin-right: 0;
    margin-left: 248px;
    padding: 34px;
}

.main > .toolbar,
.main > .loading-state,
.main > .empty-state,
.main > .idea-grid {
    width: min(100%, 1280px);
    margin-right: auto;
    margin-left: auto;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.05;
}

.primary-action,
.toolbar button,
.empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
    font-weight: 400;
    cursor: pointer;
}

.toolbar,
.idea-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    font: inherit;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    resize: vertical;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.idea-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 12px 18px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(30, 41, 59, 0.13);
}

.card-topline,
.card-footer,
.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.category,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
}

.category {
    color: var(--blue);
    background: var(--soft-blue);
}

.status {
    color: var(--purple);
    background: #f4efff;
}

.idea-card h2 {
    margin: 8px 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.idea-card h2:first-child {
    margin-top: 0;
}

.idea-details {
    display: -webkit-box;
    flex: 1;
    margin-bottom: 18px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.meta {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.card-footer {
    margin-top: 14px;
}

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

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-weight: 400;
    cursor: pointer;
}

.reaction-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.star-button span {
    color: #c0c6d2;
    font-size: 17px;
}

.small-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    cursor: pointer;
}

.small-action.danger {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.star-button.active {
    color: #8a4b00;
    border-color: #fde68a;
    background: #fffbeb;
}

.star-button.active span {
    color: #f59e0b;
}

.like-button.active {
    color: var(--blue);
    border-color: #bfdbfe;
    background: var(--soft-blue);
}

.reaction-tooltip-wrap {
    position: relative;
    display: inline-flex;
}

.reaction-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    z-index: 12;
    width: max-content;
    max-width: min(240px, 70vw);
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #fff;
    background: #172033;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.tooltip-user {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tooltip-user + .tooltip-user {
    margin-top: 6px;
}

.reaction-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-top-color: #172033;
    transform: translateX(-50%);
}

.reaction-tooltip-wrap:hover .reaction-tooltip,
.reaction-tooltip-wrap:focus-within .reaction-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.comments {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.detail-comment-count {
    margin-left: auto;
    white-space: nowrap;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--blue);
}

.detail-panel,
.comment-box-panel,
.comments-panel {
    max-width: 900px;
    margin-bottom: 5px;
    padding: 16px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.detail-panel h1 {
    margin: 18px 0 12px;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--muted);
}

.detail-text {
    color: #344054;
    font-size: 17px;
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.comment-form {
    display: grid;
    gap: 14px;
}

.comment-form textarea {
    min-height: 74px;
}

.comment-list {
    display: grid;
}

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.comment-item:first-child {
    padding-top: 0;
}

.comment-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.comment-item strong {
    color: var(--text);
    font-weight: 600;
}

.comment-item p,
.comment-empty {
    margin: 0;
    color: #344054;
    line-height: 1.6;
}

.comment-like-form {
    margin-top: 10px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.comment-actions .card-menu {
    margin-left: auto;
}

.comment-actions .comment-like-form {
    margin-top: 0;
}

.comment-menu-button {
    width: 32px;
    height: 32px;
}

.comment-menu-popover {
    min-width: 112px;
}

.card-menu-popover .neutral-menu-action {
    color: var(--text);
}

.comment-edit-form {
    display: none;
    gap: 10px;
    margin-top: 10px;
}

.comment-edit-form textarea {
    min-height: 84px;
}

.comment-edit-actions {
    display: flex;
    gap: 8px;
}

.comment-item.is-editing > p {
    display: none;
}

.comment-item.is-editing .comment-edit-form {
    display: grid;
}

.comment-like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    cursor: pointer;
}

.comment-like-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comment-like-button.active {
    color: var(--blue);
    border-color: #bfdbfe;
    background: var(--soft-blue);
}

.notification-list {
    display: grid;
    gap: 10px;
    max-width: 900px;
}

.section-title {
    max-width: 900px;
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--shadow);
}

.section-title h1 {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 28px);
    font-weight: 600;
}

.notification-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--shadow);
}

.notification-item.unread {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.notification-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: #cbd5e1;
}

.notification-item.unread .notification-dot {
    background: var(--blue);
}

.notification-item p {
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.5;
}

.notification-item span {
    color: var(--muted);
    font-size: 13px;
}

.user-create-form,
.password-form {
    margin-bottom: 18px;
}

.password-form {
    display: none;
}

.password-form.is-open {
    display: grid;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    max-width: 900px;
}

.user-card,
.profile-summary {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--shadow);
}

.user-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.user-card-topline strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-hero {
    display: grid;
    justify-items: center;
    gap: 4px;
    max-width: 900px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 24px;
}

.profile-hero strong {
    font-size: 18px;
    font-weight: 700;
}

.profile-hero > span:not(.user-avatar) {
    color: var(--muted);
}

.profile-photo-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.photo-upload-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue);
    background: #fff;
    cursor: pointer;
}

.photo-upload-control input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.profile-edit-toggle {
    border: 0;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
}

.profile-ideas {
    max-width: 900px;
}

.profile-ideas .idea-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-menu {
    position: relative;
}

.card-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    cursor: pointer;
}

.card-menu-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.card-menu-popover {
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 10;
    display: none;
    min-width: 128px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(30, 41, 59, 0.14);
}

.card-menu.is-open .card-menu-popover {
    display: grid;
}

.card-menu-popover a,
.card-menu-popover button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    color: var(--text);
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.card-menu-popover a:hover,
.card-menu-popover button:hover {
    background: #f8fafc;
}

.card-menu-popover button {
    color: #b42318;
}

.card-menu-popover .positive-menu-action {
    color: var(--blue);
}

.user-menu-popover {
    min-width: 138px;
}

.profile-summary {
    max-width: 880px;
    margin-bottom: 18px;
}

.user-card strong,
.profile-summary strong {
    font-weight: 700;
}

.user-card span,
.profile-summary span,
.user-card small,
.profile-summary small {
    color: var(--muted);
}

.user-status {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
}

.user-status.active {
    color: #05603a;
    background: #ecfdf3;
}

.user-status.pending {
    color: #854a0e;
    background: #fffbeb;
}

.user-status.blocked {
    color: #b42318;
    background: #fef3f2;
}

.empty-state {
    display: grid;
    justify-items: center;
    max-width: 900px;
    padding: 68px 20px;
    text-align: center;
    background: var(--panel);
    border: 1px dashed #c9d3e6;
    border-radius: 18px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 420px;
    margin-bottom: 20px;
    color: var(--muted);
}

.loading-state {
    display: none;
    margin-bottom: 18px;
    padding: 14px 16px;
    color: var(--blue);
    background: var(--soft-blue);
    border-radius: 14px;
    font-weight: 400;
}

body.is-loading .loading-state {
    display: block;
}

.idea-form {
    display: grid;
    gap: 18px;
    max-width: 880px;
    padding: 22px;
}

.idea-form.password-form {
    display: none;
}

.idea-form.password-form.is-open {
    display: grid;
}

.auth-page {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 28px;
}

.auth-panel {
    width: min(100%, 460px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.auth-panel.wide {
    width: min(100%, 720px);
}

.auth-panel-centered {
    text-align: center;
}

.auth-panel-centered .auth-brand {
    justify-content: center;
}

.auth-panel-centered .auth-heading {
    text-align: center;
}

.auth-panel-centered .auth-form {
    width: 100%;
    justify-items: stretch;
}

.auth-panel-centered .form-grid {
    width: 100%;
    grid-template-columns: 1fr;
}

.auth-panel-centered .auth-form label {
    width: 100%;
    text-align: left;
}

.auth-panel-centered .form-submit {
    justify-self: center;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 400;
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-link {
    margin: 22px 0 0;
    color: var(--muted);
    font-weight: 400;
    text-align: center;
}

.auth-link a {
    color: var(--blue);
    font-weight: 400;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-submit {
    justify-self: start;
}

.notice {
    max-width: 880px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 400;
}

.notice p {
    margin: 0;
}

.notice p + p {
    margin-top: 6px;
}

.notice.success {
    color: #05603a;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.notice.error {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal-form {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.is-submitting {
    opacity: 0.72;
    pointer-events: none;
}

@media (min-width: 1320px) {
    .idea-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-ideas .idea-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1319px) and (min-width: 980px) {
    .idea-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-ideas .idea-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 979px) {
    .app-shell {
        display: block;
        min-height: 100vh;
    }

    .mobile-header {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        height: 66px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.94);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(16px);
    }

    .mobile-icon-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid transparent;
        border-radius: 14px;
        background: #fff;
        cursor: pointer;
        transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
    }

    .mobile-icon-button:hover {
        border-color: var(--line);
        background: #f8fafc;
        transform: translateY(-1px);
    }

    .mobile-icon-button svg {
        display: block;
        width: 25px;
        height: 25px;
        fill: none;
        stroke: #101828;
        stroke-width: 2.25;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 0;
        font-size: 17px;
    }

    .filter-button svg {
        width: 24px;
        height: 24px;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 60;
        width: min(82vw, 300px);
        height: 100vh;
        padding: 22px 16px;
        box-shadow: 18px 0 42px rgba(30, 41, 59, 0.16);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .sidebar-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: var(--muted);
        background: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .menu-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 55;
        display: block;
        border: 0;
        background: rgba(15, 23, 42, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .menu-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-open {
        overflow: hidden;
    }

    .brand {
        margin-bottom: 28px;
    }

    .sidebar-user {
        margin-top: auto;
    }

    .menu {
        grid-template-columns: 1fr;
    }

    .menu a {
        justify-content: flex-start;
        padding: 0 14px;
        text-align: left;
    }

    .main {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 79px 18px 94px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        min-height: 66px;
        padding: 8px 8px;
        border: 1px solid var(--line);
        border-radius: 18px 18px 0 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 42px rgba(30, 41, 59, 0.16);
        backdrop-filter: blur(16px);
    }

    .mobile-bottom-nav a {
        position: relative;
        display: grid;
        justify-items: center;
        gap: 4px;
        color: var(--muted);
        font-size: 11px;
    }

    .mobile-bottom-nav svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav a.active {
        color: var(--blue);
    }

    .mobile-bottom-nav .bottom-nav-add {
        transform: translateY(-16px);
        color: #fff;
    }

    .mobile-bottom-nav .bottom-nav-add svg {
        width: 42px;
        height: 42px;
        padding: 9px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--blue), var(--purple));
        box-shadow: 0 12px 22px rgba(37, 99, 235, 0.26);
    }

    .mobile-bottom-nav .bottom-nav-add span {
        color: var(--blue);
    }

    .toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: none;
    }

    .filters-open .toolbar {
        display: grid;
    }

    .idea-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 620px) {
    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar,
    .form-grid,
    .idea-grid {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 78px 14px 94px;
    }
}
