.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 24px;
  border-radius:14px;
  border:1px solid var(--color-border);
  background:rgba(255,255,255,0.03);
  color:var(--color-text) !important;
  font-size:0.95rem;
  font-weight:600;
  cursor:pointer;
  text-decoration:none !important;
  transition:all .2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space:nowrap;
  user-select:none;
}
.btn:hover{
  transform:translateY(-2px);
  text-decoration:none !important;
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.2);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}
.btn:active{
  transform:translateY(0);
}
.btn--primary{
  background:var(--color-accent) !important;
  border-color:transparent;
  color:#fff !important;
  box-shadow:0 4px 15px rgba(var(--color-accent-rgb), 0.22);
}
.btn--primary:hover{
  background:var(--color-accent-2);
  box-shadow:0 6px 20px rgba(var(--color-accent-rgb), 0.30);
  color:#0b0c10 !important;
}
.btn--primary.disabled, .btn--primary:disabled {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1 !important;
  filter: none !important;
}
.btn--secondary{
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.12);
  color:var(--color-text) !important;
}
.btn--secondary:hover{
  background:rgba(255,255,255,0.12);
  border-color:rgba(255,255,255,0.20);
}
.btn--ghost{
  background:transparent;
  border-color:transparent;
  color:var(--color-text) !important;
}
.btn--ghost:hover{
  background:rgba(255,255,255,0.06);
}
.btn--accent{
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff !important;
  border-color:transparent;
  font-weight:600;
}
.btn--accent:hover{
  background:linear-gradient(135deg,#6d28d9,#9333ea);
  box-shadow:0 2px 12px rgba(124,58,237,0.3);
}
.btn i, .btn svg {
  width: 18px;
  height: 18px;
}

.button,.button2{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 24px;
  border-radius:14px;
  border:1px solid var(--color-border);
  background:rgba(255,255,255,0.03);
  color:var(--color-text) !important;
  font-size:0.95rem;
  font-weight:600;
  cursor:pointer;
  text-decoration:none !important;
  transition:all .2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space:nowrap;
  user-select:none;
}
.button:hover,.button2:hover{
  transform:translateY(-2px);
  text-decoration:none !important;
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.2);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.card{
  background:rgba(255,255,255,0.06);
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  backdrop-filter: blur(10px);
}

.form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.form-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}
label{font-size:0.95rem;color:var(--color-muted);font-weight:700;}
input,select,textarea{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(10,12,16,0.55);
  color:var(--color-text);
  padding:10px 12px;
  font-size:1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

[data-theme="clear-mode"] input,
[data-theme="clear-mode"] select,
[data-theme="clear-mode"] textarea{
  border:1px solid var(--color-border);
  background:rgba(var(--color-accent-rgb), 0.06);
  color:var(--color-text);
  box-shadow:0 10px 22px rgba(18, 20, 27, 0.06);
}

[data-theme="clear-mode"] input:focus,
[data-theme="clear-mode"] select:focus,
[data-theme="clear-mode"] textarea:focus{
  border-color:rgba(var(--color-accent-rgb), 0.55);
  box-shadow:0 0 0 4px rgba(var(--color-accent-rgb), 0.14), 0 14px 34px rgba(18, 20, 27, 0.08);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9b0be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
input.success{border-color:rgba(32,193,107,0.9);}
input.error{border-color:rgba(255,87,87,0.95);}
.step-error-msg{
  display:block;
  font-size:0.8rem;
  color:rgba(255,87,87,0.95);
  margin-top:2px;
  padding-left:2px;
  line-height:1.3;
}

.toggle-container{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin:6px 0;
}
.toggle-container input{
  width:0;
  height:0;
  opacity:0;
  position:absolute;
  pointer-events:none;
}
.toggle-switch{
  width:22px;
  height:22px;
  border-radius:7px;
  border:1px solid rgba(255,255,255,0.20);
  background:rgba(255,255,255,0.10);
}
.toggle-container input:checked ~ .toggle-switch{background:var(--color-accent);border-color:transparent;}
.toggle-label{color:var(--color-text);font-weight:700;}
.toggle-label a{color:var(--color-accent-2);text-decoration:underline;}

.tooltip{
  position:absolute;
  z-index:999;
  width:min(340px, calc(100% - 40px));
  padding:12px 14px;
  border-radius:14px;
  background:rgba(18,20,27,0.98);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:var(--shadow-md);
  display:none;
}
.tooltip ul{margin:0;padding-left:18px;}
.tooltip li{color:var(--color-muted);}
.tooltip .icon{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;background:rgba(255,255,255,0.15);}
.tooltip .icon.valid{background:rgba(32,193,107,0.95);}
.tooltip .icon.invalid{background:rgba(255,87,87,0.95);}

.errors{margin:10px 0;}
.errors.visible{display:block;}
.msg_valid,.msg_invalid{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
}
.msg_valid{border-color:rgba(32,193,107,0.55);}
.msg_invalid{border-color:rgba(255,87,87,0.55);}

.loading-overlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.35);
  border-radius:var(--radius-md);
}
.loader{
  width:38px;
  height:38px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,0.16);
  border-top-color:var(--color-accent);
  animation:spin 0.85s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg);}}

