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

:root {
    --bg-primary: #1e1f22;
    --bg-secondary: #2b2d31;
    --bg-tertiary: #313338;
    --bg-card: #2b2d31;
    --bg-hover: #35373c;
    --text-primary: #f2f3f5;
    --text-secondary: #b5bac1;
    --text-muted: #949ba4;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --danger: #f23f43;
    --danger-hover: #d83c3e;
    --success: #23a559;
    --warning: #f0b232;
    --border: #3f4147;
    --radius: 4px;
    --radius-lg: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a:hover {
    text-decoration: underline;
}

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 16px;
}

.login-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.logo {
    color: var(--accent);
    margin-bottom: 16px;
}

.login-gif {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
    margin: 0 auto;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f2f3f5;
}

.login-card p {
    color: #b5bac1;
    margin-bottom: 32px;
    font-size: 14px;
}

.account-blocked {
    margin: -12px 0 24px;
    padding: 16px;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    background: rgba(242, 63, 67, .1);
    text-align: left;
}

.account-blocked strong {
    display: block;
    margin-bottom: 6px;
    color: #ff8588;
}

.account-blocked p {
    margin-bottom: 10px;
    font-size: 13px;
}

.account-blocked a {
    color: #ff9da0;
    font-weight: 600;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5865f2;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.discord-logo {
    display: block;
    width: 30px;
    height: 23px;
    flex: 0 0 30px;
    fill: #ffffff;
}

.discord-logo path:first-child {
    display: none;
}

.discord-btn:hover {
    background: #4752c4;
    text-decoration: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #f2f3f5;
}

.nav-brand a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand a:hover {
    color: var(--text-primary);
}

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

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-logout {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.guild-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.guild-card:hover {
    border-color: #5865f2;
    background: var(--bg-hover);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.guild-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guild-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guild-initial {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.guild-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

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

.server-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3f4147;
}

.server-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.server-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guild-initial-large {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.server-title h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.server-id {
    color: var(--text-muted);
    font-size: 14px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-warning {
    background: rgba(240, 178, 50, 0.1);
    border: 1px solid rgba(240, 178, 50, 0.3);
    color: #f0b232;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #3f4147;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--text-primary);
    border-bottom-color: #5865f2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #f2f3f5;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    background: #4e5058;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn:hover {
    background: #6d6f78;
}

.btn-primary {
    background: #5865f2;
    color: white;
}

.btn-primary:hover {
    background: #4752c4;
}

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

.btn-danger:hover {
    background: #d83c3e;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: #5865f2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.card-header h3 {
    font-size: 15px;
    margin-bottom: 2px;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #3f4147;
    font-size: 14px;
}

.data-table th {
    background: #2b2d31;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #949ba4;
    letter-spacing: 0.02em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #35373c;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #4e5058;
    color: #dbdee1;
}

.badge-embed {
    background: rgba(88, 101, 242, 0.3);
    color: #a5b1f5;
}

.badge-components {
    background: rgba(35, 165, 89, 0.3);
    color: #6dca7e;
}

.badge-plain {
    background: #4e5058;
    color: #dbdee1;
}

.text-muted {
    color: var(--text-muted);
}

.account-card {
    max-width: 640px;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.account-danger {
    padding-top: 24px;
}

.account-danger h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.account-danger p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.stat-card strong {
    color: var(--text-primary);
    font-size: 30px;
    line-height: 1;
}

.team-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.team-tab {
    padding: 10px 14px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
}

.team-tab:hover,
.team-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

.team-messages,
.team-security {
    margin-top: 40px;
}

.team-reason {
    width: min(220px, 100%);
    margin-right: 6px;
    padding: 5px 8px;
    background: #111419;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.detail-grid div {
    display: grid;
    gap: 5px;
}

.detail-grid small {
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.message-content-card {
    margin-top: 20px;
}

.message-content-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.message-content-card pre {
    max-height: 560px;
    overflow: auto;
    padding: 16px;
    background: #111419;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rules-version {
    font-size: 12px;
    color: var(--text-muted) !important;
}

.landing-page {
    background: #0d1016;
    color: #f5f7fb;
}

.landing-page::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.landing-page > .system-status { position: relative; z-index: 20; }
.landing-nav, .landing-hero, .landing-section, .invite-band, .landing-footer { position: relative; z-index: 1; max-width: 1180px; margin-inline: auto; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.landing-brand:hover { color: #fff; text-decoration: none; }
.landing-brand-gif { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.landing-nav-links { display: flex; align-items: center; gap: 28px; }
.landing-nav-links a { color: #8c96a8; font-size: 13px; }
.landing-nav-links a:hover { color: #fff; text-decoration: none; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); align-items: center; gap: 70px; min-height: 620px; padding: 70px 28px 100px; }
.landing-eyebrow { margin-bottom: 18px; color: #8090ff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.landing-hero h1 { max-width: 650px; font-size: clamp(48px, 7vw, 86px); line-height: .98; letter-spacing: 0; }
.landing-hero h1 span { color: #8290ff; }
.landing-lead { max-width: 540px; margin-top: 28px; color: #a2adbd; font-size: 17px; line-height: 1.7; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.landing-login-btn { min-height: 50px; padding: 13px 20px; }
.landing-secondary-btn, .landing-light-btn, .landing-outline-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 18px; border: 1px solid #303948; border-radius: 7px; color: #dce2ec; font-size: 14px; font-weight: 600; }
.landing-secondary-btn:hover { border-color: #6c7cff; color: #fff; text-decoration: none; }
.landing-error { max-width: 540px; margin-top: 22px; padding: 12px 14px; border: 1px solid rgba(242,63,67,.45); border-radius: 7px; color: #ffb3b5; background: rgba(242,63,67,.1); font-size: 13px; }
.landing-visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.landing-gif-frame { position: relative; display: grid; place-items: center; width: 230px; height: 230px; border: 1px solid rgba(130,144,255,.38); border-radius: 50%; background: radial-gradient(circle, rgba(108,124,255,.2), rgba(13,16,22,.1) 65%); box-shadow: 0 0 100px rgba(108,124,255,.2); animation: landing-float 5s ease-in-out infinite; }
.landing-gif { width: 166px; height: 166px; object-fit: contain; border-radius: 24px; }
.landing-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid rgba(108,124,255,.18); border-radius: 50%; transform: rotate(-22deg); }
.landing-orbit-two { width: 380px; height: 150px; border-color: rgba(108,124,255,.12); transform: rotate(35deg); }
.landing-signal { position: absolute; right: 5%; bottom: 12%; display: flex; gap: 5px; align-items: flex-end; height: 32px; }
.landing-signal span { display: block; width: 5px; border-radius: 4px; background: #8290ff; animation: landing-signal 1.2s ease-in-out infinite alternate; }
.landing-signal span:nth-child(1) { height: 12px; animation-delay: -.3s; }.landing-signal span:nth-child(2) { height: 24px; }.landing-signal span:nth-child(3) { height: 17px; animation-delay: -.6s; }
@keyframes landing-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes landing-signal { to { opacity: .35; transform: scaleY(.55); } }
.landing-section { padding: 85px 28px 120px; border-top: 1px solid #202735; }
.section-heading h2, .invite-band h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid #303948; }
.feature-item { min-height: 220px; padding: 28px 28px 20px 0; border-right: 1px solid #303948; }.feature-item:not(:first-child) { padding-left: 28px; }.feature-item:last-child { border-right: 0; }
.feature-number { color: #8290ff; font-size: 12px; font-weight: 700; letter-spacing: .1em; }.feature-item h3 { margin-top: 42px; font-size: 20px; }.feature-item p { max-width: 280px; margin-top: 12px; color: #8f9aab; font-size: 14px; line-height: 1.65; }
.invite-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 80px; padding: 58px 52px; border: 1px solid #303948; border-radius: 12px; background: linear-gradient(110deg, #1a2030, #10151e); overflow: hidden; }
.invite-band::before { content: ''; position: absolute; width: 260px; height: 260px; right: 24%; border: 1px solid rgba(130,144,255,.18); border-radius: 50%; }
.invite-actions { position: relative; display: grid; gap: 10px; min-width: 260px; }.landing-light-btn { background: #f1f4ff; border-color: #f1f4ff; color: #141929; }.landing-light-btn:hover { background: #fff; color: #141929; text-decoration: none; }.landing-outline-btn { border-color: #5363e8; color: #cbd2ff; }.landing-outline-btn:hover { color: #fff; background: rgba(108,124,255,.1); text-decoration: none; }
.landing-footer { display: flex; justify-content: space-between; padding: 24px 28px 34px; border-top: 1px solid #202735; color: #697487; font-size: 12px; }.landing-footer a { color: #9ba7b8; }
@media (max-width: 760px) { .landing-nav-links { display: none; }.landing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 55px; }.landing-visual { min-height: 300px; order: -1; }.landing-gif-frame { width: 180px; height: 180px; }.landing-gif { width: 130px; height: 130px; }.landing-orbit { width: 240px; height: 240px; }.landing-orbit-two { width: 290px; height: 110px; }.feature-grid { grid-template-columns: 1fr; }.feature-item, .feature-item:not(:first-child) { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid #303948; }.feature-item h3 { margin-top: 22px; }.invite-band { display: block; margin-inline: 16px; padding: 34px 26px; }.invite-actions { margin-top: 28px; }.landing-footer { display: grid; gap: 8px; text-align: center; } }

.rules-page {
    max-width: 760px;
    padding-top: 48px;
}

.rules-card h1 {
    margin-bottom: 10px;
}

.rules-card > p {
    color: var(--text-secondary);
}

.rules-list {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.rules-list p {
    padding-left: 18px;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
}

.rules-warning {
    padding: 18px;
    margin-bottom: 24px;
    border: 2px solid var(--danger);
    border-radius: var(--radius);
    background: rgba(242, 63, 67, .1);
}

.rules-warning strong {
    display: block;
    color: #ff8588;
    margin-bottom: 8px;
}

.rules-warning p {
    color: var(--text-secondary);
    font-size: 13px;
}

.rules-card form {
    display: grid;
    gap: 16px;
}

.rules-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 14px;
}

.rules-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

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

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

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state.small {
    padding: 24px;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.system-status {
    position: relative;
    z-index: 150;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.system-status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.system-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.system-status-info { background: rgba(108, 124, 255, .12); color: #c9d0ff; }
.system-status-info .system-status-badge { background: var(--accent); color: #fff; }
.system-status-warning { background: rgba(240, 178, 50, .14); color: #ffe0a0; }
.system-status-warning .system-status-badge { background: var(--warning); color: #171a20; }
.system-status-error { background: rgba(242, 63, 67, .15); color: #ffc2c4; }
.system-status-error .system-status-badge { background: var(--danger); color: #fff; }
.system-status-maintenance { background: rgba(35, 165, 89, .14); color: #b9f0c8; }
.system-status-maintenance .system-status-badge { background: var(--success); color: #07140b; }

.login-page > .system-status {
    position: fixed;
    top: 0;
    left: 0;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.modal-wide {
    max-width: 900px;
}

.modal-xlarge {
    max-width: 960px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.modal-header h2 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: #949ba4;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #f2f3f5;
}

.moderation-content {
    max-width: 500px;
    padding: 28px;
    text-align: center;
}

.moderation-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 2px solid var(--danger);
    border-radius: 50%;
    color: #ff8588;
    font-size: 26px;
    font-weight: 700;
}

.delete-icon {
    color: #ffd27a;
    border-color: var(--warning);
}

.moderation-content h2 {
    margin-bottom: 8px;
}

.moderation-lead,
.moderation-rules,
.moderation-reason {
    color: var(--text-secondary);
    font-size: 14px;
}

.moderation-rules {
    margin: 20px 0;
    padding: 14px 18px;
    border: 1px solid rgba(242, 63, 67, .35);
    border-radius: var(--radius);
    background: rgba(242, 63, 67, .08);
    text-align: left;
}

.moderation-rules strong {
    color: #ff8588;
}

.moderation-rules ul {
    display: grid;
    gap: 6px;
    margin: 10px 0 0 18px;
}

.moderation-reason {
    margin-bottom: 0;
}

.moderation-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0 0;
    border-top: 0;
}

.form-group {
    padding: 0;
    margin-bottom: 16px;
}

.modal .form-group {
    padding: 0 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #b5bac1;
    letter-spacing: 0.02em;
}

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

.form-group textarea {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5865f2;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6d6f78;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #3f4147;
}

.back-link {
    text-decoration: none;
}

/* Editor Layout */
.editor-layout {
    display: flex;
    gap: 0;
    min-height: 500px;
}

.editor-pane {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

.preview-pane {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #3f4147;
    background: #2b2d31;
    overflow-y: auto;
}

/* Discord Preview */
.discord-preview {
    background: #313338;
    border-radius: 8px;
    padding: 16px;
    min-height: 200px;
}

.discord-msg {
    display: flex;
    gap: 12px;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5865f2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

.discord-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-body {
    flex: 1;
    min-width: 0;
}

.discord-author {
    font-weight: 600;
    color: #f2f3f5;
    font-size: 14px;
    margin-bottom: 2px;
}

.discord-text {
    color: #dbdee1;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.discord-embed {
    border-left: 4px solid #5865f2;
    background: #2b2d31;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 4px;
}

.discord-embed-title {
    font-weight: 600;
    color: #f2f3f5;
    font-size: 14px;
    margin-bottom: 4px;
}

.discord-embed-desc {
    color: #dbdee1;
    font-size: 13px;
    line-height: 1.4;
}

.discord-embed-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.discord-embed-field {
    flex: 1;
    min-width: 100px;
}

.discord-embed-field-name {
    font-weight: 600;
    color: #f2f3f5;
    font-size: 12px;
    margin-bottom: 2px;
}

.discord-embed-field-value {
    color: #dbdee1;
    font-size: 12px;
}

.discord-components {
    margin-top: 8px;
}

.discord-action-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.discord-select {
    background: #2b2d31;
    border: 1px solid #1e1f22;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    color: #dbdee1;
    font-size: 14px;
    cursor: default;
    max-width: 320px;
}

.comp-row[data-kind="select"] {
    border-left: 3px solid #5865f2;
}

.comp-row[data-kind="buttons"] {
    border-left: 3px solid #949ba4;
}

.comp-row-empty-hint {
    color: #6d6f78;
    font-size: 12px;
    padding: 12px 0;
    text-align: center;
}

.discord-button {
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
    border: none;
    color: #fff;
    background: #5865f2;
}

.discord-button.style2 {
    background: transparent;
    border: 1px solid #4e5058;
    color: #dbdee1;
}

.discord-button.style3 {
    background: #23a559;
}

.discord-button.style4 {
    background: #f23f43;
}

.discord-button.style5 {
    background: transparent;
    border: none;
    color: #00a8fc;
    padding: 0;
}

/* Tab bar for message type */
.tab-bar {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 6px 14px;
    background: #1e1f22;
    border: 1px solid #1e1f22;
    border-radius: 4px;
    color: #b5bac1;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.v2-builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.v2-style-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #3f4147;
    border-radius: 5px;
    background: #2b2d31;
}

.v2-style-settings input[type="color"] {
    width: 36px;
    height: 26px;
    padding: 2px;
    vertical-align: middle;
}

.v2-block-list, .v2-nested {
    display: grid;
    gap: 10px;
}

.v2-block {
    border: 1px solid #3f4147;
    border-left: 3px solid #5865f2;
    border-radius: 6px;
    background: #1e1f22;
}

.v2-nested {
    margin: 10px 0;
    padding: 10px;
    border: 1px dashed #4e5058;
    border-radius: 5px;
}

.v2-block-head, .v2-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    color: #f2f3f5;
}

.v2-block-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.v2-block-body, .v2-item {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #2b2d31;
}

.v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.v2-action-fields {
    display: grid;
    grid-template-columns: minmax(100px, .6fr) repeat(2, minmax(120px, 1fr));
    gap: 8px;
    align-items: center;
}

.v2-block textarea, .v2-block input:not([type="checkbox"]):not([type="color"]), .v2-block select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #1e1f22;
    border: 1px solid #1e1f22;
    border-radius: var(--radius);
    color: var(--text-primary);
    font: inherit;
    outline: none;
}

.v2-block textarea:focus, .v2-block input:focus, .v2-block select:focus {
    border-color: #5865f2;
}

.v2-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbdee1;
    font-size: 13px;
    cursor: pointer;
}

.v2-check input[type="checkbox"], .v2-style-settings input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #6d6f78;
    border-radius: 4px;
    background: #1e1f22;
    cursor: pointer;
}

.v2-check input[type="checkbox"]:checked, .v2-style-settings input[type="checkbox"]:checked {
    background: #5865f2;
    border-color: #5865f2;
}

.v2-check input[type="checkbox"]:checked::after, .v2-style-settings input[type="checkbox"]:checked::after {
    content: '\2713';
    display: block;
    color: #fff;
    text-align: center;
    line-height: 16px;
}

.v2-upload {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px dashed #5865f2;
    border-radius: var(--radius);
    color: #b5bac1;
    font-size: 12px;
    cursor: pointer;
}

.v2-upload input[type="file"] {
    padding: 0;
    border: 0;
    background: transparent;
    color: #dbdee1;
}

.v2-upload-status { color: #949ba4; font-size: 11px; }

.discord-v2-text { white-space: normal; margin-top: 8px; }
.discord-v2-separator { border-top: 1px solid #4e5058; }
.discord-v2-separator.no-divider { border-top-color: transparent; }
.discord-v2-section { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.discord-v2-section > div { flex: 1; }
.discord-v2-section img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.discord-v2-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-top: 8px; }
.discord-v2-media img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 4px; }
.discord-v2-file { margin-top: 8px; padding: 10px; border: 1px solid #3f4147; border-radius: 4px; color: #00a8fc; }
.discord-v2-container { margin-top: 8px; padding: 10px; border: 1px solid; border-radius: 4px; background: #2b2d31; }
.site-footer { display: flex; justify-content: center; gap: 18px; padding: 24px; color: #949ba4; font-size: 12px; }
.site-footer a { color: inherit; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 24px; color: #dbdee1; line-height: 1.65; }
.legal-page h1 { color: #f2f3f5; margin: 28px 0 16px; }
.legal-page h2 { color: #f2f3f5; margin-top: 28px; font-size: 18px; }
.legal-page .back-link { color: #00a8fc; }

@media (max-width: 600px) {
    .v2-action-fields { grid-template-columns: 1fr; }
    .v2-block-actions { justify-content: flex-end; }
}

/* Product surface */
:root {
    --bg-primary: #101216;
    --bg-secondary: #191c22;
    --bg-tertiary: #222630;
    --bg-card: #1b1f27;
    --bg-hover: #262c36;
    --text-primary: #f5f7fb;
    --text-secondary: #b9c1ce;
    --text-muted: #7f8998;
    --accent: #6c7cff;
    --accent-hover: #8290ff;
    --border: #303744;
    --radius: 7px;
    --radius-lg: 12px;
}

body {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 15% -10%, rgba(108,124,255,.14), transparent 34rem), linear-gradient(135deg, #101216 0%, #151922 55%, #111419 100%);
    color: var(--text-primary);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 32px 32px;
}

.navbar {
    padding: 15px clamp(16px, 4vw, 48px);
    background: rgba(25,28,34,.88);
    border-bottom-color: rgba(108,124,255,.2);
    backdrop-filter: blur(18px);
}

.nav-brand { letter-spacing: .02em; }
.nav-brand > svg:last-of-type { color: var(--accent); }
.container { max-width: 1280px; padding: clamp(20px, 4vw, 48px); position: relative; }
.page-header { margin-bottom: 38px; }
.page-header h1, .server-title h1 { letter-spacing: -.02em; font-size: clamp(25px, 3vw, 34px); }
.page-header p, .server-id { color: var(--text-muted); }

.guild-card, .card, .data-table, .login-card {
    background: linear-gradient(145deg, rgba(31,35,44,.96), rgba(23,26,32,.96));
    border-color: var(--border);
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.guild-card { padding: 18px; border-radius: var(--radius-lg); }
.guild-card:hover { border-color: var(--accent); box-shadow: 0 16px 36px rgba(0,0,0,.3), 0 0 0 1px rgba(108,124,255,.18); transform: translateY(-3px); }
.guild-icon { background: linear-gradient(135deg, var(--accent), #3d4ab8); }
.server-header { padding-bottom: 26px; border-bottom-color: var(--border); }
.tabs { border-bottom-color: var(--border); gap: 6px; }
.tab { padding: 12px 16px; border-radius: 7px 7px 0 0; }
.tab.active { background: rgba(108,124,255,.12); color: #fff; border-bottom-color: var(--accent); }

.btn, .discord-btn { border-radius: 7px; box-shadow: 0 5px 14px rgba(0,0,0,.16); }
.btn { background: #303744; }
.btn:hover { background: #3b4554; transform: translateY(-1px); }
.btn-primary, .discord-btn { background: linear-gradient(135deg, #6c7cff, #5363e8); }
.btn-primary:hover, .discord-btn:hover { background: linear-gradient(135deg, #8290ff, #6574f2); }
.btn-danger { background: #b83f58; }
.btn-danger:hover { background: #d14c66; }

.section-header { padding-bottom: 4px; }
.section-header h2 { font-size: 18px; letter-spacing: .01em; }
.card { border-radius: var(--radius-lg); padding: 18px; }
.card:hover { border-color: rgba(108,124,255,.7); }
.data-table { border-radius: var(--radius-lg); }
.data-table th { background: #20252e; color: var(--text-muted); }
.data-table td, .data-table th { border-bottom-color: var(--border); }
.data-table tr:hover td { background: rgba(108,124,255,.07); }

.modal { background: rgba(7,9,12,.78); backdrop-filter: blur(7px); }
.modal-content { background: #1a1e25; border-color: #3a4351; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.modal-header { background: #1a1e25; border-bottom-color: var(--border); }
.form-group input, .form-group select, .form-group textarea, .v2-block textarea, .v2-block input:not([type="checkbox"]):not([type="color"]), .v2-block select { background: #111419; border-color: #303744; border-radius: 7px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .v2-block textarea:focus, .v2-block input:focus, .v2-block select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,124,255,.14); }
.editor-pane { background: #20252e !important; }
.preview-pane { background: #171a20; border-left-color: var(--border); }
.discord-preview { background: #111419; border: 1px solid #303744; }
.v2-block, .v2-style-settings { background: #1a1e25; border-color: #3a4351; }
.v2-block { border-left-color: var(--accent); }
.v2-nested { border-color: #465166; background: rgba(16,18,22,.45); }
.v2-upload { border-color: rgba(108,124,255,.7); background: rgba(108,124,255,.06); }
.site-footer { position: relative; border-top: 1px solid rgba(48,55,68,.7); margin-top: 32px; }
.login-card .site-footer { width: calc(100% + 80px); margin: 32px -40px -48px; padding: 24px 40px; }

@media (max-width: 720px) {
    .navbar { align-items: flex-start; gap: 12px; }
    .nav-user span { display: none; }
    .editor-layout { display: block; }
    .preview-pane { border-left: 0; border-top: 1px solid var(--border); }
    .data-table { min-width: 560px; }
}

.tab-btn:hover {
    background: #35373c;
}

.tab-btn.active {
    background: #5865f2;
    color: #fff;
    border-color: #5865f2;
}

/* Field rows */
.field-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.field-row .form-group {
    flex: 1;
    margin-bottom: 8px;
}

.field-group {
    border: 1px solid #3f4147;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #1e1f22;
}

.field-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.field-group-header h4 {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-add-field {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 3px;
}

.color-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-input-wrap input[type="color"] {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
}

.fmt-toolbar {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.fmt-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1f22;
    border: 1px solid #1e1f22;
    border-radius: 4px;
    color: #b5bac1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.fmt-btn:hover {
    background: #35373c;
    color: #f2f3f5;
}

/* Message status badges */
.msg-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.msg-status.sent {
    background: rgba(35,165,89,0.3);
    color: #6dca7e;
}

.msg-status.pending {
    background: rgba(240,178,50,0.3);
    color: #f0b232;
}

.msg-status.failed {
    background: rgba(242,63,67,0.3);
    color: #f87171;
}

/* V2 Action Chain Styles */
.action-chain {
    border: 1px solid #3f4147;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    background: #1e1f22;
}

.action-chain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.action-chain-header h4 {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #26272b;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 12px;
}

.action-step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5865f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.action-step-content {
    flex: 1;
    color: #dbdee1;
}

.action-step-remove {
    background: none;
    border: none;
    color: #949ba4;
    cursor: pointer;
    padding: 2px 4px;
}

.action-step-remove:hover {
    color: #f23f43;
}

.action-arrow {
    text-align: center;
    color: #949ba4;
    font-size: 12px;
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .editor-layout {
        flex-direction: column;
    }

    .preview-pane {
        border-left: none;
        border-top: 1px solid #3f4147;
    }

    .modal-xlarge {
        max-width: 100%;
    }

    .field-row {
        flex-direction: column;
    }

    .field-row .form-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .server-header {
        flex-direction: column;
        text-align: center;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .modal-content {
        margin: 8px;
        max-height: calc(100vh - 16px);
    }

    .modal .form-group {
        padding: 0 12px;
    }

    .modal-header {
        padding: 12px;
    }

    .form-actions {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 16px;
    }

    .nav-brand span {
        display: none;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-card .site-footer {
        width: calc(100% + 48px);
        margin: 32px -24px -32px;
        padding: 24px;
    }

    .server-icon-large {
        width: 64px;
        height: 64px;
    }

    .tab-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    padding: 20px 16px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

.cookie-consent-icon {
    flex-shrink: 0;
    color: var(--accent);
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cookie-consent-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

.cookie-consent-settings {
    max-width: 900px;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cookie-category {
    padding: 12px 0;
}

.cookie-category + .cookie-category {
    border-top: 1px solid var(--border);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.cookie-category-info strong {
    font-size: 14px;
    color: var(--text-primary);
}

.cookie-category-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: background 0.2s, border-color 0.2s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.cookie-toggle-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle-disabled .cookie-toggle-slider {
    cursor: not-allowed;
}

.cookie-consent-save {
    padding-top: 16px;
    text-align: right;
}

@media (max-width: 640px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        padding: 12px 16px;
        min-width: 0;
    }

    .cookie-consent-settings {
        max-height: 50vh;
        overflow-y: auto;
    }

    .cookie-category-header {
        flex-wrap: wrap;
    }
}