.step{display:none;}
.step.active{display:block;animation:stepIn .18s ease both;}
@keyframes stepIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

.hidden{display:none;}

.toggle-password{
  margin-top:8px;
  align-self:flex-end;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:var(--color-text);
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
}
.input-with-button .toggle-password{
  margin-top:0;
  align-self:stretch;
}

.form-actions{
  display:flex;
  justify-content:center;
  margin-top:6px;
}

.modal{
  display:none;
  align-items:center;
  justify-content:center;
  position:fixed;
  inset:0;
  z-index:1000;
  background:rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.modal.is-open{animation:modalFadeIn .16s ease both;}
.modal-overlay{
  position:absolute;
  inset:0;
  background:transparent;
}
.modal-container{
  position:relative;
  width:min(820px, calc(100% - 40px));
  max-height:min(85vh, 920px);
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid var(--color-border);
  background:var(--color-surface);
  box-shadow:var(--shadow-md);
}
.modal.is-open .modal-container{animation:modalPopIn .18s ease both;}
.modal-body{
  max-height:min(85vh, 920px);
  overflow:auto;
  padding:18px;
}
.modal-close{
  position:absolute;
  top:12px;
  right:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid var(--color-border);
  background:rgba(255,255,255,0.06);
  color:var(--color-text);
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.modal-content{
  width:min(520px, calc(100% - 40px));
  max-height:min(80vh, 860px);
  overflow:auto;
}

/* Login modal: align with auth-card look and adapt to theme */
#login-modal .modal-container{
  width:min(420px, calc(100% - 32px));
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#login-modal .modal-body{
  padding:18px;
}

#login-modal input,
#login-modal select,
#login-modal textarea{
  background:var(--color-surface-2);
  border:1px solid var(--color-border);
  color:var(--color-text);
}

#login-modal .modal-close{
  border:1px solid var(--color-border);
}

.modal.is-open .modal-content{animation:modalPopIn .18s ease both;}

@keyframes modalFadeIn{from{opacity:0;}to{opacity:1;}}
@keyframes modalPopIn{from{transform:translateY(16px) scale(0.98);opacity:0;}to{transform:translateY(0) scale(1);opacity:1;}}

.h2{
  margin:0.83em 0;
  font-size:1.3em;
  font-weight:bold;
}

/* Profile Info Box */
.profile-unlock-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(var(--color-accent-rgb, 255, 155, 36), 0.08);
    border: 1px solid rgba(var(--color-accent-rgb, 255, 155, 36), 0.2);
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.profile-unlock-info i {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-unlock-info strong {
    color: var(--color-accent);
    display: block;
    margin-bottom: 4px;
}

.unlock-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.unlock-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
}

.unlock-tag i {
    width: 14px;
    height: 14px;
    color: inherit;
    margin: 0;
}
.mini-text a{color:var(--color-accent-2);}

.msg{margin:10px 0;}
.msg.visible{display:block;}

.input-with-button{
  display:flex;
  align-items:center;
  gap:10px;
}
.input-with-button input{
  flex:1;
}

.radio-group{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.radio-group label{width:auto;color:var(--color-text);font-weight:700;}
/* Discreet report button for comments */
.btn-report-comment, .btn-delete-comment {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.media-comment:hover .btn-report-comment,
.media-comment:hover .btn-delete-comment,
.comment-item:hover .btn-report-comment {
    opacity: 0.4;
    visibility: visible;
}

.btn-report-comment:hover, .btn-delete-comment:hover {
    opacity: 1 !important;
}

.comment-item, .media-comment {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child, .media-comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-item .btn-report-comment,
.media-comment .btn-report-comment {
    position: absolute;
    right: 5px;
    bottom: 5px;
    top: auto;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-item .btn-report-comment i,
.media-comment .btn-report-comment i {
    width: 12px;
    height: 12px;
}

.btn-report-comment:hover {
    color: var(--color-error, #ef4444) !important;
}

/* Report Modal Styles */
.report-modal {
    z-index: 30000;
}

.report-modal .modal-container {
    width: min(450px, calc(100% - 40px));
    padding: 24px;
    background: var(--color-surface-2, #171a23);
    border: 1px solid var(--color-border);
}

.report-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--color-error, #ef4444);
}

.report-modal__header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.report-modal__header i {
    width: 24px;
    height: 24px;
}

.report-modal__body p {
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text, #fff);
}

.reason-item span {
    color: #ffffff;
}

.reason-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-accent);
}

.report-description {
    margin-top: 20px;
}

.reason-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.report-description label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text, #fff);
}

.report-description textarea {
    min-height: 80px;
    resize: vertical;
}

.report-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Inspector Tabs & Comment Moderation Styles */
.inspector-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.inspector-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inspector-tab i {
    width: 16px;
    height: 16px;
}

.inspector-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.inspector-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-accent);
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

.inspector-tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
}

.inspector-tab-content.active {
    display: block;
}

.inspector-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.mgr-comment-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.mgr-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.mgr-comment-meta strong {
    color: var(--color-accent);
}

.mgr-comment-meta span {
    color: var(--color-muted);
}

.mgr-comment-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text);
}

.mgr-comment-actions {
    display: flex;
    gap: 10px;
}

.mgr-comment-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mgr-comment-actions .btn-mgr-comment-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.mgr-comment-actions .btn-mgr-comment-report:hover {
    background: rgba(var(--color-accent-rgb), 0.10);
    border-color: rgba(var(--color-accent-rgb), 0.30);
    color: var(--color-accent);
}

/* Global Reporting Buttons */
.btn-report-media {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.btn-report-media:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Share Sticker */
.share-sticker {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(12, 16, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.share-sticker__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.share-sticker__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.share-sticker__btn span {
    position: absolute !important;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(12, 16, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    font-size: 0.85rem;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.share-sticker__btn:hover span,
.share-sticker__item:hover .share-sticker__btn span {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.share-sticker__btn svg,
.share-sticker__btn i {
    width: 18px;
    height: 18px;
}

.share-sticker__item {
    position: relative;
}

.share-sticker__menu {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(12, 16, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    min-width: 190px;
}

.share-sticker__item:hover .share-sticker__menu,
.share-sticker__item:focus-within .share-sticker__menu {
    opacity: 1;
    pointer-events: auto;
}

.share-sticker__menu-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--color-text);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: left;
}

.share-sticker__menu-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

html[data-theme="clear-mode"] .share-sticker {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 32px rgba(18, 20, 27, 0.12);
}

html[data-theme="clear-mode"] .share-sticker__btn {
    background: rgba(var(--color-accent-rgb), 0.08);
    border: 1px solid rgba(var(--color-accent-rgb), 0.18);
    color: var(--color-text);
}

html[data-theme="clear-mode"] .share-sticker__btn:hover {
    box-shadow: 0 10px 22px rgba(18, 20, 27, 0.14);
}

html[data-theme="clear-mode"] .share-sticker__btn span {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 22px rgba(18, 20, 27, 0.12);
}

html[data-theme="clear-mode"] .share-sticker__menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 22px rgba(18, 20, 27, 0.12);
}

html[data-theme="clear-mode"] .share-sticker__menu-btn {
    background: rgba(var(--color-accent-rgb), 0.08);
    border: 1px solid rgba(var(--color-accent-rgb), 0.16);
    color: var(--color-text);
}

html[data-theme="clear-mode"] .share-sticker__menu-btn:hover {
    background: rgba(var(--color-accent-rgb), 0.14);
}

@media (max-width: 1024px) {
    .share-sticker {
        right: 12px;
        bottom: 16px;
    }
}

@media (max-width: 768px) {
    .share-sticker {
        position: fixed;
        bottom: 14px;
        right: 14px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


